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, |
80911fe1 | 6 | # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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 | |
6e4d0bcb | 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
252b5132 RH |
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@ | |
108a6f8e CD |
53 | datarootdir = @datarootdir@ |
54 | docdir = @docdir@ | |
55 | htmldir = @htmldir@ | |
403d9505 | 56 | mandir = @mandir@ |
252b5132 RH |
57 | man1dir = $(mandir)/man1 |
58 | man2dir = $(mandir)/man2 | |
59 | man3dir = $(mandir)/man3 | |
60 | man4dir = $(mandir)/man4 | |
61 | man5dir = $(mandir)/man5 | |
62 | man6dir = $(mandir)/man6 | |
63 | man7dir = $(mandir)/man7 | |
64 | man8dir = $(mandir)/man8 | |
65 | man9dir = $(mandir)/man9 | |
d5de0a84 | 66 | |
e5c3f801 NN |
67 | INSTALL = @INSTALL@ |
68 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
69 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
70 | INSTALL_DATA = @INSTALL_DATA@ | |
656fdd47 PB |
71 | LN = @LN@ |
72 | LN_S = @LN_S@ | |
252b5132 | 73 | |
50212802 NN |
74 | # ------------------------------------------------- |
75 | # Miscellaneous non-standard autoconf-set variables | |
76 | # ------------------------------------------------- | |
252b5132 | 77 | |
50212802 NN |
78 | # The gcc driver likes to know the arguments it was configured with. |
79 | TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@ | |
252b5132 | 80 | |
50212802 NN |
81 | tooldir = @tooldir@ |
82 | build_tooldir = @build_tooldir@ | |
252b5132 | 83 | |
50212802 | 84 | GDB_NLM_DEPS = |
252b5132 | 85 | |
50212802 NN |
86 | # This is the name of the environment variable used for the path to |
87 | # the libraries. | |
88 | RPATH_ENVVAR = @RPATH_ENVVAR@ | |
252b5132 | 89 | |
50212802 NN |
90 | # Build programs are put under this directory. |
91 | BUILD_SUBDIR = @build_subdir@ | |
92 | # This is set by the configure script to the arguments to use when configuring | |
93 | # directories built for the build system. | |
a7254363 | 94 | BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)" |
6a9cf61e PB |
95 | |
96 | # This is the list of variables to export in the environment when | |
97 | # configuring any subdirectory. It must also be exported whenever | |
98 | # recursing into a build directory in case that directory's Makefile | |
99 | # re-runs configure. | |
100 | BASE_EXPORTS = \ | |
101 | FLEX="$(FLEX)"; export FLEX; \ | |
102 | LEX="$(LEX)"; export LEX; \ | |
103 | BISON="$(BISON)"; export BISON; \ | |
104 | YACC="$(YACC)"; export YACC; \ | |
105 | M4="$(M4)"; export M4; \ | |
106 | MAKEINFO="$(MAKEINFO)"; export MAKEINFO; | |
107 | ||
378fce5b | 108 | # This is the list of variables to export in the environment when |
6a9cf61e | 109 | # configuring subdirectories for the build system. |
378fce5b | 110 | BUILD_EXPORTS = \ |
6a9cf61e | 111 | $(BASE_EXPORTS) \ |
378fce5b DD |
112 | AR="$(AR_FOR_BUILD)"; export AR; \ |
113 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
114 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
115 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
116 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
117 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
118 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
119 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | |
120 | GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \ | |
121 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | |
122 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
123 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
124 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
125 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
126 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; | |
50212802 NN |
127 | |
128 | # This is the list of directories to built for the host system. | |
129 | SUBDIRS = @configdirs@ | |
130 | # This is set by the configure script to the arguments to use when configuring | |
131 | # directories built for the host system. | |
132 | HOST_CONFIGARGS = @host_configargs@ | |
b00612cc PB |
133 | # Host programs are put under this directory, which is . except if building |
134 | # with srcdir=.. | |
135 | HOST_SUBDIR = @host_subdir@ | |
378fce5b | 136 | # This is the list of variables to export in the environment when |
be01d343 PB |
137 | # configuring subdirectories for the host system. We need to pass |
138 | # some to the GCC configure because of its hybrid host/target nature. | |
378fce5b | 139 | HOST_EXPORTS = \ |
6a9cf61e | 140 | $(BASE_EXPORTS) \ |
378fce5b DD |
141 | CC="$(CC)"; export CC; \ |
142 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
143 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
144 | CXX="$(CXX)"; export CXX; \ | |
145 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
146 | AR="$(AR)"; export AR; \ | |
147 | AS="$(AS)"; export AS; \ | |
148 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
149 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
150 | LD="$(LD)"; export LD; \ | |
151 | LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \ | |
152 | NM="$(NM)"; export NM; \ | |
153 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
154 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
155 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
95b6a1f2 | 156 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ |
be01d343 PB |
157 | AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ |
158 | AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ | |
159 | GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ | |
160 | LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ | |
161 | NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ | |
162 | OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ | |
163 | RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ | |
378fce5b DD |
164 | TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ |
165 | GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ | |
315b3b02 | 166 | GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
f70224b5 PB |
167 | @if gcc-bootstrap |
168 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ | |
169 | @endif gcc-bootstrap | |
e90269c8 | 170 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
378fce5b DD |
171 | |
172 | # Similar, for later GCC stages. | |
d545f33b | 173 | POSTSTAGE1_HOST_EXPORTS = \ |
7ffa0b57 | 174 | $(HOST_EXPORTS) \ |
b00612cc PB |
175 | CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ |
176 | -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \ | |
177 | CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \ | |
178 | $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ | |
179 | -B$$r/$(HOST_SUBDIR)/prev-gcc/ \ | |
180 | -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; | |
50212802 | 181 | |
50212802 NN |
182 | # Target libraries are put under this directory: |
183 | TARGET_SUBDIR = @target_subdir@ | |
184 | # This is set by the configure script to the arguments to use when configuring | |
185 | # directories built for the target. | |
a7254363 | 186 | TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" |
378fce5b | 187 | # This is the list of variables to export in the environment when |
6a9cf61e | 188 | # configuring subdirectories for the host system. |
378fce5b | 189 | BASE_TARGET_EXPORTS = \ |
6a9cf61e | 190 | $(BASE_EXPORTS) \ |
378fce5b | 191 | AR="$(AR_FOR_TARGET)"; export AR; \ |
be01d343 | 192 | AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \ |
378fce5b DD |
193 | CC="$(CC_FOR_TARGET)"; export CC; \ |
194 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
195 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | |
06bcb89d | 196 | CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ |
378fce5b DD |
197 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
198 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
199 | GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \ | |
200 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
be01d343 | 201 | LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ |
378fce5b | 202 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ |
7e0f7140 | 203 | LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ |
be01d343 | 204 | NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ |
5ae72758 | 205 | OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ |
378fce5b | 206 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ |
7e0f7140 | 207 | STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ |
315b3b02 | 208 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ |
e90269c8 | 209 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
378fce5b DD |
210 | |
211 | RAW_CXX_TARGET_EXPORTS = \ | |
212 | $(BASE_TARGET_EXPORTS) \ | |
213 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ | |
214 | CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; | |
215 | ||
216 | NORMAL_TARGET_EXPORTS = \ | |
217 | $(BASE_TARGET_EXPORTS) \ | |
218 | CXX="$(CXX_FOR_TARGET)"; export CXX; | |
50212802 | 219 | |
4b1cb4fe DD |
220 | # Where to find GMP |
221 | HOST_GMPLIBS = @gmplibs@ | |
222 | HOST_GMPINC = @gmpinc@ | |
223 | ||
50212802 NN |
224 | # ---------------------------------------------- |
225 | # Programs producing files for the BUILD machine | |
226 | # ---------------------------------------------- | |
227 | ||
228 | SHELL = @config_shell@ | |
229 | ||
230 | # pwd command to use. Allow user to override default by setting PWDCMD in | |
231 | # the environment to account for automounters. The make variable must not | |
232 | # be called PWDCMD, otherwise the value set here is passed to make | |
233 | # subprocesses and overrides the setting from the user's environment. | |
b40e3958 L |
234 | # Don't use PWD since it is a common shell environment variable and we |
235 | # don't want to corrupt it. | |
236 | PWD_COMMAND = $${PWDCMD-pwd} | |
50212802 NN |
237 | |
238 | # compilers to use to create programs which must be run in the build | |
239 | # environment. | |
240 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
5fbad20a | 241 | CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ |
50212802 NN |
242 | |
243 | CXX_FOR_BUILD = $(CXX) | |
244 | ||
245 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | |
246 | # here so that they can be overridden by Makefile fragments. | |
50212802 NN |
247 | BUILD_PREFIX = @BUILD_PREFIX@ |
248 | BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | |
252b5132 | 249 | |
0df3d27f PB |
250 | # Flags to pass to stage2 and later makes. They are defined |
251 | # here so that they can be overridden by Makefile fragments. | |
252 | BOOT_CFLAGS= -g -O2 | |
f6d183c0 | 253 | BOOT_LDFLAGS= |
0df3d27f | 254 | |
be01d343 PB |
255 | BISON = @BISON@ |
256 | YACC = @YACC@ | |
257 | FLEX = @FLEX@ | |
258 | LEX = @LEX@ | |
259 | M4 = @M4@ | |
260 | MAKEINFO = @MAKEINFO@ | |
261 | EXPECT = @EXPECT@ | |
262 | RUNTEST = @RUNTEST@ | |
252b5132 RH |
263 | |
264 | # This just becomes part of the MAKEINFO definition passed down to | |
265 | # sub-makes. It lets flags be given on the command line while still | |
266 | # using the makeinfo from the object tree. | |
62a3fc85 DD |
267 | # (Default to avoid splitting info files by setting the threshold high.) |
268 | MAKEINFOFLAGS = --split-size=5000000 | |
252b5132 | 269 | |
50212802 NN |
270 | # --------------------------------------------- |
271 | # Programs producing files for the HOST machine | |
272 | # --------------------------------------------- | |
252b5132 | 273 | |
50212802 | 274 | AS = @AS@ |
50212802 NN |
275 | AR = @AR@ |
276 | AR_FLAGS = rc | |
50212802 | 277 | CC = @CC@ |
50212802 | 278 | CXX = @CXX@ |
50212802 | 279 | DLLTOOL = @DLLTOOL@ |
50212802 | 280 | LD = @LD@ |
be01d343 PB |
281 | LIPO = @LIPO@ |
282 | NM = @NM@ | |
80911fe1 | 283 | OBJDUMP = @OBJDUMP@ |
50212802 | 284 | RANLIB = @RANLIB@ |
be01d343 | 285 | STRIP = @STRIP@ |
50212802 | 286 | WINDRES = @WINDRES@ |
252b5132 | 287 | |
be01d343 PB |
288 | CFLAGS = @CFLAGS@ |
289 | LDFLAGS = | |
290 | LIBCFLAGS = $(CFLAGS) | |
291 | CXXFLAGS = @CXXFLAGS@ | |
292 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | |
50212802 NN |
293 | PICFLAG = |
294 | ||
295 | # ----------------------------------------------- | |
296 | # Programs producing files for the TARGET machine | |
297 | # ----------------------------------------------- | |
0da52010 | 298 | |
58daee98 | 299 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
252b5132 | 300 | |
50212802 | 301 | AR_FOR_TARGET=@AR_FOR_TARGET@ |
852e5f18 | 302 | AS_FOR_TARGET=@AS_FOR_TARGET@ |
55db4b87 | 303 | CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
55db4b87 | 304 | |
50212802 NN |
305 | # If GCC_FOR_TARGET is not overriden on the command line, then this |
306 | # variable is passed down to the gcc Makefile, where it is used to | |
307 | # build libgcc2.a. We define it here so that it can itself be | |
308 | # overridden on the command line. | |
be01d343 | 309 | GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
55db4b87 | 310 | CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
55db4b87 | 311 | RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
55db4b87 | 312 | GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
55db4b87 | 313 | GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
852e5f18 | 314 | DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
50212802 | 315 | LD_FOR_TARGET=@LD_FOR_TARGET@ |
50212802 | 316 | |
7e0f7140 | 317 | LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ |
50212802 | 318 | NM_FOR_TARGET=@NM_FOR_TARGET@ |
5ae72758 | 319 | OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ |
852e5f18 | 320 | RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
7e0f7140 | 321 | STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ |
50212802 | 322 | WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
252b5132 | 323 | |
be01d343 PB |
324 | COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@ |
325 | COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@ | |
326 | COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@ | |
327 | ||
328 | # During gcc bootstrap, if we use some random cc for stage1 then | |
329 | # CFLAGS will be just -g. We want to ensure that TARGET libraries | |
330 | # (which we know are built with gcc) are built with optimizations so | |
331 | # prepend -O2 when setting CFLAGS_FOR_TARGET. | |
332 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) | |
333 | SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ | |
334 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) | |
335 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | |
336 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | |
337 | LDFLAGS_FOR_TARGET = | |
50212802 NN |
338 | PICFLAG_FOR_TARGET = |
339 | ||
340 | # ------------------------------------ | |
341 | # Miscellaneous targets and flag lists | |
342 | # ------------------------------------ | |
343 | ||
252b5132 RH |
344 | # The first rule in the file had better be this one. Don't put any above it. |
345 | # This lives here to allow makefile fragments to contain dependencies. | |
f70224b5 | 346 | all: |
252b5132 | 347 | |
252b5132 | 348 | #### host and target specific makefile fragments come in here. |
a0da8069 NN |
349 | @target_makefile_frag@ |
350 | @alphaieee_frag@ | |
351 | @ospace_frag@ | |
352 | @host_makefile_frag@ | |
252b5132 RH |
353 | ### |
354 | ||
e90269c8 PB |
355 | # This is the list of directories that may be needed in RPATH_ENVVAR |
356 | # so that prorgams built for the target machine work. | |
b3ded179 | 357 | TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgcc-math)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc) |
e90269c8 PB |
358 | |
359 | @if target-libstdc++-v3 | |
360 | TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs: | |
361 | @endif target-libstdc++-v3 | |
362 | ||
363 | @if target-libmudflap | |
364 | TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs: | |
365 | @endif target-libmudflap | |
366 | ||
064d0a7c PB |
367 | @if target-libssp |
368 | TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs: | |
369 | @endif target-libssp | |
370 | ||
b3ded179 PB |
371 | @if target-libgcc-math |
372 | TARGET_LIB_PATH_libgcc-math = $$r/$(TARGET_SUBDIR)/libgcc-math/.libs: | |
373 | @endif target-libgcc-math | |
374 | ||
375 | @if target-libgomp | |
376 | TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs: | |
377 | @endif target-libgomp | |
378 | ||
e90269c8 PB |
379 | |
380 | ||
381 | # This is the list of directories that may be needed in RPATH_ENVVAR | |
382 | # so that programs built for the host machine work. | |
383 | HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes) | |
384 | ||
385 | # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch | |
386 | @if gcc | |
387 | HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc: | |
388 | @endif gcc | |
389 | ||
390 | ||
391 | @if bfd | |
392 | HOST_LIB_PATH_bfd = \ | |
393 | $$r/$(HOST_SUBDIR)/bfd/.:$$r/$(HOST_SUBDIR)/prev-bfd/.: | |
394 | @endif bfd | |
395 | ||
396 | @if opcodes | |
397 | HOST_LIB_PATH_opcodes = \ | |
398 | $$r/$(HOST_SUBDIR)/opcodes/.:$$r/$(HOST_SUBDIR)/prev-opcodes/.: | |
399 | @endif opcodes | |
400 | ||
401 | ||
252b5132 | 402 | # Flags to pass down to all sub-makes. |
252b5132 | 403 | BASE_FLAGS_TO_PASS = \ |
497f816e | 404 | "DESTDIR=$(DESTDIR)" \ |
252b5132 | 405 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ |
252b5132 | 406 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ |
252b5132 RH |
407 | "bindir=$(bindir)" \ |
408 | "datadir=$(datadir)" \ | |
409 | "exec_prefix=$(exec_prefix)" \ | |
410 | "includedir=$(includedir)" \ | |
108a6f8e CD |
411 | "datarootdir=$(datarootdir)" \ |
412 | "docdir=$(docdir)" \ | |
252b5132 | 413 | "infodir=$(infodir)" \ |
108a6f8e | 414 | "htmldir=$(htmldir)" \ |
252b5132 RH |
415 | "libdir=$(libdir)" \ |
416 | "libexecdir=$(libexecdir)" \ | |
417 | "lispdir=$(lispdir)" \ | |
418 | "localstatedir=$(localstatedir)" \ | |
419 | "mandir=$(mandir)" \ | |
420 | "oldincludedir=$(oldincludedir)" \ | |
421 | "prefix=$(prefix)" \ | |
422 | "sbindir=$(sbindir)" \ | |
423 | "sharedstatedir=$(sharedstatedir)" \ | |
424 | "sysconfdir=$(sysconfdir)" \ | |
425 | "tooldir=$(tooldir)" \ | |
ba73c63f | 426 | "build_tooldir=$(build_tooldir)" \ |
12f0bd74 NN |
427 | "target_alias=$(target_alias)" \ |
428 | "BISON=$(BISON)" \ | |
429 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
b2edd3b5 | 430 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
12f0bd74 NN |
431 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
432 | "EXPECT=$(EXPECT)" \ | |
6a9cf61e | 433 | "FLEX=$(FLEX)" \ |
12f0bd74 NN |
434 | "INSTALL=$(INSTALL)" \ |
435 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
436 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
437 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
438 | "LEX=$(LEX)" \ | |
439 | "M4=$(M4)" \ | |
440 | "MAKE=$(MAKE)" \ | |
441 | "RUNTEST=$(RUNTEST)" \ | |
442 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
443 | "SHELL=$(SHELL)" \ | |
444 | "YACC=$(YACC)" \ | |
c52c6897 | 445 | "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
12f0bd74 | 446 | "AR_FLAGS=$(AR_FLAGS)" \ |
c52c6897 | 447 | "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
f6d183c0 PB |
448 | "BOOT_CFLAGS=$(BOOT_CFLAGS)" \ |
449 | "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \ | |
12f0bd74 NN |
450 | "CFLAGS=$(CFLAGS)" \ |
451 | "CXXFLAGS=$(CXXFLAGS)" \ | |
452 | "LDFLAGS=$(LDFLAGS)" \ | |
453 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
454 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | |
80911fe1 PB |
455 | "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \ |
456 | "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \ | |
12f0bd74 NN |
457 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ |
458 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | |
459 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
460 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
06bcb89d | 461 | "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \ |
12f0bd74 NN |
462 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ |
463 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ | |
464 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ | |
465 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \ | |
4b1cb4fe | 466 | "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \ |
12f0bd74 | 467 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ |
7e0f7140 | 468 | "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \ |
414e5532 | 469 | "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \ |
12f0bd74 NN |
470 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ |
471 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
472 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
5ae72758 | 473 | "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \ |
12f0bd74 | 474 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ |
7e0f7140 | 475 | "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \ |
12f0bd74 | 476 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ |
c52c6897 | 477 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
80911fe1 | 478 | "LEAN=$(LEAN)" \ |
10ecffb9 | 479 | "CONFIG_SHELL=$(SHELL)" \ |
12f0bd74 | 480 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" |
252b5132 | 481 | |
55db4b87 PB |
482 | # We leave this in just in case, but it is not needed anymore. |
483 | RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) | |
656fdd47 | 484 | |
252b5132 RH |
485 | # Flags to pass down to most sub-makes, in which we're building with |
486 | # the host environment. | |
252b5132 RH |
487 | EXTRA_HOST_FLAGS = \ |
488 | 'AR=$(AR)' \ | |
489 | 'AS=$(AS)' \ | |
490 | 'CC=$(CC)' \ | |
491 | 'CXX=$(CXX)' \ | |
492 | 'DLLTOOL=$(DLLTOOL)' \ | |
493 | 'LD=$(LD)' \ | |
be01d343 | 494 | 'LIPO=$(LIPO)' \ |
252b5132 | 495 | 'NM=$(NM)' \ |
80911fe1 | 496 | 'OBJDUMP=$(OBJDUMP)' \ |
b9459e83 | 497 | 'RANLIB=$(RANLIB)' \ |
be01d343 | 498 | 'STRIP=$(STRIP)' \ |
252b5132 RH |
499 | 'WINDRES=$(WINDRES)' |
500 | ||
501 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
502 | ||
503 | # Flags that are concerned with the location of the X11 include files | |
504 | # and library files | |
505 | # | |
506 | # NOTE: until the top-level is getting the values via autoconf, it only | |
507 | # causes problems to have this top-level Makefile overriding the autoconf-set | |
508 | # values in child directories. Only variables that don't conflict with | |
509 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | |
510 | # | |
511 | X11_FLAGS_TO_PASS = \ | |
512 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | |
513 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | |
514 | ||
515 | # Flags to pass down to makes which are built with the target environment. | |
0aed8855 PB |
516 | # The double $ decreases the length of the command line; those variables |
517 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The | |
518 | # COMPILER_ prefixed variables are not passed down so we expand them here. | |
252b5132 RH |
519 | EXTRA_TARGET_FLAGS = \ |
520 | 'AR=$$(AR_FOR_TARGET)' \ | |
0aed8855 | 521 | 'AS=$(COMPILER_AS_FOR_TARGET)' \ |
252b5132 RH |
522 | 'CC=$$(CC_FOR_TARGET)' \ |
523 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | |
524 | 'CXX=$$(CXX_FOR_TARGET)' \ | |
525 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | |
526 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
0aed8855 | 527 | 'LD=$(COMPILER_LD_FOR_TARGET)' \ |
414e5532 | 528 | 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ |
252b5132 RH |
529 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ |
530 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
0aed8855 | 531 | 'NM=$(COMPILER_NM_FOR_TARGET)' \ |
5ae72758 | 532 | 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ |
252b5132 RH |
533 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
534 | 'WINDRES=$$(WINDRES_FOR_TARGET)' | |
535 | ||
536 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
537 | ||
538 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | |
539 | # unfortunately needs the native compiler and the target ar and | |
540 | # ranlib. | |
541 | # If any variables are added here, they must be added to do-*, below. | |
2a4cbe27 | 542 | # The BUILD_* variables are a special case, which are used for the gcc |
252b5132 RH |
543 | # cross-building scheme. |
544 | EXTRA_GCC_FLAGS = \ | |
252b5132 | 545 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
3dee29da NN |
546 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
547 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
548 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
549 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ | |
c52c6897 | 550 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
252b5132 | 551 | |
f0b24077 | 552 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) |
252b5132 | 553 | |
dd12c3a8 | 554 | .PHONY: configure-host |
b813574b | 555 | configure-host: \ |
dd12c3a8 NN |
556 | maybe-configure-ash \ |
557 | maybe-configure-autoconf \ | |
558 | maybe-configure-automake \ | |
559 | maybe-configure-bash \ | |
560 | maybe-configure-bfd \ | |
561 | maybe-configure-opcodes \ | |
562 | maybe-configure-binutils \ | |
563 | maybe-configure-bison \ | |
564 | maybe-configure-byacc \ | |
565 | maybe-configure-bzip2 \ | |
566 | maybe-configure-dejagnu \ | |
567 | maybe-configure-diff \ | |
568 | maybe-configure-dosutils \ | |
569 | maybe-configure-etc \ | |
570 | maybe-configure-fastjar \ | |
571 | maybe-configure-fileutils \ | |
572 | maybe-configure-findutils \ | |
573 | maybe-configure-find \ | |
d3ed111c | 574 | maybe-configure-fixincludes \ |
dd12c3a8 NN |
575 | maybe-configure-flex \ |
576 | maybe-configure-gas \ | |
b813574b | 577 | maybe-configure-gcc \ |
dd12c3a8 NN |
578 | maybe-configure-gawk \ |
579 | maybe-configure-gettext \ | |
580 | maybe-configure-gnuserv \ | |
581 | maybe-configure-gprof \ | |
582 | maybe-configure-gzip \ | |
583 | maybe-configure-hello \ | |
584 | maybe-configure-indent \ | |
585 | maybe-configure-intl \ | |
586 | maybe-configure-tcl \ | |
587 | maybe-configure-itcl \ | |
588 | maybe-configure-ld \ | |
04cf1b77 | 589 | maybe-configure-libcpp \ |
be01d343 | 590 | maybe-configure-libdecnumber \ |
dd12c3a8 NN |
591 | maybe-configure-libgui \ |
592 | maybe-configure-libiberty \ | |
593 | maybe-configure-libtool \ | |
594 | maybe-configure-m4 \ | |
595 | maybe-configure-make \ | |
596 | maybe-configure-mmalloc \ | |
597 | maybe-configure-patch \ | |
598 | maybe-configure-perl \ | |
599 | maybe-configure-prms \ | |
600 | maybe-configure-rcs \ | |
601 | maybe-configure-readline \ | |
602 | maybe-configure-release \ | |
603 | maybe-configure-recode \ | |
604 | maybe-configure-sed \ | |
605 | maybe-configure-send-pr \ | |
606 | maybe-configure-shellutils \ | |
607 | maybe-configure-sid \ | |
608 | maybe-configure-sim \ | |
609 | maybe-configure-tar \ | |
610 | maybe-configure-texinfo \ | |
611 | maybe-configure-textutils \ | |
612 | maybe-configure-time \ | |
613 | maybe-configure-uudecode \ | |
614 | maybe-configure-wdiff \ | |
615 | maybe-configure-zip \ | |
616 | maybe-configure-zlib \ | |
617 | maybe-configure-gdb \ | |
618 | maybe-configure-expect \ | |
619 | maybe-configure-guile \ | |
620 | maybe-configure-tk \ | |
dd12c3a8 | 621 | maybe-configure-libtermcap \ |
b00612cc PB |
622 | maybe-configure-utils \ |
623 | maybe-configure-gnattools | |
dd12c3a8 NN |
624 | .PHONY: configure-target |
625 | configure-target: \ | |
626 | maybe-configure-target-libstdc++-v3 \ | |
4b1cb4fe | 627 | maybe-configure-target-libmudflap \ |
064d0a7c | 628 | maybe-configure-target-libssp \ |
b3ded179 | 629 | maybe-configure-target-libgcc-math \ |
dd12c3a8 | 630 | maybe-configure-target-newlib \ |
4b1cb4fe | 631 | maybe-configure-target-libgfortran \ |
dd12c3a8 NN |
632 | maybe-configure-target-libobjc \ |
633 | maybe-configure-target-libtermcap \ | |
634 | maybe-configure-target-winsup \ | |
635 | maybe-configure-target-libgloss \ | |
636 | maybe-configure-target-libiberty \ | |
637 | maybe-configure-target-gperf \ | |
638 | maybe-configure-target-examples \ | |
639 | maybe-configure-target-libffi \ | |
640 | maybe-configure-target-libjava \ | |
641 | maybe-configure-target-zlib \ | |
642 | maybe-configure-target-boehm-gc \ | |
643 | maybe-configure-target-qthreads \ | |
a2592b1b | 644 | maybe-configure-target-rda \ |
b3ded179 PB |
645 | maybe-configure-target-libada \ |
646 | maybe-configure-target-libgomp | |
252b5132 | 647 | |
319cab08 PB |
648 | # The target built for a native non-bootstrap build. |
649 | .PHONY: all | |
f70224b5 PB |
650 | all: |
651 | @if gcc-bootstrap | |
be01d343 | 652 | [ -f stage_final ] || echo stage3 > stage_final |
f70224b5 PB |
653 | @r=`${PWD_COMMAND}`; export r; \ |
654 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 655 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble |
f70224b5 | 656 | @endif gcc-bootstrap |
0aed8855 | 657 | @: $(MAKE); $(unstage) |
f70224b5 PB |
658 | @r=`${PWD_COMMAND}`; export r; \ |
659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
660 | if [ -f stage_last ]; then \ | |
be01d343 | 661 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \ |
f70224b5 | 662 | else \ |
be01d343 | 663 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \ |
f70224b5 | 664 | fi |
6a9cf61e PB |
665 | |
666 | .PHONY: all-build | |
c52c6897 PB |
667 | |
668 | all-build: maybe-all-build-libiberty | |
669 | all-build: maybe-all-build-bison | |
670 | all-build: maybe-all-build-byacc | |
671 | all-build: maybe-all-build-flex | |
672 | all-build: maybe-all-build-m4 | |
673 | all-build: maybe-all-build-texinfo | |
674 | all-build: maybe-all-build-fixincludes | |
675 | ||
dd12c3a8 | 676 | .PHONY: all-host |
c52c6897 PB |
677 | |
678 | all-host: maybe-all-ash | |
679 | all-host: maybe-all-autoconf | |
680 | all-host: maybe-all-automake | |
681 | all-host: maybe-all-bash | |
682 | @if bfd-no-bootstrap | |
683 | all-host: maybe-all-bfd | |
684 | @endif bfd-no-bootstrap | |
685 | @if opcodes-no-bootstrap | |
686 | all-host: maybe-all-opcodes | |
687 | @endif opcodes-no-bootstrap | |
688 | @if binutils-no-bootstrap | |
689 | all-host: maybe-all-binutils | |
690 | @endif binutils-no-bootstrap | |
691 | all-host: maybe-all-bison | |
692 | all-host: maybe-all-byacc | |
693 | all-host: maybe-all-bzip2 | |
694 | all-host: maybe-all-dejagnu | |
695 | all-host: maybe-all-diff | |
696 | all-host: maybe-all-dosutils | |
697 | all-host: maybe-all-etc | |
698 | all-host: maybe-all-fastjar | |
699 | all-host: maybe-all-fileutils | |
700 | all-host: maybe-all-findutils | |
701 | all-host: maybe-all-find | |
702 | all-host: maybe-all-fixincludes | |
703 | all-host: maybe-all-flex | |
704 | @if gas-no-bootstrap | |
705 | all-host: maybe-all-gas | |
706 | @endif gas-no-bootstrap | |
707 | @if gcc-no-bootstrap | |
708 | all-host: maybe-all-gcc | |
709 | @endif gcc-no-bootstrap | |
710 | all-host: maybe-all-gawk | |
711 | all-host: maybe-all-gettext | |
712 | all-host: maybe-all-gnuserv | |
713 | all-host: maybe-all-gprof | |
714 | all-host: maybe-all-gzip | |
715 | all-host: maybe-all-hello | |
716 | all-host: maybe-all-indent | |
717 | @if intl-no-bootstrap | |
718 | all-host: maybe-all-intl | |
719 | @endif intl-no-bootstrap | |
720 | all-host: maybe-all-tcl | |
721 | all-host: maybe-all-itcl | |
722 | @if ld-no-bootstrap | |
723 | all-host: maybe-all-ld | |
724 | @endif ld-no-bootstrap | |
725 | @if libcpp-no-bootstrap | |
726 | all-host: maybe-all-libcpp | |
727 | @endif libcpp-no-bootstrap | |
728 | @if libdecnumber-no-bootstrap | |
729 | all-host: maybe-all-libdecnumber | |
730 | @endif libdecnumber-no-bootstrap | |
731 | all-host: maybe-all-libgui | |
732 | @if libiberty-no-bootstrap | |
733 | all-host: maybe-all-libiberty | |
734 | @endif libiberty-no-bootstrap | |
735 | all-host: maybe-all-libtool | |
736 | all-host: maybe-all-m4 | |
737 | all-host: maybe-all-make | |
738 | all-host: maybe-all-mmalloc | |
739 | all-host: maybe-all-patch | |
740 | all-host: maybe-all-perl | |
741 | all-host: maybe-all-prms | |
742 | all-host: maybe-all-rcs | |
743 | all-host: maybe-all-readline | |
744 | all-host: maybe-all-release | |
745 | all-host: maybe-all-recode | |
746 | all-host: maybe-all-sed | |
747 | all-host: maybe-all-send-pr | |
748 | all-host: maybe-all-shellutils | |
749 | all-host: maybe-all-sid | |
750 | all-host: maybe-all-sim | |
751 | all-host: maybe-all-tar | |
752 | all-host: maybe-all-texinfo | |
753 | all-host: maybe-all-textutils | |
754 | all-host: maybe-all-time | |
755 | all-host: maybe-all-uudecode | |
756 | all-host: maybe-all-wdiff | |
757 | all-host: maybe-all-zip | |
758 | @if zlib-no-bootstrap | |
759 | all-host: maybe-all-zlib | |
760 | @endif zlib-no-bootstrap | |
761 | all-host: maybe-all-gdb | |
762 | all-host: maybe-all-expect | |
763 | all-host: maybe-all-guile | |
764 | all-host: maybe-all-tk | |
765 | all-host: maybe-all-libtermcap | |
766 | all-host: maybe-all-utils | |
767 | all-host: maybe-all-gnattools | |
768 | ||
dd12c3a8 | 769 | .PHONY: all-target |
c52c6897 PB |
770 | |
771 | all-target: maybe-all-target-libstdc++-v3 | |
772 | all-target: maybe-all-target-libmudflap | |
773 | all-target: maybe-all-target-libssp | |
774 | all-target: maybe-all-target-libgcc-math | |
775 | all-target: maybe-all-target-newlib | |
776 | all-target: maybe-all-target-libgfortran | |
777 | all-target: maybe-all-target-libobjc | |
778 | all-target: maybe-all-target-libtermcap | |
779 | all-target: maybe-all-target-winsup | |
780 | all-target: maybe-all-target-libgloss | |
781 | all-target: maybe-all-target-libiberty | |
782 | all-target: maybe-all-target-gperf | |
783 | all-target: maybe-all-target-examples | |
784 | all-target: maybe-all-target-libffi | |
785 | all-target: maybe-all-target-libjava | |
786 | all-target: maybe-all-target-zlib | |
787 | all-target: maybe-all-target-boehm-gc | |
788 | all-target: maybe-all-target-qthreads | |
789 | all-target: maybe-all-target-rda | |
790 | all-target: maybe-all-target-libada | |
791 | all-target: maybe-all-target-libgomp | |
252b5132 RH |
792 | |
793 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
794 | # ``make X'' in all subdirectories (because, in general, there is a | |
795 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
796 | # but it may do additional work as well). | |
e393202e | 797 | |
2a4cbe27 | 798 | .PHONY: do-info |
f70224b5 | 799 | do-info: |
0aed8855 | 800 | @: $(MAKE); $(unstage) |
e360f423 PB |
801 | @r=`${PWD_COMMAND}`; export r; \ |
802 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
803 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \ | |
f70224b5 | 804 | info-target |
f70224b5 | 805 | |
e393202e | 806 | |
2a4cbe27 | 807 | .PHONY: info-host |
c52c6897 PB |
808 | |
809 | info-host: maybe-info-ash | |
810 | info-host: maybe-info-autoconf | |
811 | info-host: maybe-info-automake | |
812 | info-host: maybe-info-bash | |
813 | info-host: maybe-info-bfd | |
814 | info-host: maybe-info-opcodes | |
815 | info-host: maybe-info-binutils | |
816 | info-host: maybe-info-bison | |
817 | info-host: maybe-info-byacc | |
818 | info-host: maybe-info-bzip2 | |
819 | info-host: maybe-info-dejagnu | |
820 | info-host: maybe-info-diff | |
821 | info-host: maybe-info-dosutils | |
822 | info-host: maybe-info-etc | |
823 | info-host: maybe-info-fastjar | |
824 | info-host: maybe-info-fileutils | |
825 | info-host: maybe-info-findutils | |
826 | info-host: maybe-info-find | |
827 | info-host: maybe-info-fixincludes | |
828 | info-host: maybe-info-flex | |
829 | info-host: maybe-info-gas | |
830 | info-host: maybe-info-gcc | |
831 | info-host: maybe-info-gawk | |
832 | info-host: maybe-info-gettext | |
833 | info-host: maybe-info-gnuserv | |
834 | info-host: maybe-info-gprof | |
835 | info-host: maybe-info-gzip | |
836 | info-host: maybe-info-hello | |
837 | info-host: maybe-info-indent | |
838 | info-host: maybe-info-intl | |
839 | info-host: maybe-info-tcl | |
840 | info-host: maybe-info-itcl | |
841 | info-host: maybe-info-ld | |
842 | info-host: maybe-info-libcpp | |
843 | info-host: maybe-info-libdecnumber | |
844 | info-host: maybe-info-libgui | |
845 | info-host: maybe-info-libiberty | |
846 | info-host: maybe-info-libtool | |
847 | info-host: maybe-info-m4 | |
848 | info-host: maybe-info-make | |
849 | info-host: maybe-info-mmalloc | |
850 | info-host: maybe-info-patch | |
851 | info-host: maybe-info-perl | |
852 | info-host: maybe-info-prms | |
853 | info-host: maybe-info-rcs | |
854 | info-host: maybe-info-readline | |
855 | info-host: maybe-info-release | |
856 | info-host: maybe-info-recode | |
857 | info-host: maybe-info-sed | |
858 | info-host: maybe-info-send-pr | |
859 | info-host: maybe-info-shellutils | |
860 | info-host: maybe-info-sid | |
861 | info-host: maybe-info-sim | |
862 | info-host: maybe-info-tar | |
863 | info-host: maybe-info-texinfo | |
864 | info-host: maybe-info-textutils | |
865 | info-host: maybe-info-time | |
866 | info-host: maybe-info-uudecode | |
867 | info-host: maybe-info-wdiff | |
868 | info-host: maybe-info-zip | |
869 | info-host: maybe-info-zlib | |
870 | info-host: maybe-info-gdb | |
871 | info-host: maybe-info-expect | |
872 | info-host: maybe-info-guile | |
873 | info-host: maybe-info-tk | |
874 | info-host: maybe-info-libtermcap | |
875 | info-host: maybe-info-utils | |
876 | info-host: maybe-info-gnattools | |
252b5132 | 877 | |
2a4cbe27 | 878 | .PHONY: info-target |
c52c6897 PB |
879 | |
880 | info-target: maybe-info-target-libstdc++-v3 | |
881 | info-target: maybe-info-target-libmudflap | |
882 | info-target: maybe-info-target-libssp | |
883 | info-target: maybe-info-target-libgcc-math | |
884 | info-target: maybe-info-target-newlib | |
885 | info-target: maybe-info-target-libgfortran | |
886 | info-target: maybe-info-target-libobjc | |
887 | info-target: maybe-info-target-libtermcap | |
888 | info-target: maybe-info-target-winsup | |
889 | info-target: maybe-info-target-libgloss | |
890 | info-target: maybe-info-target-libiberty | |
891 | info-target: maybe-info-target-gperf | |
892 | info-target: maybe-info-target-examples | |
893 | info-target: maybe-info-target-libffi | |
894 | info-target: maybe-info-target-libjava | |
895 | info-target: maybe-info-target-zlib | |
896 | info-target: maybe-info-target-boehm-gc | |
897 | info-target: maybe-info-target-qthreads | |
898 | info-target: maybe-info-target-rda | |
899 | info-target: maybe-info-target-libada | |
900 | info-target: maybe-info-target-libgomp | |
252b5132 | 901 | |
4fa63067 | 902 | .PHONY: do-dvi |
f70224b5 | 903 | do-dvi: |
0aed8855 | 904 | @: $(MAKE); $(unstage) |
e360f423 PB |
905 | @r=`${PWD_COMMAND}`; export r; \ |
906 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
907 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \ | |
f70224b5 | 908 | dvi-target |
f70224b5 | 909 | |
2a4cbe27 | 910 | |
4fa63067 | 911 | .PHONY: dvi-host |
c52c6897 PB |
912 | |
913 | dvi-host: maybe-dvi-ash | |
914 | dvi-host: maybe-dvi-autoconf | |
915 | dvi-host: maybe-dvi-automake | |
916 | dvi-host: maybe-dvi-bash | |
917 | dvi-host: maybe-dvi-bfd | |
918 | dvi-host: maybe-dvi-opcodes | |
919 | dvi-host: maybe-dvi-binutils | |
920 | dvi-host: maybe-dvi-bison | |
921 | dvi-host: maybe-dvi-byacc | |
922 | dvi-host: maybe-dvi-bzip2 | |
923 | dvi-host: maybe-dvi-dejagnu | |
924 | dvi-host: maybe-dvi-diff | |
925 | dvi-host: maybe-dvi-dosutils | |
926 | dvi-host: maybe-dvi-etc | |
927 | dvi-host: maybe-dvi-fastjar | |
928 | dvi-host: maybe-dvi-fileutils | |
929 | dvi-host: maybe-dvi-findutils | |
930 | dvi-host: maybe-dvi-find | |
931 | dvi-host: maybe-dvi-fixincludes | |
932 | dvi-host: maybe-dvi-flex | |
933 | dvi-host: maybe-dvi-gas | |
934 | dvi-host: maybe-dvi-gcc | |
935 | dvi-host: maybe-dvi-gawk | |
936 | dvi-host: maybe-dvi-gettext | |
937 | dvi-host: maybe-dvi-gnuserv | |
938 | dvi-host: maybe-dvi-gprof | |
939 | dvi-host: maybe-dvi-gzip | |
940 | dvi-host: maybe-dvi-hello | |
941 | dvi-host: maybe-dvi-indent | |
942 | dvi-host: maybe-dvi-intl | |
943 | dvi-host: maybe-dvi-tcl | |
944 | dvi-host: maybe-dvi-itcl | |
945 | dvi-host: maybe-dvi-ld | |
946 | dvi-host: maybe-dvi-libcpp | |
947 | dvi-host: maybe-dvi-libdecnumber | |
948 | dvi-host: maybe-dvi-libgui | |
949 | dvi-host: maybe-dvi-libiberty | |
950 | dvi-host: maybe-dvi-libtool | |
951 | dvi-host: maybe-dvi-m4 | |
952 | dvi-host: maybe-dvi-make | |
953 | dvi-host: maybe-dvi-mmalloc | |
954 | dvi-host: maybe-dvi-patch | |
955 | dvi-host: maybe-dvi-perl | |
956 | dvi-host: maybe-dvi-prms | |
957 | dvi-host: maybe-dvi-rcs | |
958 | dvi-host: maybe-dvi-readline | |
959 | dvi-host: maybe-dvi-release | |
960 | dvi-host: maybe-dvi-recode | |
961 | dvi-host: maybe-dvi-sed | |
962 | dvi-host: maybe-dvi-send-pr | |
963 | dvi-host: maybe-dvi-shellutils | |
964 | dvi-host: maybe-dvi-sid | |
965 | dvi-host: maybe-dvi-sim | |
966 | dvi-host: maybe-dvi-tar | |
967 | dvi-host: maybe-dvi-texinfo | |
968 | dvi-host: maybe-dvi-textutils | |
969 | dvi-host: maybe-dvi-time | |
970 | dvi-host: maybe-dvi-uudecode | |
971 | dvi-host: maybe-dvi-wdiff | |
972 | dvi-host: maybe-dvi-zip | |
973 | dvi-host: maybe-dvi-zlib | |
974 | dvi-host: maybe-dvi-gdb | |
975 | dvi-host: maybe-dvi-expect | |
976 | dvi-host: maybe-dvi-guile | |
977 | dvi-host: maybe-dvi-tk | |
978 | dvi-host: maybe-dvi-libtermcap | |
979 | dvi-host: maybe-dvi-utils | |
980 | dvi-host: maybe-dvi-gnattools | |
2a4cbe27 | 981 | |
4fa63067 | 982 | .PHONY: dvi-target |
c52c6897 PB |
983 | |
984 | dvi-target: maybe-dvi-target-libstdc++-v3 | |
985 | dvi-target: maybe-dvi-target-libmudflap | |
986 | dvi-target: maybe-dvi-target-libssp | |
987 | dvi-target: maybe-dvi-target-libgcc-math | |
988 | dvi-target: maybe-dvi-target-newlib | |
989 | dvi-target: maybe-dvi-target-libgfortran | |
990 | dvi-target: maybe-dvi-target-libobjc | |
991 | dvi-target: maybe-dvi-target-libtermcap | |
992 | dvi-target: maybe-dvi-target-winsup | |
993 | dvi-target: maybe-dvi-target-libgloss | |
994 | dvi-target: maybe-dvi-target-libiberty | |
995 | dvi-target: maybe-dvi-target-gperf | |
996 | dvi-target: maybe-dvi-target-examples | |
997 | dvi-target: maybe-dvi-target-libffi | |
998 | dvi-target: maybe-dvi-target-libjava | |
999 | dvi-target: maybe-dvi-target-zlib | |
1000 | dvi-target: maybe-dvi-target-boehm-gc | |
1001 | dvi-target: maybe-dvi-target-qthreads | |
1002 | dvi-target: maybe-dvi-target-rda | |
1003 | dvi-target: maybe-dvi-target-libada | |
1004 | dvi-target: maybe-dvi-target-libgomp | |
2a4cbe27 | 1005 | |
6d389afc | 1006 | .PHONY: do-html |
f70224b5 | 1007 | do-html: |
0aed8855 | 1008 | @: $(MAKE); $(unstage) |
e360f423 PB |
1009 | @r=`${PWD_COMMAND}`; export r; \ |
1010 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1011 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \ | |
f70224b5 | 1012 | html-target |
f70224b5 | 1013 | |
6d389afc MS |
1014 | |
1015 | .PHONY: html-host | |
c52c6897 PB |
1016 | |
1017 | html-host: maybe-html-ash | |
1018 | html-host: maybe-html-autoconf | |
1019 | html-host: maybe-html-automake | |
1020 | html-host: maybe-html-bash | |
1021 | html-host: maybe-html-bfd | |
1022 | html-host: maybe-html-opcodes | |
1023 | html-host: maybe-html-binutils | |
1024 | html-host: maybe-html-bison | |
1025 | html-host: maybe-html-byacc | |
1026 | html-host: maybe-html-bzip2 | |
1027 | html-host: maybe-html-dejagnu | |
1028 | html-host: maybe-html-diff | |
1029 | html-host: maybe-html-dosutils | |
1030 | html-host: maybe-html-etc | |
1031 | html-host: maybe-html-fastjar | |
1032 | html-host: maybe-html-fileutils | |
1033 | html-host: maybe-html-findutils | |
1034 | html-host: maybe-html-find | |
1035 | html-host: maybe-html-fixincludes | |
1036 | html-host: maybe-html-flex | |
1037 | html-host: maybe-html-gas | |
1038 | html-host: maybe-html-gcc | |
1039 | html-host: maybe-html-gawk | |
1040 | html-host: maybe-html-gettext | |
1041 | html-host: maybe-html-gnuserv | |
1042 | html-host: maybe-html-gprof | |
1043 | html-host: maybe-html-gzip | |
1044 | html-host: maybe-html-hello | |
1045 | html-host: maybe-html-indent | |
1046 | html-host: maybe-html-intl | |
1047 | html-host: maybe-html-tcl | |
1048 | html-host: maybe-html-itcl | |
1049 | html-host: maybe-html-ld | |
1050 | html-host: maybe-html-libcpp | |
1051 | html-host: maybe-html-libdecnumber | |
1052 | html-host: maybe-html-libgui | |
1053 | html-host: maybe-html-libiberty | |
1054 | html-host: maybe-html-libtool | |
1055 | html-host: maybe-html-m4 | |
1056 | html-host: maybe-html-make | |
1057 | html-host: maybe-html-mmalloc | |
1058 | html-host: maybe-html-patch | |
1059 | html-host: maybe-html-perl | |
1060 | html-host: maybe-html-prms | |
1061 | html-host: maybe-html-rcs | |
1062 | html-host: maybe-html-readline | |
1063 | html-host: maybe-html-release | |
1064 | html-host: maybe-html-recode | |
1065 | html-host: maybe-html-sed | |
1066 | html-host: maybe-html-send-pr | |
1067 | html-host: maybe-html-shellutils | |
1068 | html-host: maybe-html-sid | |
1069 | html-host: maybe-html-sim | |
1070 | html-host: maybe-html-tar | |
1071 | html-host: maybe-html-texinfo | |
1072 | html-host: maybe-html-textutils | |
1073 | html-host: maybe-html-time | |
1074 | html-host: maybe-html-uudecode | |
1075 | html-host: maybe-html-wdiff | |
1076 | html-host: maybe-html-zip | |
1077 | html-host: maybe-html-zlib | |
1078 | html-host: maybe-html-gdb | |
1079 | html-host: maybe-html-expect | |
1080 | html-host: maybe-html-guile | |
1081 | html-host: maybe-html-tk | |
1082 | html-host: maybe-html-libtermcap | |
1083 | html-host: maybe-html-utils | |
1084 | html-host: maybe-html-gnattools | |
6d389afc MS |
1085 | |
1086 | .PHONY: html-target | |
c52c6897 PB |
1087 | |
1088 | html-target: maybe-html-target-libstdc++-v3 | |
1089 | html-target: maybe-html-target-libmudflap | |
1090 | html-target: maybe-html-target-libssp | |
1091 | html-target: maybe-html-target-libgcc-math | |
1092 | html-target: maybe-html-target-newlib | |
1093 | html-target: maybe-html-target-libgfortran | |
1094 | html-target: maybe-html-target-libobjc | |
1095 | html-target: maybe-html-target-libtermcap | |
1096 | html-target: maybe-html-target-winsup | |
1097 | html-target: maybe-html-target-libgloss | |
1098 | html-target: maybe-html-target-libiberty | |
1099 | html-target: maybe-html-target-gperf | |
1100 | html-target: maybe-html-target-examples | |
1101 | html-target: maybe-html-target-libffi | |
1102 | html-target: maybe-html-target-libjava | |
1103 | html-target: maybe-html-target-zlib | |
1104 | html-target: maybe-html-target-boehm-gc | |
1105 | html-target: maybe-html-target-qthreads | |
1106 | html-target: maybe-html-target-rda | |
1107 | html-target: maybe-html-target-libada | |
1108 | html-target: maybe-html-target-libgomp | |
6d389afc | 1109 | |
4fa63067 | 1110 | .PHONY: do-TAGS |
f70224b5 | 1111 | do-TAGS: |
0aed8855 | 1112 | @: $(MAKE); $(unstage) |
e360f423 PB |
1113 | @r=`${PWD_COMMAND}`; export r; \ |
1114 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1115 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \ | |
f70224b5 | 1116 | TAGS-target |
f70224b5 | 1117 | |
2a4cbe27 | 1118 | |
4fa63067 | 1119 | .PHONY: TAGS-host |
c52c6897 PB |
1120 | |
1121 | TAGS-host: maybe-TAGS-ash | |
1122 | TAGS-host: maybe-TAGS-autoconf | |
1123 | TAGS-host: maybe-TAGS-automake | |
1124 | TAGS-host: maybe-TAGS-bash | |
1125 | TAGS-host: maybe-TAGS-bfd | |
1126 | TAGS-host: maybe-TAGS-opcodes | |
1127 | TAGS-host: maybe-TAGS-binutils | |
1128 | TAGS-host: maybe-TAGS-bison | |
1129 | TAGS-host: maybe-TAGS-byacc | |
1130 | TAGS-host: maybe-TAGS-bzip2 | |
1131 | TAGS-host: maybe-TAGS-dejagnu | |
1132 | TAGS-host: maybe-TAGS-diff | |
1133 | TAGS-host: maybe-TAGS-dosutils | |
1134 | TAGS-host: maybe-TAGS-etc | |
1135 | TAGS-host: maybe-TAGS-fastjar | |
1136 | TAGS-host: maybe-TAGS-fileutils | |
1137 | TAGS-host: maybe-TAGS-findutils | |
1138 | TAGS-host: maybe-TAGS-find | |
1139 | TAGS-host: maybe-TAGS-fixincludes | |
1140 | TAGS-host: maybe-TAGS-flex | |
1141 | TAGS-host: maybe-TAGS-gas | |
1142 | TAGS-host: maybe-TAGS-gcc | |
1143 | TAGS-host: maybe-TAGS-gawk | |
1144 | TAGS-host: maybe-TAGS-gettext | |
1145 | TAGS-host: maybe-TAGS-gnuserv | |
1146 | TAGS-host: maybe-TAGS-gprof | |
1147 | TAGS-host: maybe-TAGS-gzip | |
1148 | TAGS-host: maybe-TAGS-hello | |
1149 | TAGS-host: maybe-TAGS-indent | |
1150 | TAGS-host: maybe-TAGS-intl | |
1151 | TAGS-host: maybe-TAGS-tcl | |
1152 | TAGS-host: maybe-TAGS-itcl | |
1153 | TAGS-host: maybe-TAGS-ld | |
1154 | TAGS-host: maybe-TAGS-libcpp | |
1155 | TAGS-host: maybe-TAGS-libdecnumber | |
1156 | TAGS-host: maybe-TAGS-libgui | |
1157 | TAGS-host: maybe-TAGS-libiberty | |
1158 | TAGS-host: maybe-TAGS-libtool | |
1159 | TAGS-host: maybe-TAGS-m4 | |
1160 | TAGS-host: maybe-TAGS-make | |
1161 | TAGS-host: maybe-TAGS-mmalloc | |
1162 | TAGS-host: maybe-TAGS-patch | |
1163 | TAGS-host: maybe-TAGS-perl | |
1164 | TAGS-host: maybe-TAGS-prms | |
1165 | TAGS-host: maybe-TAGS-rcs | |
1166 | TAGS-host: maybe-TAGS-readline | |
1167 | TAGS-host: maybe-TAGS-release | |
1168 | TAGS-host: maybe-TAGS-recode | |
1169 | TAGS-host: maybe-TAGS-sed | |
1170 | TAGS-host: maybe-TAGS-send-pr | |
1171 | TAGS-host: maybe-TAGS-shellutils | |
1172 | TAGS-host: maybe-TAGS-sid | |
1173 | TAGS-host: maybe-TAGS-sim | |
1174 | TAGS-host: maybe-TAGS-tar | |
1175 | TAGS-host: maybe-TAGS-texinfo | |
1176 | TAGS-host: maybe-TAGS-textutils | |
1177 | TAGS-host: maybe-TAGS-time | |
1178 | TAGS-host: maybe-TAGS-uudecode | |
1179 | TAGS-host: maybe-TAGS-wdiff | |
1180 | TAGS-host: maybe-TAGS-zip | |
1181 | TAGS-host: maybe-TAGS-zlib | |
1182 | TAGS-host: maybe-TAGS-gdb | |
1183 | TAGS-host: maybe-TAGS-expect | |
1184 | TAGS-host: maybe-TAGS-guile | |
1185 | TAGS-host: maybe-TAGS-tk | |
1186 | TAGS-host: maybe-TAGS-libtermcap | |
1187 | TAGS-host: maybe-TAGS-utils | |
1188 | TAGS-host: maybe-TAGS-gnattools | |
2a4cbe27 | 1189 | |
4fa63067 | 1190 | .PHONY: TAGS-target |
c52c6897 PB |
1191 | |
1192 | TAGS-target: maybe-TAGS-target-libstdc++-v3 | |
1193 | TAGS-target: maybe-TAGS-target-libmudflap | |
1194 | TAGS-target: maybe-TAGS-target-libssp | |
1195 | TAGS-target: maybe-TAGS-target-libgcc-math | |
1196 | TAGS-target: maybe-TAGS-target-newlib | |
1197 | TAGS-target: maybe-TAGS-target-libgfortran | |
1198 | TAGS-target: maybe-TAGS-target-libobjc | |
1199 | TAGS-target: maybe-TAGS-target-libtermcap | |
1200 | TAGS-target: maybe-TAGS-target-winsup | |
1201 | TAGS-target: maybe-TAGS-target-libgloss | |
1202 | TAGS-target: maybe-TAGS-target-libiberty | |
1203 | TAGS-target: maybe-TAGS-target-gperf | |
1204 | TAGS-target: maybe-TAGS-target-examples | |
1205 | TAGS-target: maybe-TAGS-target-libffi | |
1206 | TAGS-target: maybe-TAGS-target-libjava | |
1207 | TAGS-target: maybe-TAGS-target-zlib | |
1208 | TAGS-target: maybe-TAGS-target-boehm-gc | |
1209 | TAGS-target: maybe-TAGS-target-qthreads | |
1210 | TAGS-target: maybe-TAGS-target-rda | |
1211 | TAGS-target: maybe-TAGS-target-libada | |
1212 | TAGS-target: maybe-TAGS-target-libgomp | |
a2592b1b | 1213 | |
4fa63067 | 1214 | .PHONY: do-install-info |
f70224b5 | 1215 | do-install-info: |
0aed8855 | 1216 | @: $(MAKE); $(unstage) |
e360f423 PB |
1217 | @r=`${PWD_COMMAND}`; export r; \ |
1218 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1219 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \ | |
f70224b5 | 1220 | install-info-target |
f70224b5 | 1221 | |
a2592b1b | 1222 | |
4fa63067 | 1223 | .PHONY: install-info-host |
c52c6897 PB |
1224 | |
1225 | install-info-host: maybe-install-info-ash | |
1226 | install-info-host: maybe-install-info-autoconf | |
1227 | install-info-host: maybe-install-info-automake | |
1228 | install-info-host: maybe-install-info-bash | |
1229 | install-info-host: maybe-install-info-bfd | |
1230 | install-info-host: maybe-install-info-opcodes | |
1231 | install-info-host: maybe-install-info-binutils | |
1232 | install-info-host: maybe-install-info-bison | |
1233 | install-info-host: maybe-install-info-byacc | |
1234 | install-info-host: maybe-install-info-bzip2 | |
1235 | install-info-host: maybe-install-info-dejagnu | |
1236 | install-info-host: maybe-install-info-diff | |
1237 | install-info-host: maybe-install-info-dosutils | |
1238 | install-info-host: maybe-install-info-etc | |
1239 | install-info-host: maybe-install-info-fastjar | |
1240 | install-info-host: maybe-install-info-fileutils | |
1241 | install-info-host: maybe-install-info-findutils | |
1242 | install-info-host: maybe-install-info-find | |
1243 | install-info-host: maybe-install-info-fixincludes | |
1244 | install-info-host: maybe-install-info-flex | |
1245 | install-info-host: maybe-install-info-gas | |
1246 | install-info-host: maybe-install-info-gcc | |
1247 | install-info-host: maybe-install-info-gawk | |
1248 | install-info-host: maybe-install-info-gettext | |
1249 | install-info-host: maybe-install-info-gnuserv | |
1250 | install-info-host: maybe-install-info-gprof | |
1251 | install-info-host: maybe-install-info-gzip | |
1252 | install-info-host: maybe-install-info-hello | |
1253 | install-info-host: maybe-install-info-indent | |
1254 | install-info-host: maybe-install-info-intl | |
1255 | install-info-host: maybe-install-info-tcl | |
1256 | install-info-host: maybe-install-info-itcl | |
1257 | install-info-host: maybe-install-info-ld | |
1258 | install-info-host: maybe-install-info-libcpp | |
1259 | install-info-host: maybe-install-info-libdecnumber | |
1260 | install-info-host: maybe-install-info-libgui | |
1261 | install-info-host: maybe-install-info-libiberty | |
1262 | install-info-host: maybe-install-info-libtool | |
1263 | install-info-host: maybe-install-info-m4 | |
1264 | install-info-host: maybe-install-info-make | |
1265 | install-info-host: maybe-install-info-mmalloc | |
1266 | install-info-host: maybe-install-info-patch | |
1267 | install-info-host: maybe-install-info-perl | |
1268 | install-info-host: maybe-install-info-prms | |
1269 | install-info-host: maybe-install-info-rcs | |
1270 | install-info-host: maybe-install-info-readline | |
1271 | install-info-host: maybe-install-info-release | |
1272 | install-info-host: maybe-install-info-recode | |
1273 | install-info-host: maybe-install-info-sed | |
1274 | install-info-host: maybe-install-info-send-pr | |
1275 | install-info-host: maybe-install-info-shellutils | |
1276 | install-info-host: maybe-install-info-sid | |
1277 | install-info-host: maybe-install-info-sim | |
1278 | install-info-host: maybe-install-info-tar | |
1279 | install-info-host: maybe-install-info-texinfo | |
1280 | install-info-host: maybe-install-info-textutils | |
1281 | install-info-host: maybe-install-info-time | |
1282 | install-info-host: maybe-install-info-uudecode | |
1283 | install-info-host: maybe-install-info-wdiff | |
1284 | install-info-host: maybe-install-info-zip | |
1285 | install-info-host: maybe-install-info-zlib | |
1286 | install-info-host: maybe-install-info-gdb | |
1287 | install-info-host: maybe-install-info-expect | |
1288 | install-info-host: maybe-install-info-guile | |
1289 | install-info-host: maybe-install-info-tk | |
1290 | install-info-host: maybe-install-info-libtermcap | |
1291 | install-info-host: maybe-install-info-utils | |
1292 | install-info-host: maybe-install-info-gnattools | |
a2592b1b | 1293 | |
4fa63067 | 1294 | .PHONY: install-info-target |
c52c6897 PB |
1295 | |
1296 | install-info-target: maybe-install-info-target-libstdc++-v3 | |
1297 | install-info-target: maybe-install-info-target-libmudflap | |
1298 | install-info-target: maybe-install-info-target-libssp | |
1299 | install-info-target: maybe-install-info-target-libgcc-math | |
1300 | install-info-target: maybe-install-info-target-newlib | |
1301 | install-info-target: maybe-install-info-target-libgfortran | |
1302 | install-info-target: maybe-install-info-target-libobjc | |
1303 | install-info-target: maybe-install-info-target-libtermcap | |
1304 | install-info-target: maybe-install-info-target-winsup | |
1305 | install-info-target: maybe-install-info-target-libgloss | |
1306 | install-info-target: maybe-install-info-target-libiberty | |
1307 | install-info-target: maybe-install-info-target-gperf | |
1308 | install-info-target: maybe-install-info-target-examples | |
1309 | install-info-target: maybe-install-info-target-libffi | |
1310 | install-info-target: maybe-install-info-target-libjava | |
1311 | install-info-target: maybe-install-info-target-zlib | |
1312 | install-info-target: maybe-install-info-target-boehm-gc | |
1313 | install-info-target: maybe-install-info-target-qthreads | |
1314 | install-info-target: maybe-install-info-target-rda | |
1315 | install-info-target: maybe-install-info-target-libada | |
1316 | install-info-target: maybe-install-info-target-libgomp | |
2a4cbe27 | 1317 | |
108a6f8e CD |
1318 | .PHONY: do-install-html |
1319 | do-install-html: | |
1320 | @: $(MAKE); $(unstage) | |
1321 | @r=`${PWD_COMMAND}`; export r; \ | |
1322 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1323 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \ | |
1324 | install-html-target | |
1325 | ||
1326 | ||
1327 | .PHONY: install-html-host | |
1328 | ||
1329 | install-html-host: maybe-install-html-ash | |
1330 | install-html-host: maybe-install-html-autoconf | |
1331 | install-html-host: maybe-install-html-automake | |
1332 | install-html-host: maybe-install-html-bash | |
1333 | install-html-host: maybe-install-html-bfd | |
1334 | install-html-host: maybe-install-html-opcodes | |
1335 | install-html-host: maybe-install-html-binutils | |
1336 | install-html-host: maybe-install-html-bison | |
1337 | install-html-host: maybe-install-html-byacc | |
1338 | install-html-host: maybe-install-html-bzip2 | |
1339 | install-html-host: maybe-install-html-dejagnu | |
1340 | install-html-host: maybe-install-html-diff | |
1341 | install-html-host: maybe-install-html-dosutils | |
1342 | install-html-host: maybe-install-html-etc | |
1343 | install-html-host: maybe-install-html-fastjar | |
1344 | install-html-host: maybe-install-html-fileutils | |
1345 | install-html-host: maybe-install-html-findutils | |
1346 | install-html-host: maybe-install-html-find | |
1347 | install-html-host: maybe-install-html-fixincludes | |
1348 | install-html-host: maybe-install-html-flex | |
1349 | install-html-host: maybe-install-html-gas | |
1350 | install-html-host: maybe-install-html-gcc | |
1351 | install-html-host: maybe-install-html-gawk | |
1352 | install-html-host: maybe-install-html-gettext | |
1353 | install-html-host: maybe-install-html-gnuserv | |
1354 | install-html-host: maybe-install-html-gprof | |
1355 | install-html-host: maybe-install-html-gzip | |
1356 | install-html-host: maybe-install-html-hello | |
1357 | install-html-host: maybe-install-html-indent | |
1358 | install-html-host: maybe-install-html-intl | |
1359 | install-html-host: maybe-install-html-tcl | |
1360 | install-html-host: maybe-install-html-itcl | |
1361 | install-html-host: maybe-install-html-ld | |
1362 | install-html-host: maybe-install-html-libcpp | |
1363 | install-html-host: maybe-install-html-libdecnumber | |
1364 | install-html-host: maybe-install-html-libgui | |
1365 | install-html-host: maybe-install-html-libiberty | |
1366 | install-html-host: maybe-install-html-libtool | |
1367 | install-html-host: maybe-install-html-m4 | |
1368 | install-html-host: maybe-install-html-make | |
1369 | install-html-host: maybe-install-html-mmalloc | |
1370 | install-html-host: maybe-install-html-patch | |
1371 | install-html-host: maybe-install-html-perl | |
1372 | install-html-host: maybe-install-html-prms | |
1373 | install-html-host: maybe-install-html-rcs | |
1374 | install-html-host: maybe-install-html-readline | |
1375 | install-html-host: maybe-install-html-release | |
1376 | install-html-host: maybe-install-html-recode | |
1377 | install-html-host: maybe-install-html-sed | |
1378 | install-html-host: maybe-install-html-send-pr | |
1379 | install-html-host: maybe-install-html-shellutils | |
1380 | install-html-host: maybe-install-html-sid | |
1381 | install-html-host: maybe-install-html-sim | |
1382 | install-html-host: maybe-install-html-tar | |
1383 | install-html-host: maybe-install-html-texinfo | |
1384 | install-html-host: maybe-install-html-textutils | |
1385 | install-html-host: maybe-install-html-time | |
1386 | install-html-host: maybe-install-html-uudecode | |
1387 | install-html-host: maybe-install-html-wdiff | |
1388 | install-html-host: maybe-install-html-zip | |
1389 | install-html-host: maybe-install-html-zlib | |
1390 | install-html-host: maybe-install-html-gdb | |
1391 | install-html-host: maybe-install-html-expect | |
1392 | install-html-host: maybe-install-html-guile | |
1393 | install-html-host: maybe-install-html-tk | |
1394 | install-html-host: maybe-install-html-libtermcap | |
1395 | install-html-host: maybe-install-html-utils | |
1396 | install-html-host: maybe-install-html-gnattools | |
1397 | ||
1398 | .PHONY: install-html-target | |
1399 | ||
1400 | install-html-target: maybe-install-html-target-libstdc++-v3 | |
1401 | install-html-target: maybe-install-html-target-libmudflap | |
1402 | install-html-target: maybe-install-html-target-libssp | |
1403 | install-html-target: maybe-install-html-target-libgcc-math | |
1404 | install-html-target: maybe-install-html-target-newlib | |
1405 | install-html-target: maybe-install-html-target-libgfortran | |
1406 | install-html-target: maybe-install-html-target-libobjc | |
1407 | install-html-target: maybe-install-html-target-libtermcap | |
1408 | install-html-target: maybe-install-html-target-winsup | |
1409 | install-html-target: maybe-install-html-target-libgloss | |
1410 | install-html-target: maybe-install-html-target-libiberty | |
1411 | install-html-target: maybe-install-html-target-gperf | |
1412 | install-html-target: maybe-install-html-target-examples | |
1413 | install-html-target: maybe-install-html-target-libffi | |
1414 | install-html-target: maybe-install-html-target-libjava | |
1415 | install-html-target: maybe-install-html-target-zlib | |
1416 | install-html-target: maybe-install-html-target-boehm-gc | |
1417 | install-html-target: maybe-install-html-target-qthreads | |
1418 | install-html-target: maybe-install-html-target-rda | |
1419 | install-html-target: maybe-install-html-target-libada | |
1420 | install-html-target: maybe-install-html-target-libgomp | |
1421 | ||
2a4cbe27 | 1422 | .PHONY: do-installcheck |
f70224b5 | 1423 | do-installcheck: |
0aed8855 | 1424 | @: $(MAKE); $(unstage) |
e360f423 PB |
1425 | @r=`${PWD_COMMAND}`; export r; \ |
1426 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1427 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \ | |
f70224b5 | 1428 | installcheck-target |
f70224b5 | 1429 | |
2a4cbe27 NN |
1430 | |
1431 | .PHONY: installcheck-host | |
c52c6897 PB |
1432 | |
1433 | installcheck-host: maybe-installcheck-ash | |
1434 | installcheck-host: maybe-installcheck-autoconf | |
1435 | installcheck-host: maybe-installcheck-automake | |
1436 | installcheck-host: maybe-installcheck-bash | |
1437 | installcheck-host: maybe-installcheck-bfd | |
1438 | installcheck-host: maybe-installcheck-opcodes | |
1439 | installcheck-host: maybe-installcheck-binutils | |
1440 | installcheck-host: maybe-installcheck-bison | |
1441 | installcheck-host: maybe-installcheck-byacc | |
1442 | installcheck-host: maybe-installcheck-bzip2 | |
1443 | installcheck-host: maybe-installcheck-dejagnu | |
1444 | installcheck-host: maybe-installcheck-diff | |
1445 | installcheck-host: maybe-installcheck-dosutils | |
1446 | installcheck-host: maybe-installcheck-etc | |
1447 | installcheck-host: maybe-installcheck-fastjar | |
1448 | installcheck-host: maybe-installcheck-fileutils | |
1449 | installcheck-host: maybe-installcheck-findutils | |
1450 | installcheck-host: maybe-installcheck-find | |
1451 | installcheck-host: maybe-installcheck-fixincludes | |
1452 | installcheck-host: maybe-installcheck-flex | |
1453 | installcheck-host: maybe-installcheck-gas | |
1454 | installcheck-host: maybe-installcheck-gcc | |
1455 | installcheck-host: maybe-installcheck-gawk | |
1456 | installcheck-host: maybe-installcheck-gettext | |
1457 | installcheck-host: maybe-installcheck-gnuserv | |
1458 | installcheck-host: maybe-installcheck-gprof | |
1459 | installcheck-host: maybe-installcheck-gzip | |
1460 | installcheck-host: maybe-installcheck-hello | |
1461 | installcheck-host: maybe-installcheck-indent | |
1462 | installcheck-host: maybe-installcheck-intl | |
1463 | installcheck-host: maybe-installcheck-tcl | |
1464 | installcheck-host: maybe-installcheck-itcl | |
1465 | installcheck-host: maybe-installcheck-ld | |
1466 | installcheck-host: maybe-installcheck-libcpp | |
1467 | installcheck-host: maybe-installcheck-libdecnumber | |
1468 | installcheck-host: maybe-installcheck-libgui | |
1469 | installcheck-host: maybe-installcheck-libiberty | |
1470 | installcheck-host: maybe-installcheck-libtool | |
1471 | installcheck-host: maybe-installcheck-m4 | |
1472 | installcheck-host: maybe-installcheck-make | |
1473 | installcheck-host: maybe-installcheck-mmalloc | |
1474 | installcheck-host: maybe-installcheck-patch | |
1475 | installcheck-host: maybe-installcheck-perl | |
1476 | installcheck-host: maybe-installcheck-prms | |
1477 | installcheck-host: maybe-installcheck-rcs | |
1478 | installcheck-host: maybe-installcheck-readline | |
1479 | installcheck-host: maybe-installcheck-release | |
1480 | installcheck-host: maybe-installcheck-recode | |
1481 | installcheck-host: maybe-installcheck-sed | |
1482 | installcheck-host: maybe-installcheck-send-pr | |
1483 | installcheck-host: maybe-installcheck-shellutils | |
1484 | installcheck-host: maybe-installcheck-sid | |
1485 | installcheck-host: maybe-installcheck-sim | |
1486 | installcheck-host: maybe-installcheck-tar | |
1487 | installcheck-host: maybe-installcheck-texinfo | |
1488 | installcheck-host: maybe-installcheck-textutils | |
1489 | installcheck-host: maybe-installcheck-time | |
1490 | installcheck-host: maybe-installcheck-uudecode | |
1491 | installcheck-host: maybe-installcheck-wdiff | |
1492 | installcheck-host: maybe-installcheck-zip | |
1493 | installcheck-host: maybe-installcheck-zlib | |
1494 | installcheck-host: maybe-installcheck-gdb | |
1495 | installcheck-host: maybe-installcheck-expect | |
1496 | installcheck-host: maybe-installcheck-guile | |
1497 | installcheck-host: maybe-installcheck-tk | |
1498 | installcheck-host: maybe-installcheck-libtermcap | |
1499 | installcheck-host: maybe-installcheck-utils | |
1500 | installcheck-host: maybe-installcheck-gnattools | |
2a4cbe27 NN |
1501 | |
1502 | .PHONY: installcheck-target | |
c52c6897 PB |
1503 | |
1504 | installcheck-target: maybe-installcheck-target-libstdc++-v3 | |
1505 | installcheck-target: maybe-installcheck-target-libmudflap | |
1506 | installcheck-target: maybe-installcheck-target-libssp | |
1507 | installcheck-target: maybe-installcheck-target-libgcc-math | |
1508 | installcheck-target: maybe-installcheck-target-newlib | |
1509 | installcheck-target: maybe-installcheck-target-libgfortran | |
1510 | installcheck-target: maybe-installcheck-target-libobjc | |
1511 | installcheck-target: maybe-installcheck-target-libtermcap | |
1512 | installcheck-target: maybe-installcheck-target-winsup | |
1513 | installcheck-target: maybe-installcheck-target-libgloss | |
1514 | installcheck-target: maybe-installcheck-target-libiberty | |
1515 | installcheck-target: maybe-installcheck-target-gperf | |
1516 | installcheck-target: maybe-installcheck-target-examples | |
1517 | installcheck-target: maybe-installcheck-target-libffi | |
1518 | installcheck-target: maybe-installcheck-target-libjava | |
1519 | installcheck-target: maybe-installcheck-target-zlib | |
1520 | installcheck-target: maybe-installcheck-target-boehm-gc | |
1521 | installcheck-target: maybe-installcheck-target-qthreads | |
1522 | installcheck-target: maybe-installcheck-target-rda | |
1523 | installcheck-target: maybe-installcheck-target-libada | |
1524 | installcheck-target: maybe-installcheck-target-libgomp | |
2a4cbe27 | 1525 | |
4fa63067 | 1526 | .PHONY: do-mostlyclean |
f70224b5 | 1527 | do-mostlyclean: |
0aed8855 | 1528 | @: $(MAKE); $(unstage) |
e360f423 PB |
1529 | @r=`${PWD_COMMAND}`; export r; \ |
1530 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1531 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \ | |
f70224b5 | 1532 | mostlyclean-target |
f70224b5 | 1533 | |
2a4cbe27 | 1534 | |
4fa63067 | 1535 | .PHONY: mostlyclean-host |
c52c6897 PB |
1536 | |
1537 | mostlyclean-host: maybe-mostlyclean-ash | |
1538 | mostlyclean-host: maybe-mostlyclean-autoconf | |
1539 | mostlyclean-host: maybe-mostlyclean-automake | |
1540 | mostlyclean-host: maybe-mostlyclean-bash | |
1541 | mostlyclean-host: maybe-mostlyclean-bfd | |
1542 | mostlyclean-host: maybe-mostlyclean-opcodes | |
1543 | mostlyclean-host: maybe-mostlyclean-binutils | |
1544 | mostlyclean-host: maybe-mostlyclean-bison | |
1545 | mostlyclean-host: maybe-mostlyclean-byacc | |
1546 | mostlyclean-host: maybe-mostlyclean-bzip2 | |
1547 | mostlyclean-host: maybe-mostlyclean-dejagnu | |
1548 | mostlyclean-host: maybe-mostlyclean-diff | |
1549 | mostlyclean-host: maybe-mostlyclean-dosutils | |
1550 | mostlyclean-host: maybe-mostlyclean-etc | |
1551 | mostlyclean-host: maybe-mostlyclean-fastjar | |
1552 | mostlyclean-host: maybe-mostlyclean-fileutils | |
1553 | mostlyclean-host: maybe-mostlyclean-findutils | |
1554 | mostlyclean-host: maybe-mostlyclean-find | |
1555 | mostlyclean-host: maybe-mostlyclean-fixincludes | |
1556 | mostlyclean-host: maybe-mostlyclean-flex | |
1557 | mostlyclean-host: maybe-mostlyclean-gas | |
1558 | mostlyclean-host: maybe-mostlyclean-gcc | |
1559 | mostlyclean-host: maybe-mostlyclean-gawk | |
1560 | mostlyclean-host: maybe-mostlyclean-gettext | |
1561 | mostlyclean-host: maybe-mostlyclean-gnuserv | |
1562 | mostlyclean-host: maybe-mostlyclean-gprof | |
1563 | mostlyclean-host: maybe-mostlyclean-gzip | |
1564 | mostlyclean-host: maybe-mostlyclean-hello | |
1565 | mostlyclean-host: maybe-mostlyclean-indent | |
1566 | mostlyclean-host: maybe-mostlyclean-intl | |
1567 | mostlyclean-host: maybe-mostlyclean-tcl | |
1568 | mostlyclean-host: maybe-mostlyclean-itcl | |
1569 | mostlyclean-host: maybe-mostlyclean-ld | |
1570 | mostlyclean-host: maybe-mostlyclean-libcpp | |
1571 | mostlyclean-host: maybe-mostlyclean-libdecnumber | |
1572 | mostlyclean-host: maybe-mostlyclean-libgui | |
1573 | mostlyclean-host: maybe-mostlyclean-libiberty | |
1574 | mostlyclean-host: maybe-mostlyclean-libtool | |
1575 | mostlyclean-host: maybe-mostlyclean-m4 | |
1576 | mostlyclean-host: maybe-mostlyclean-make | |
1577 | mostlyclean-host: maybe-mostlyclean-mmalloc | |
1578 | mostlyclean-host: maybe-mostlyclean-patch | |
1579 | mostlyclean-host: maybe-mostlyclean-perl | |
1580 | mostlyclean-host: maybe-mostlyclean-prms | |
1581 | mostlyclean-host: maybe-mostlyclean-rcs | |
1582 | mostlyclean-host: maybe-mostlyclean-readline | |
1583 | mostlyclean-host: maybe-mostlyclean-release | |
1584 | mostlyclean-host: maybe-mostlyclean-recode | |
1585 | mostlyclean-host: maybe-mostlyclean-sed | |
1586 | mostlyclean-host: maybe-mostlyclean-send-pr | |
1587 | mostlyclean-host: maybe-mostlyclean-shellutils | |
1588 | mostlyclean-host: maybe-mostlyclean-sid | |
1589 | mostlyclean-host: maybe-mostlyclean-sim | |
1590 | mostlyclean-host: maybe-mostlyclean-tar | |
1591 | mostlyclean-host: maybe-mostlyclean-texinfo | |
1592 | mostlyclean-host: maybe-mostlyclean-textutils | |
1593 | mostlyclean-host: maybe-mostlyclean-time | |
1594 | mostlyclean-host: maybe-mostlyclean-uudecode | |
1595 | mostlyclean-host: maybe-mostlyclean-wdiff | |
1596 | mostlyclean-host: maybe-mostlyclean-zip | |
1597 | mostlyclean-host: maybe-mostlyclean-zlib | |
1598 | mostlyclean-host: maybe-mostlyclean-gdb | |
1599 | mostlyclean-host: maybe-mostlyclean-expect | |
1600 | mostlyclean-host: maybe-mostlyclean-guile | |
1601 | mostlyclean-host: maybe-mostlyclean-tk | |
1602 | mostlyclean-host: maybe-mostlyclean-libtermcap | |
1603 | mostlyclean-host: maybe-mostlyclean-utils | |
1604 | mostlyclean-host: maybe-mostlyclean-gnattools | |
2a4cbe27 | 1605 | |
4fa63067 | 1606 | .PHONY: mostlyclean-target |
c52c6897 PB |
1607 | |
1608 | mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3 | |
1609 | mostlyclean-target: maybe-mostlyclean-target-libmudflap | |
1610 | mostlyclean-target: maybe-mostlyclean-target-libssp | |
1611 | mostlyclean-target: maybe-mostlyclean-target-libgcc-math | |
1612 | mostlyclean-target: maybe-mostlyclean-target-newlib | |
1613 | mostlyclean-target: maybe-mostlyclean-target-libgfortran | |
1614 | mostlyclean-target: maybe-mostlyclean-target-libobjc | |
1615 | mostlyclean-target: maybe-mostlyclean-target-libtermcap | |
1616 | mostlyclean-target: maybe-mostlyclean-target-winsup | |
1617 | mostlyclean-target: maybe-mostlyclean-target-libgloss | |
1618 | mostlyclean-target: maybe-mostlyclean-target-libiberty | |
1619 | mostlyclean-target: maybe-mostlyclean-target-gperf | |
1620 | mostlyclean-target: maybe-mostlyclean-target-examples | |
1621 | mostlyclean-target: maybe-mostlyclean-target-libffi | |
1622 | mostlyclean-target: maybe-mostlyclean-target-libjava | |
1623 | mostlyclean-target: maybe-mostlyclean-target-zlib | |
1624 | mostlyclean-target: maybe-mostlyclean-target-boehm-gc | |
1625 | mostlyclean-target: maybe-mostlyclean-target-qthreads | |
1626 | mostlyclean-target: maybe-mostlyclean-target-rda | |
1627 | mostlyclean-target: maybe-mostlyclean-target-libada | |
1628 | mostlyclean-target: maybe-mostlyclean-target-libgomp | |
2a4cbe27 | 1629 | |
4fa63067 | 1630 | .PHONY: do-clean |
f70224b5 | 1631 | do-clean: |
0aed8855 | 1632 | @: $(MAKE); $(unstage) |
e360f423 PB |
1633 | @r=`${PWD_COMMAND}`; export r; \ |
1634 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1635 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \ | |
f70224b5 | 1636 | clean-target |
f70224b5 | 1637 | |
2a4cbe27 | 1638 | |
4fa63067 | 1639 | .PHONY: clean-host |
c52c6897 PB |
1640 | |
1641 | clean-host: maybe-clean-ash | |
1642 | clean-host: maybe-clean-autoconf | |
1643 | clean-host: maybe-clean-automake | |
1644 | clean-host: maybe-clean-bash | |
1645 | clean-host: maybe-clean-bfd | |
1646 | clean-host: maybe-clean-opcodes | |
1647 | clean-host: maybe-clean-binutils | |
1648 | clean-host: maybe-clean-bison | |
1649 | clean-host: maybe-clean-byacc | |
1650 | clean-host: maybe-clean-bzip2 | |
1651 | clean-host: maybe-clean-dejagnu | |
1652 | clean-host: maybe-clean-diff | |
1653 | clean-host: maybe-clean-dosutils | |
1654 | clean-host: maybe-clean-etc | |
1655 | clean-host: maybe-clean-fastjar | |
1656 | clean-host: maybe-clean-fileutils | |
1657 | clean-host: maybe-clean-findutils | |
1658 | clean-host: maybe-clean-find | |
1659 | clean-host: maybe-clean-fixincludes | |
1660 | clean-host: maybe-clean-flex | |
1661 | clean-host: maybe-clean-gas | |
1662 | clean-host: maybe-clean-gcc | |
1663 | clean-host: maybe-clean-gawk | |
1664 | clean-host: maybe-clean-gettext | |
1665 | clean-host: maybe-clean-gnuserv | |
1666 | clean-host: maybe-clean-gprof | |
1667 | clean-host: maybe-clean-gzip | |
1668 | clean-host: maybe-clean-hello | |
1669 | clean-host: maybe-clean-indent | |
1670 | clean-host: maybe-clean-intl | |
1671 | clean-host: maybe-clean-tcl | |
1672 | clean-host: maybe-clean-itcl | |
1673 | clean-host: maybe-clean-ld | |
1674 | clean-host: maybe-clean-libcpp | |
1675 | clean-host: maybe-clean-libdecnumber | |
1676 | clean-host: maybe-clean-libgui | |
1677 | clean-host: maybe-clean-libiberty | |
1678 | clean-host: maybe-clean-libtool | |
1679 | clean-host: maybe-clean-m4 | |
1680 | clean-host: maybe-clean-make | |
1681 | clean-host: maybe-clean-mmalloc | |
1682 | clean-host: maybe-clean-patch | |
1683 | clean-host: maybe-clean-perl | |
1684 | clean-host: maybe-clean-prms | |
1685 | clean-host: maybe-clean-rcs | |
1686 | clean-host: maybe-clean-readline | |
1687 | clean-host: maybe-clean-release | |
1688 | clean-host: maybe-clean-recode | |
1689 | clean-host: maybe-clean-sed | |
1690 | clean-host: maybe-clean-send-pr | |
1691 | clean-host: maybe-clean-shellutils | |
1692 | clean-host: maybe-clean-sid | |
1693 | clean-host: maybe-clean-sim | |
1694 | clean-host: maybe-clean-tar | |
1695 | clean-host: maybe-clean-texinfo | |
1696 | clean-host: maybe-clean-textutils | |
1697 | clean-host: maybe-clean-time | |
1698 | clean-host: maybe-clean-uudecode | |
1699 | clean-host: maybe-clean-wdiff | |
1700 | clean-host: maybe-clean-zip | |
1701 | clean-host: maybe-clean-zlib | |
1702 | clean-host: maybe-clean-gdb | |
1703 | clean-host: maybe-clean-expect | |
1704 | clean-host: maybe-clean-guile | |
1705 | clean-host: maybe-clean-tk | |
1706 | clean-host: maybe-clean-libtermcap | |
1707 | clean-host: maybe-clean-utils | |
1708 | clean-host: maybe-clean-gnattools | |
2a4cbe27 | 1709 | |
4fa63067 | 1710 | .PHONY: clean-target |
c52c6897 PB |
1711 | |
1712 | clean-target: maybe-clean-target-libstdc++-v3 | |
1713 | clean-target: maybe-clean-target-libmudflap | |
1714 | clean-target: maybe-clean-target-libssp | |
1715 | clean-target: maybe-clean-target-libgcc-math | |
1716 | clean-target: maybe-clean-target-newlib | |
1717 | clean-target: maybe-clean-target-libgfortran | |
1718 | clean-target: maybe-clean-target-libobjc | |
1719 | clean-target: maybe-clean-target-libtermcap | |
1720 | clean-target: maybe-clean-target-winsup | |
1721 | clean-target: maybe-clean-target-libgloss | |
1722 | clean-target: maybe-clean-target-libiberty | |
1723 | clean-target: maybe-clean-target-gperf | |
1724 | clean-target: maybe-clean-target-examples | |
1725 | clean-target: maybe-clean-target-libffi | |
1726 | clean-target: maybe-clean-target-libjava | |
1727 | clean-target: maybe-clean-target-zlib | |
1728 | clean-target: maybe-clean-target-boehm-gc | |
1729 | clean-target: maybe-clean-target-qthreads | |
1730 | clean-target: maybe-clean-target-rda | |
1731 | clean-target: maybe-clean-target-libada | |
1732 | clean-target: maybe-clean-target-libgomp | |
2a4cbe27 | 1733 | |
4fa63067 | 1734 | .PHONY: do-distclean |
f70224b5 | 1735 | do-distclean: |
0aed8855 | 1736 | @: $(MAKE); $(unstage) |
e360f423 PB |
1737 | @r=`${PWD_COMMAND}`; export r; \ |
1738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1739 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \ | |
f70224b5 | 1740 | distclean-target |
f70224b5 | 1741 | |
2a4cbe27 | 1742 | |
4fa63067 | 1743 | .PHONY: distclean-host |
c52c6897 PB |
1744 | |
1745 | distclean-host: maybe-distclean-ash | |
1746 | distclean-host: maybe-distclean-autoconf | |
1747 | distclean-host: maybe-distclean-automake | |
1748 | distclean-host: maybe-distclean-bash | |
1749 | distclean-host: maybe-distclean-bfd | |
1750 | distclean-host: maybe-distclean-opcodes | |
1751 | distclean-host: maybe-distclean-binutils | |
1752 | distclean-host: maybe-distclean-bison | |
1753 | distclean-host: maybe-distclean-byacc | |
1754 | distclean-host: maybe-distclean-bzip2 | |
1755 | distclean-host: maybe-distclean-dejagnu | |
1756 | distclean-host: maybe-distclean-diff | |
1757 | distclean-host: maybe-distclean-dosutils | |
1758 | distclean-host: maybe-distclean-etc | |
1759 | distclean-host: maybe-distclean-fastjar | |
1760 | distclean-host: maybe-distclean-fileutils | |
1761 | distclean-host: maybe-distclean-findutils | |
1762 | distclean-host: maybe-distclean-find | |
1763 | distclean-host: maybe-distclean-fixincludes | |
1764 | distclean-host: maybe-distclean-flex | |
1765 | distclean-host: maybe-distclean-gas | |
1766 | distclean-host: maybe-distclean-gcc | |
1767 | distclean-host: maybe-distclean-gawk | |
1768 | distclean-host: maybe-distclean-gettext | |
1769 | distclean-host: maybe-distclean-gnuserv | |
1770 | distclean-host: maybe-distclean-gprof | |
1771 | distclean-host: maybe-distclean-gzip | |
1772 | distclean-host: maybe-distclean-hello | |
1773 | distclean-host: maybe-distclean-indent | |
1774 | distclean-host: maybe-distclean-intl | |
1775 | distclean-host: maybe-distclean-tcl | |
1776 | distclean-host: maybe-distclean-itcl | |
1777 | distclean-host: maybe-distclean-ld | |
1778 | distclean-host: maybe-distclean-libcpp | |
1779 | distclean-host: maybe-distclean-libdecnumber | |
1780 | distclean-host: maybe-distclean-libgui | |
1781 | distclean-host: maybe-distclean-libiberty | |
1782 | distclean-host: maybe-distclean-libtool | |
1783 | distclean-host: maybe-distclean-m4 | |
1784 | distclean-host: maybe-distclean-make | |
1785 | distclean-host: maybe-distclean-mmalloc | |
1786 | distclean-host: maybe-distclean-patch | |
1787 | distclean-host: maybe-distclean-perl | |
1788 | distclean-host: maybe-distclean-prms | |
1789 | distclean-host: maybe-distclean-rcs | |
1790 | distclean-host: maybe-distclean-readline | |
1791 | distclean-host: maybe-distclean-release | |
1792 | distclean-host: maybe-distclean-recode | |
1793 | distclean-host: maybe-distclean-sed | |
1794 | distclean-host: maybe-distclean-send-pr | |
1795 | distclean-host: maybe-distclean-shellutils | |
1796 | distclean-host: maybe-distclean-sid | |
1797 | distclean-host: maybe-distclean-sim | |
1798 | distclean-host: maybe-distclean-tar | |
1799 | distclean-host: maybe-distclean-texinfo | |
1800 | distclean-host: maybe-distclean-textutils | |
1801 | distclean-host: maybe-distclean-time | |
1802 | distclean-host: maybe-distclean-uudecode | |
1803 | distclean-host: maybe-distclean-wdiff | |
1804 | distclean-host: maybe-distclean-zip | |
1805 | distclean-host: maybe-distclean-zlib | |
1806 | distclean-host: maybe-distclean-gdb | |
1807 | distclean-host: maybe-distclean-expect | |
1808 | distclean-host: maybe-distclean-guile | |
1809 | distclean-host: maybe-distclean-tk | |
1810 | distclean-host: maybe-distclean-libtermcap | |
1811 | distclean-host: maybe-distclean-utils | |
1812 | distclean-host: maybe-distclean-gnattools | |
2a4cbe27 | 1813 | |
4fa63067 | 1814 | .PHONY: distclean-target |
c52c6897 PB |
1815 | |
1816 | distclean-target: maybe-distclean-target-libstdc++-v3 | |
1817 | distclean-target: maybe-distclean-target-libmudflap | |
1818 | distclean-target: maybe-distclean-target-libssp | |
1819 | distclean-target: maybe-distclean-target-libgcc-math | |
1820 | distclean-target: maybe-distclean-target-newlib | |
1821 | distclean-target: maybe-distclean-target-libgfortran | |
1822 | distclean-target: maybe-distclean-target-libobjc | |
1823 | distclean-target: maybe-distclean-target-libtermcap | |
1824 | distclean-target: maybe-distclean-target-winsup | |
1825 | distclean-target: maybe-distclean-target-libgloss | |
1826 | distclean-target: maybe-distclean-target-libiberty | |
1827 | distclean-target: maybe-distclean-target-gperf | |
1828 | distclean-target: maybe-distclean-target-examples | |
1829 | distclean-target: maybe-distclean-target-libffi | |
1830 | distclean-target: maybe-distclean-target-libjava | |
1831 | distclean-target: maybe-distclean-target-zlib | |
1832 | distclean-target: maybe-distclean-target-boehm-gc | |
1833 | distclean-target: maybe-distclean-target-qthreads | |
1834 | distclean-target: maybe-distclean-target-rda | |
1835 | distclean-target: maybe-distclean-target-libada | |
1836 | distclean-target: maybe-distclean-target-libgomp | |
2a4cbe27 | 1837 | |
4fa63067 | 1838 | .PHONY: do-maintainer-clean |
f70224b5 | 1839 | do-maintainer-clean: |
0aed8855 | 1840 | @: $(MAKE); $(unstage) |
e360f423 PB |
1841 | @r=`${PWD_COMMAND}`; export r; \ |
1842 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1843 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \ | |
f70224b5 | 1844 | maintainer-clean-target |
f70224b5 | 1845 | |
2a4cbe27 | 1846 | |
4fa63067 | 1847 | .PHONY: maintainer-clean-host |
c52c6897 PB |
1848 | |
1849 | maintainer-clean-host: maybe-maintainer-clean-ash | |
1850 | maintainer-clean-host: maybe-maintainer-clean-autoconf | |
1851 | maintainer-clean-host: maybe-maintainer-clean-automake | |
1852 | maintainer-clean-host: maybe-maintainer-clean-bash | |
1853 | maintainer-clean-host: maybe-maintainer-clean-bfd | |
1854 | maintainer-clean-host: maybe-maintainer-clean-opcodes | |
1855 | maintainer-clean-host: maybe-maintainer-clean-binutils | |
1856 | maintainer-clean-host: maybe-maintainer-clean-bison | |
1857 | maintainer-clean-host: maybe-maintainer-clean-byacc | |
1858 | maintainer-clean-host: maybe-maintainer-clean-bzip2 | |
1859 | maintainer-clean-host: maybe-maintainer-clean-dejagnu | |
1860 | maintainer-clean-host: maybe-maintainer-clean-diff | |
1861 | maintainer-clean-host: maybe-maintainer-clean-dosutils | |
1862 | maintainer-clean-host: maybe-maintainer-clean-etc | |
1863 | maintainer-clean-host: maybe-maintainer-clean-fastjar | |
1864 | maintainer-clean-host: maybe-maintainer-clean-fileutils | |
1865 | maintainer-clean-host: maybe-maintainer-clean-findutils | |
1866 | maintainer-clean-host: maybe-maintainer-clean-find | |
1867 | maintainer-clean-host: maybe-maintainer-clean-fixincludes | |
1868 | maintainer-clean-host: maybe-maintainer-clean-flex | |
1869 | maintainer-clean-host: maybe-maintainer-clean-gas | |
1870 | maintainer-clean-host: maybe-maintainer-clean-gcc | |
1871 | maintainer-clean-host: maybe-maintainer-clean-gawk | |
1872 | maintainer-clean-host: maybe-maintainer-clean-gettext | |
1873 | maintainer-clean-host: maybe-maintainer-clean-gnuserv | |
1874 | maintainer-clean-host: maybe-maintainer-clean-gprof | |
1875 | maintainer-clean-host: maybe-maintainer-clean-gzip | |
1876 | maintainer-clean-host: maybe-maintainer-clean-hello | |
1877 | maintainer-clean-host: maybe-maintainer-clean-indent | |
1878 | maintainer-clean-host: maybe-maintainer-clean-intl | |
1879 | maintainer-clean-host: maybe-maintainer-clean-tcl | |
1880 | maintainer-clean-host: maybe-maintainer-clean-itcl | |
1881 | maintainer-clean-host: maybe-maintainer-clean-ld | |
1882 | maintainer-clean-host: maybe-maintainer-clean-libcpp | |
1883 | maintainer-clean-host: maybe-maintainer-clean-libdecnumber | |
1884 | maintainer-clean-host: maybe-maintainer-clean-libgui | |
1885 | maintainer-clean-host: maybe-maintainer-clean-libiberty | |
1886 | maintainer-clean-host: maybe-maintainer-clean-libtool | |
1887 | maintainer-clean-host: maybe-maintainer-clean-m4 | |
1888 | maintainer-clean-host: maybe-maintainer-clean-make | |
1889 | maintainer-clean-host: maybe-maintainer-clean-mmalloc | |
1890 | maintainer-clean-host: maybe-maintainer-clean-patch | |
1891 | maintainer-clean-host: maybe-maintainer-clean-perl | |
1892 | maintainer-clean-host: maybe-maintainer-clean-prms | |
1893 | maintainer-clean-host: maybe-maintainer-clean-rcs | |
1894 | maintainer-clean-host: maybe-maintainer-clean-readline | |
1895 | maintainer-clean-host: maybe-maintainer-clean-release | |
1896 | maintainer-clean-host: maybe-maintainer-clean-recode | |
1897 | maintainer-clean-host: maybe-maintainer-clean-sed | |
1898 | maintainer-clean-host: maybe-maintainer-clean-send-pr | |
1899 | maintainer-clean-host: maybe-maintainer-clean-shellutils | |
1900 | maintainer-clean-host: maybe-maintainer-clean-sid | |
1901 | maintainer-clean-host: maybe-maintainer-clean-sim | |
1902 | maintainer-clean-host: maybe-maintainer-clean-tar | |
1903 | maintainer-clean-host: maybe-maintainer-clean-texinfo | |
1904 | maintainer-clean-host: maybe-maintainer-clean-textutils | |
1905 | maintainer-clean-host: maybe-maintainer-clean-time | |
1906 | maintainer-clean-host: maybe-maintainer-clean-uudecode | |
1907 | maintainer-clean-host: maybe-maintainer-clean-wdiff | |
1908 | maintainer-clean-host: maybe-maintainer-clean-zip | |
1909 | maintainer-clean-host: maybe-maintainer-clean-zlib | |
1910 | maintainer-clean-host: maybe-maintainer-clean-gdb | |
1911 | maintainer-clean-host: maybe-maintainer-clean-expect | |
1912 | maintainer-clean-host: maybe-maintainer-clean-guile | |
1913 | maintainer-clean-host: maybe-maintainer-clean-tk | |
1914 | maintainer-clean-host: maybe-maintainer-clean-libtermcap | |
1915 | maintainer-clean-host: maybe-maintainer-clean-utils | |
1916 | maintainer-clean-host: maybe-maintainer-clean-gnattools | |
2a4cbe27 | 1917 | |
4fa63067 | 1918 | .PHONY: maintainer-clean-target |
c52c6897 PB |
1919 | |
1920 | maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3 | |
1921 | maintainer-clean-target: maybe-maintainer-clean-target-libmudflap | |
1922 | maintainer-clean-target: maybe-maintainer-clean-target-libssp | |
1923 | maintainer-clean-target: maybe-maintainer-clean-target-libgcc-math | |
1924 | maintainer-clean-target: maybe-maintainer-clean-target-newlib | |
1925 | maintainer-clean-target: maybe-maintainer-clean-target-libgfortran | |
1926 | maintainer-clean-target: maybe-maintainer-clean-target-libobjc | |
1927 | maintainer-clean-target: maybe-maintainer-clean-target-libtermcap | |
1928 | maintainer-clean-target: maybe-maintainer-clean-target-winsup | |
1929 | maintainer-clean-target: maybe-maintainer-clean-target-libgloss | |
1930 | maintainer-clean-target: maybe-maintainer-clean-target-libiberty | |
1931 | maintainer-clean-target: maybe-maintainer-clean-target-gperf | |
1932 | maintainer-clean-target: maybe-maintainer-clean-target-examples | |
1933 | maintainer-clean-target: maybe-maintainer-clean-target-libffi | |
1934 | maintainer-clean-target: maybe-maintainer-clean-target-libjava | |
1935 | maintainer-clean-target: maybe-maintainer-clean-target-zlib | |
1936 | maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc | |
1937 | maintainer-clean-target: maybe-maintainer-clean-target-qthreads | |
1938 | maintainer-clean-target: maybe-maintainer-clean-target-rda | |
1939 | maintainer-clean-target: maybe-maintainer-clean-target-libada | |
1940 | maintainer-clean-target: maybe-maintainer-clean-target-libgomp | |
2a4cbe27 | 1941 | |
2a4cbe27 | 1942 | |
4fa63067 | 1943 | # Here are the targets which correspond to the do-X targets. |
2a4cbe27 | 1944 | |
108a6f8e | 1945 | .PHONY: info installcheck dvi html install-info install-html |
4fa63067 NN |
1946 | .PHONY: clean distclean mostlyclean maintainer-clean realclean |
1947 | .PHONY: local-clean local-distclean local-maintainer-clean | |
1948 | info: do-info | |
1949 | installcheck: do-installcheck | |
1950 | dvi: do-dvi | |
6d389afc | 1951 | html: do-html |
2a4cbe27 | 1952 | |
4fa63067 NN |
1953 | # Make sure makeinfo is built before we do a `make info', if we're |
1954 | # in fact building texinfo. | |
1955 | do-info: maybe-all-texinfo | |
2a4cbe27 | 1956 | |
4fa63067 | 1957 | install-info: do-install-info dir.info |
b40e3958 | 1958 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
4fa63067 NN |
1959 | if [ -f dir.info ] ; then \ |
1960 | $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \ | |
1961 | else true ; fi | |
2a4cbe27 | 1962 | |
108a6f8e CD |
1963 | install-html: do-install-html |
1964 | ||
4fa63067 NN |
1965 | local-clean: |
1966 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log | |
2a4cbe27 | 1967 | |
4fa63067 NN |
1968 | local-distclean: |
1969 | -rm -f Makefile config.status config.cache mh-frag mt-frag | |
0aed8855 | 1970 | -rm -f maybedep.tmp serdep.tmp |
4fa63067 NN |
1971 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
1972 | rm -rf $(TARGET_SUBDIR); \ | |
1973 | else true; fi | |
1974 | -rm -rf $(BUILD_SUBDIR) | |
b00612cc PB |
1975 | -if [ "$(HOST_SUBDIR)" != "." ]; then \ |
1976 | rm -rf $(HOST_SUBDIR); \ | |
1977 | else true; fi | |
4fa63067 NN |
1978 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
1979 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
1980 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | |
1981 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
1982 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | |
2a4cbe27 | 1983 | |
4fa63067 NN |
1984 | local-maintainer-clean: |
1985 | @echo "This command is intended for maintainers to use;" | |
1986 | @echo "it deletes files that may require special tools to rebuild." | |
2a4cbe27 | 1987 | |
4fa63067 NN |
1988 | clean: do-clean local-clean |
1989 | mostlyclean: do-mostlyclean local-clean | |
1990 | distclean: do-distclean local-clean local-distclean | |
1991 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
1992 | maintainer-clean: local-distclean | |
1993 | realclean: maintainer-clean | |
2a4cbe27 | 1994 | |
be01d343 | 1995 | # Extra dependency for clean-target, owing to the mixed nature of gcc. |
4fa63067 NN |
1996 | clean-target: clean-target-libgcc |
1997 | clean-target-libgcc: | |
be01d343 | 1998 | test ! -d gcc || (cd gcc && $(MAKE) $@) |
2a4cbe27 | 1999 | |
4fa63067 | 2000 | # Check target. |
2a4cbe27 | 2001 | |
4fa63067 NN |
2002 | .PHONY: check do-check |
2003 | check: do-check | |
2a4cbe27 | 2004 | |
4fa63067 | 2005 | # Only include modules actually being configured and built. |
f70224b5 PB |
2006 | .PHONY: check-host |
2007 | check-host: \ | |
4fa63067 NN |
2008 | maybe-check-ash \ |
2009 | maybe-check-autoconf \ | |
2010 | maybe-check-automake \ | |
2011 | maybe-check-bash \ | |
2012 | maybe-check-bfd \ | |
2013 | maybe-check-opcodes \ | |
2014 | maybe-check-binutils \ | |
2015 | maybe-check-bison \ | |
2016 | maybe-check-byacc \ | |
2017 | maybe-check-bzip2 \ | |
2018 | maybe-check-dejagnu \ | |
2019 | maybe-check-diff \ | |
2020 | maybe-check-dosutils \ | |
2021 | maybe-check-etc \ | |
2022 | maybe-check-fastjar \ | |
2023 | maybe-check-fileutils \ | |
2024 | maybe-check-findutils \ | |
2025 | maybe-check-find \ | |
d3ed111c | 2026 | maybe-check-fixincludes \ |
4fa63067 NN |
2027 | maybe-check-flex \ |
2028 | maybe-check-gas \ | |
b813574b | 2029 | maybe-check-gcc \ |
4fa63067 NN |
2030 | maybe-check-gawk \ |
2031 | maybe-check-gettext \ | |
2032 | maybe-check-gnuserv \ | |
2033 | maybe-check-gprof \ | |
2034 | maybe-check-gzip \ | |
2035 | maybe-check-hello \ | |
2036 | maybe-check-indent \ | |
2037 | maybe-check-intl \ | |
2038 | maybe-check-tcl \ | |
2039 | maybe-check-itcl \ | |
2040 | maybe-check-ld \ | |
04cf1b77 | 2041 | maybe-check-libcpp \ |
be01d343 | 2042 | maybe-check-libdecnumber \ |
4fa63067 NN |
2043 | maybe-check-libgui \ |
2044 | maybe-check-libiberty \ | |
2045 | maybe-check-libtool \ | |
2046 | maybe-check-m4 \ | |
2047 | maybe-check-make \ | |
2048 | maybe-check-mmalloc \ | |
2049 | maybe-check-patch \ | |
2050 | maybe-check-perl \ | |
2051 | maybe-check-prms \ | |
2052 | maybe-check-rcs \ | |
2053 | maybe-check-readline \ | |
2054 | maybe-check-release \ | |
2055 | maybe-check-recode \ | |
2056 | maybe-check-sed \ | |
2057 | maybe-check-send-pr \ | |
2058 | maybe-check-shellutils \ | |
2059 | maybe-check-sid \ | |
2060 | maybe-check-sim \ | |
2061 | maybe-check-tar \ | |
2062 | maybe-check-texinfo \ | |
2063 | maybe-check-textutils \ | |
2064 | maybe-check-time \ | |
2065 | maybe-check-uudecode \ | |
2066 | maybe-check-wdiff \ | |
2067 | maybe-check-zip \ | |
2068 | maybe-check-zlib \ | |
2069 | maybe-check-gdb \ | |
2070 | maybe-check-expect \ | |
2071 | maybe-check-guile \ | |
2072 | maybe-check-tk \ | |
4fa63067 NN |
2073 | maybe-check-libtermcap \ |
2074 | maybe-check-utils \ | |
f70224b5 PB |
2075 | maybe-check-gnattools |
2076 | ||
2077 | .PHONY: check-target | |
2078 | check-target: \ | |
4fa63067 | 2079 | maybe-check-target-libstdc++-v3 \ |
4b1cb4fe | 2080 | maybe-check-target-libmudflap \ |
064d0a7c | 2081 | maybe-check-target-libssp \ |
b3ded179 | 2082 | maybe-check-target-libgcc-math \ |
4fa63067 | 2083 | maybe-check-target-newlib \ |
4b1cb4fe | 2084 | maybe-check-target-libgfortran \ |
4fa63067 NN |
2085 | maybe-check-target-libobjc \ |
2086 | maybe-check-target-libtermcap \ | |
2087 | maybe-check-target-winsup \ | |
2088 | maybe-check-target-libgloss \ | |
2089 | maybe-check-target-libiberty \ | |
2090 | maybe-check-target-gperf \ | |
2091 | maybe-check-target-examples \ | |
2092 | maybe-check-target-libffi \ | |
2093 | maybe-check-target-libjava \ | |
2094 | maybe-check-target-zlib \ | |
2095 | maybe-check-target-boehm-gc \ | |
2096 | maybe-check-target-qthreads \ | |
2097 | maybe-check-target-rda \ | |
b3ded179 PB |
2098 | maybe-check-target-libada \ |
2099 | maybe-check-target-libgomp | |
f70224b5 PB |
2100 | |
2101 | do-check: | |
0aed8855 | 2102 | @: $(MAKE); $(unstage) |
e360f423 PB |
2103 | @r=`${PWD_COMMAND}`; export r; \ |
2104 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2105 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target | |
2a4cbe27 | 2106 | |
4fa63067 | 2107 | # Automated reporting of test results. |
2a4cbe27 | 2108 | |
4fa63067 NN |
2109 | warning.log: build.log |
2110 | $(srcdir)/contrib/warn_summary build.log > $@ | |
2a4cbe27 | 2111 | |
4fa63067 NN |
2112 | mail-report.log: |
2113 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
2114 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
2115 | fi; \ | |
2116 | $(srcdir)/contrib/test_summary -t >$@ | |
2117 | chmod +x $@ | |
2118 | echo If you really want to send e-mail, run ./$@ now | |
2a4cbe27 | 2119 | |
4fa63067 NN |
2120 | mail-report-with-warnings.log: warning.log |
2121 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
2122 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
2123 | fi; \ | |
2124 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
2125 | chmod +x $@ | |
2126 | echo If you really want to send e-mail, run ./$@ now | |
2a4cbe27 | 2127 | |
4fa63067 | 2128 | # Installation targets. |
2a4cbe27 | 2129 | |
4fa63067 | 2130 | .PHONY: install uninstall |
f70224b5 | 2131 | install: |
0aed8855 | 2132 | @: $(MAKE); $(unstage) |
e360f423 PB |
2133 | @r=`${PWD_COMMAND}`; export r; \ |
2134 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2135 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target | |
2a4cbe27 | 2136 | |
4fa63067 NN |
2137 | .PHONY: install-host-nogcc |
2138 | install-host-nogcc: \ | |
2139 | maybe-install-ash \ | |
2140 | maybe-install-autoconf \ | |
2141 | maybe-install-automake \ | |
2142 | maybe-install-bash \ | |
2143 | maybe-install-bfd \ | |
2144 | maybe-install-opcodes \ | |
2145 | maybe-install-binutils \ | |
2146 | maybe-install-bison \ | |
2147 | maybe-install-byacc \ | |
2148 | maybe-install-bzip2 \ | |
2149 | maybe-install-dejagnu \ | |
2150 | maybe-install-diff \ | |
2151 | maybe-install-dosutils \ | |
2152 | maybe-install-etc \ | |
2153 | maybe-install-fastjar \ | |
2154 | maybe-install-fileutils \ | |
2155 | maybe-install-findutils \ | |
2156 | maybe-install-find \ | |
d3ed111c | 2157 | maybe-install-fixincludes \ |
4fa63067 NN |
2158 | maybe-install-flex \ |
2159 | maybe-install-gas \ | |
2160 | maybe-install-gawk \ | |
2161 | maybe-install-gettext \ | |
2162 | maybe-install-gnuserv \ | |
2163 | maybe-install-gprof \ | |
2164 | maybe-install-gzip \ | |
2165 | maybe-install-hello \ | |
2166 | maybe-install-indent \ | |
2167 | maybe-install-intl \ | |
2168 | maybe-install-tcl \ | |
2169 | maybe-install-itcl \ | |
2170 | maybe-install-ld \ | |
04cf1b77 | 2171 | maybe-install-libcpp \ |
be01d343 | 2172 | maybe-install-libdecnumber \ |
4fa63067 NN |
2173 | maybe-install-libgui \ |
2174 | maybe-install-libiberty \ | |
2175 | maybe-install-libtool \ | |
2176 | maybe-install-m4 \ | |
2177 | maybe-install-make \ | |
2178 | maybe-install-mmalloc \ | |
2179 | maybe-install-patch \ | |
2180 | maybe-install-perl \ | |
2181 | maybe-install-prms \ | |
2182 | maybe-install-rcs \ | |
2183 | maybe-install-readline \ | |
2184 | maybe-install-release \ | |
2185 | maybe-install-recode \ | |
2186 | maybe-install-sed \ | |
2187 | maybe-install-send-pr \ | |
2188 | maybe-install-shellutils \ | |
2189 | maybe-install-sid \ | |
2190 | maybe-install-sim \ | |
2191 | maybe-install-tar \ | |
2192 | maybe-install-texinfo \ | |
2193 | maybe-install-textutils \ | |
2194 | maybe-install-time \ | |
2195 | maybe-install-uudecode \ | |
2196 | maybe-install-wdiff \ | |
2197 | maybe-install-zip \ | |
2198 | maybe-install-zlib \ | |
2199 | maybe-install-gdb \ | |
2200 | maybe-install-expect \ | |
2201 | maybe-install-guile \ | |
2202 | maybe-install-tk \ | |
4fa63067 | 2203 | maybe-install-libtermcap \ |
b00612cc PB |
2204 | maybe-install-utils \ |
2205 | maybe-install-gnattools | |
2a4cbe27 | 2206 | |
4fa63067 | 2207 | .PHONY: install-host |
b813574b | 2208 | install-host: \ |
4fa63067 NN |
2209 | maybe-install-ash \ |
2210 | maybe-install-autoconf \ | |
2211 | maybe-install-automake \ | |
2212 | maybe-install-bash \ | |
2213 | maybe-install-bfd \ | |
2214 | maybe-install-opcodes \ | |
2215 | maybe-install-binutils \ | |
2216 | maybe-install-bison \ | |
2217 | maybe-install-byacc \ | |
2218 | maybe-install-bzip2 \ | |
2219 | maybe-install-dejagnu \ | |
2220 | maybe-install-diff \ | |
2221 | maybe-install-dosutils \ | |
2222 | maybe-install-etc \ | |
2223 | maybe-install-fastjar \ | |
2224 | maybe-install-fileutils \ | |
2225 | maybe-install-findutils \ | |
2226 | maybe-install-find \ | |
d3ed111c | 2227 | maybe-install-fixincludes \ |
4fa63067 NN |
2228 | maybe-install-flex \ |
2229 | maybe-install-gas \ | |
b813574b | 2230 | maybe-install-gcc \ |
4fa63067 NN |
2231 | maybe-install-gawk \ |
2232 | maybe-install-gettext \ | |
2233 | maybe-install-gnuserv \ | |
2234 | maybe-install-gprof \ | |
2235 | maybe-install-gzip \ | |
2236 | maybe-install-hello \ | |
2237 | maybe-install-indent \ | |
2238 | maybe-install-intl \ | |
2239 | maybe-install-tcl \ | |
2240 | maybe-install-itcl \ | |
2241 | maybe-install-ld \ | |
04cf1b77 | 2242 | maybe-install-libcpp \ |
be01d343 | 2243 | maybe-install-libdecnumber \ |
4fa63067 NN |
2244 | maybe-install-libgui \ |
2245 | maybe-install-libiberty \ | |
2246 | maybe-install-libtool \ | |
2247 | maybe-install-m4 \ | |
2248 | maybe-install-make \ | |
2249 | maybe-install-mmalloc \ | |
2250 | maybe-install-patch \ | |
2251 | maybe-install-perl \ | |
2252 | maybe-install-prms \ | |
2253 | maybe-install-rcs \ | |
2254 | maybe-install-readline \ | |
2255 | maybe-install-release \ | |
2256 | maybe-install-recode \ | |
2257 | maybe-install-sed \ | |
2258 | maybe-install-send-pr \ | |
2259 | maybe-install-shellutils \ | |
2260 | maybe-install-sid \ | |
2261 | maybe-install-sim \ | |
2262 | maybe-install-tar \ | |
2263 | maybe-install-texinfo \ | |
2264 | maybe-install-textutils \ | |
2265 | maybe-install-time \ | |
2266 | maybe-install-uudecode \ | |
2267 | maybe-install-wdiff \ | |
2268 | maybe-install-zip \ | |
2269 | maybe-install-zlib \ | |
2270 | maybe-install-gdb \ | |
2271 | maybe-install-expect \ | |
2272 | maybe-install-guile \ | |
2273 | maybe-install-tk \ | |
4fa63067 | 2274 | maybe-install-libtermcap \ |
b00612cc PB |
2275 | maybe-install-utils \ |
2276 | maybe-install-gnattools | |
2a4cbe27 | 2277 | |
4fa63067 NN |
2278 | .PHONY: install-target |
2279 | install-target: \ | |
2280 | maybe-install-target-libstdc++-v3 \ | |
4b1cb4fe | 2281 | maybe-install-target-libmudflap \ |
064d0a7c | 2282 | maybe-install-target-libssp \ |
b3ded179 | 2283 | maybe-install-target-libgcc-math \ |
4fa63067 | 2284 | maybe-install-target-newlib \ |
4b1cb4fe | 2285 | maybe-install-target-libgfortran \ |
4fa63067 NN |
2286 | maybe-install-target-libobjc \ |
2287 | maybe-install-target-libtermcap \ | |
2288 | maybe-install-target-winsup \ | |
2289 | maybe-install-target-libgloss \ | |
2290 | maybe-install-target-libiberty \ | |
2291 | maybe-install-target-gperf \ | |
2292 | maybe-install-target-examples \ | |
2293 | maybe-install-target-libffi \ | |
2294 | maybe-install-target-libjava \ | |
2295 | maybe-install-target-zlib \ | |
2296 | maybe-install-target-boehm-gc \ | |
2297 | maybe-install-target-qthreads \ | |
2298 | maybe-install-target-rda \ | |
b3ded179 PB |
2299 | maybe-install-target-libada \ |
2300 | maybe-install-target-libgomp | |
2a4cbe27 | 2301 | |
4fa63067 NN |
2302 | uninstall: |
2303 | @echo "the uninstall target is not supported in this tree" | |
2a4cbe27 | 2304 | |
4fa63067 NN |
2305 | .PHONY: install.all |
2306 | install.all: install-no-fixedincludes | |
2307 | @if [ -f ./gcc/Makefile ] ; then \ | |
2308 | r=`${PWD_COMMAND}` ; export r ; \ | |
0aed8855 | 2309 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 2310 | $(HOST_EXPORTS) \ |
4fa63067 NN |
2311 | (cd ./gcc && \ |
2312 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
2313 | else \ | |
2314 | true ; \ | |
2315 | fi | |
2a4cbe27 | 2316 | |
4fa63067 NN |
2317 | # install-no-fixedincludes is used because Cygnus can not distribute |
2318 | # the fixed header files. | |
2319 | .PHONY: install-no-fixedincludes | |
2320 | install-no-fixedincludes: installdirs install-host-nogcc \ | |
2321 | install-target gcc-no-fixedincludes | |
2a4cbe27 | 2322 | |
4fa63067 | 2323 | ### other supporting targets |
2a4cbe27 | 2324 | |
4fa63067 NN |
2325 | MAKEDIRS= \ |
2326 | $(DESTDIR)$(prefix) \ | |
2327 | $(DESTDIR)$(exec_prefix) | |
2328 | .PHONY: installdirs | |
2329 | installdirs: mkinstalldirs | |
2330 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
2a4cbe27 | 2331 | |
4fa63067 NN |
2332 | dir.info: do-install-info |
2333 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
2334 | $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | |
2335 | mv -f dir.info.new dir.info ; \ | |
2336 | else true ; \ | |
2337 | fi | |
2a4cbe27 | 2338 | |
4fa63067 NN |
2339 | dist: |
2340 | @echo "Building a full distribution of this tree isn't done" | |
2341 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
2a4cbe27 | 2342 | |
4fa63067 | 2343 | etags tags: TAGS |
2a4cbe27 | 2344 | |
4fa63067 NN |
2345 | # Right now this just builds TAGS in each subdirectory. emacs19 has the |
2346 | # ability to use several tags files at once, so there is probably no need | |
2347 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
2348 | # (if we felt like it) have this Makefile write a piece of elisp which | |
2349 | # the user could load to tell emacs19 where all the TAGS files we just | |
2350 | # built are. | |
2351 | TAGS: do-TAGS | |
2a4cbe27 | 2352 | |
a7254363 PB |
2353 | # ------------------------------------ |
2354 | # Macros for configure and all targets | |
2355 | # ------------------------------------ | |
2356 | ||
2357 | ||
2358 | ||
2359 | ||
2360 | ||
4fa63067 NN |
2361 | # -------------------------------------- |
2362 | # Modules which run on the build machine | |
2363 | # -------------------------------------- | |
2364 | ||
a7254363 | 2365 | |
4fa63067 NN |
2366 | .PHONY: configure-build-libiberty maybe-configure-build-libiberty |
2367 | maybe-configure-build-libiberty: | |
6bd3dfaa PB |
2368 | @if build-libiberty |
2369 | maybe-configure-build-libiberty: configure-build-libiberty | |
c52c6897 | 2370 | configure-build-libiberty: |
0aed8855 | 2371 | @: $(MAKE); $(unstage) |
c52c6897 | 2372 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2373 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2374 | test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \ |
2375 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \ | |
378fce5b | 2376 | $(BUILD_EXPORTS) \ |
4fa63067 NN |
2377 | echo Configuring in $(BUILD_SUBDIR)/libiberty; \ |
2378 | cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \ | |
2379 | case $(srcdir) in \ | |
b00612cc PB |
2380 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2381 | *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \ | |
2382 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 2383 | esac; \ |
b00612cc PB |
2384 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
2385 | libsrcdir="$$s/libiberty"; \ | |
4fa63067 NN |
2386 | rm -f no-such-file || : ; \ |
2387 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2388 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 2389 | || exit 1 |
6bd3dfaa | 2390 | @endif build-libiberty |
2a4cbe27 | 2391 | |
a7254363 PB |
2392 | |
2393 | ||
d545f33b PB |
2394 | |
2395 | ||
4fa63067 NN |
2396 | .PHONY: all-build-libiberty maybe-all-build-libiberty |
2397 | maybe-all-build-libiberty: | |
6bd3dfaa | 2398 | @if build-libiberty |
72b2455a | 2399 | TARGET-build-libiberty=all |
6bd3dfaa | 2400 | maybe-all-build-libiberty: all-build-libiberty |
4fa63067 | 2401 | all-build-libiberty: configure-build-libiberty |
0aed8855 | 2402 | @: $(MAKE); $(unstage) |
4fa63067 | 2403 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2404 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2405 | $(BUILD_EXPORTS) \ |
72b2455a | 2406 | (cd $(BUILD_SUBDIR)/libiberty && \ |
a7254363 | 2407 | $(MAKE) $(TARGET-build-libiberty)) |
6bd3dfaa | 2408 | @endif build-libiberty |
2a4cbe27 | 2409 | |
a7254363 PB |
2410 | |
2411 | ||
d545f33b PB |
2412 | |
2413 | ||
6a9cf61e PB |
2414 | .PHONY: configure-build-bison maybe-configure-build-bison |
2415 | maybe-configure-build-bison: | |
2416 | @if build-bison | |
2417 | maybe-configure-build-bison: configure-build-bison | |
c52c6897 | 2418 | configure-build-bison: |
0aed8855 | 2419 | @: $(MAKE); $(unstage) |
c52c6897 | 2420 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2421 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2422 | test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \ |
2423 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \ | |
6a9cf61e PB |
2424 | $(BUILD_EXPORTS) \ |
2425 | echo Configuring in $(BUILD_SUBDIR)/bison; \ | |
2426 | cd "$(BUILD_SUBDIR)/bison" || exit 1; \ | |
2427 | case $(srcdir) in \ | |
b00612cc PB |
2428 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2429 | *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \ | |
2430 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2431 | esac; \ |
b00612cc PB |
2432 | srcdiroption="--srcdir=$${topdir}/bison"; \ |
2433 | libsrcdir="$$s/bison"; \ | |
6a9cf61e PB |
2434 | rm -f no-such-file || : ; \ |
2435 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2436 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2437 | || exit 1 |
2438 | @endif build-bison | |
2439 | ||
a7254363 PB |
2440 | |
2441 | ||
d545f33b PB |
2442 | |
2443 | ||
6a9cf61e PB |
2444 | .PHONY: all-build-bison maybe-all-build-bison |
2445 | maybe-all-build-bison: | |
2446 | @if build-bison | |
72b2455a | 2447 | TARGET-build-bison=all |
6a9cf61e PB |
2448 | maybe-all-build-bison: all-build-bison |
2449 | all-build-bison: configure-build-bison | |
0aed8855 | 2450 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2451 | @r=`${PWD_COMMAND}`; export r; \ |
2452 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2453 | $(BUILD_EXPORTS) \ | |
72b2455a | 2454 | (cd $(BUILD_SUBDIR)/bison && \ |
a7254363 | 2455 | $(MAKE) $(TARGET-build-bison)) |
6a9cf61e PB |
2456 | @endif build-bison |
2457 | ||
a7254363 PB |
2458 | |
2459 | ||
d545f33b PB |
2460 | |
2461 | ||
6a9cf61e PB |
2462 | .PHONY: configure-build-byacc maybe-configure-build-byacc |
2463 | maybe-configure-build-byacc: | |
2464 | @if build-byacc | |
2465 | maybe-configure-build-byacc: configure-build-byacc | |
c52c6897 | 2466 | configure-build-byacc: |
0aed8855 | 2467 | @: $(MAKE); $(unstage) |
c52c6897 | 2468 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2469 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2470 | test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \ |
2471 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \ | |
6a9cf61e PB |
2472 | $(BUILD_EXPORTS) \ |
2473 | echo Configuring in $(BUILD_SUBDIR)/byacc; \ | |
2474 | cd "$(BUILD_SUBDIR)/byacc" || exit 1; \ | |
2475 | case $(srcdir) in \ | |
b00612cc PB |
2476 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2477 | *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \ | |
2478 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2479 | esac; \ |
b00612cc PB |
2480 | srcdiroption="--srcdir=$${topdir}/byacc"; \ |
2481 | libsrcdir="$$s/byacc"; \ | |
6a9cf61e PB |
2482 | rm -f no-such-file || : ; \ |
2483 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2484 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2485 | || exit 1 |
2486 | @endif build-byacc | |
2487 | ||
a7254363 PB |
2488 | |
2489 | ||
d545f33b PB |
2490 | |
2491 | ||
6a9cf61e PB |
2492 | .PHONY: all-build-byacc maybe-all-build-byacc |
2493 | maybe-all-build-byacc: | |
2494 | @if build-byacc | |
72b2455a | 2495 | TARGET-build-byacc=all |
6a9cf61e PB |
2496 | maybe-all-build-byacc: all-build-byacc |
2497 | all-build-byacc: configure-build-byacc | |
0aed8855 | 2498 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2499 | @r=`${PWD_COMMAND}`; export r; \ |
2500 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2501 | $(BUILD_EXPORTS) \ | |
72b2455a | 2502 | (cd $(BUILD_SUBDIR)/byacc && \ |
a7254363 | 2503 | $(MAKE) $(TARGET-build-byacc)) |
6a9cf61e PB |
2504 | @endif build-byacc |
2505 | ||
a7254363 PB |
2506 | |
2507 | ||
d545f33b PB |
2508 | |
2509 | ||
6a9cf61e PB |
2510 | .PHONY: configure-build-flex maybe-configure-build-flex |
2511 | maybe-configure-build-flex: | |
2512 | @if build-flex | |
2513 | maybe-configure-build-flex: configure-build-flex | |
c52c6897 | 2514 | configure-build-flex: |
0aed8855 | 2515 | @: $(MAKE); $(unstage) |
c52c6897 | 2516 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2517 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2518 | test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \ |
2519 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \ | |
6a9cf61e PB |
2520 | $(BUILD_EXPORTS) \ |
2521 | echo Configuring in $(BUILD_SUBDIR)/flex; \ | |
2522 | cd "$(BUILD_SUBDIR)/flex" || exit 1; \ | |
2523 | case $(srcdir) in \ | |
b00612cc PB |
2524 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2525 | *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \ | |
2526 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2527 | esac; \ |
b00612cc PB |
2528 | srcdiroption="--srcdir=$${topdir}/flex"; \ |
2529 | libsrcdir="$$s/flex"; \ | |
6a9cf61e PB |
2530 | rm -f no-such-file || : ; \ |
2531 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2532 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2533 | || exit 1 |
2534 | @endif build-flex | |
2535 | ||
a7254363 PB |
2536 | |
2537 | ||
d545f33b PB |
2538 | |
2539 | ||
6a9cf61e PB |
2540 | .PHONY: all-build-flex maybe-all-build-flex |
2541 | maybe-all-build-flex: | |
2542 | @if build-flex | |
72b2455a | 2543 | TARGET-build-flex=all |
6a9cf61e PB |
2544 | maybe-all-build-flex: all-build-flex |
2545 | all-build-flex: configure-build-flex | |
0aed8855 | 2546 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2547 | @r=`${PWD_COMMAND}`; export r; \ |
2548 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2549 | $(BUILD_EXPORTS) \ | |
72b2455a | 2550 | (cd $(BUILD_SUBDIR)/flex && \ |
a7254363 | 2551 | $(MAKE) $(TARGET-build-flex)) |
6a9cf61e PB |
2552 | @endif build-flex |
2553 | ||
a7254363 PB |
2554 | |
2555 | ||
d545f33b PB |
2556 | |
2557 | ||
6a9cf61e PB |
2558 | .PHONY: configure-build-m4 maybe-configure-build-m4 |
2559 | maybe-configure-build-m4: | |
2560 | @if build-m4 | |
2561 | maybe-configure-build-m4: configure-build-m4 | |
c52c6897 | 2562 | configure-build-m4: |
0aed8855 | 2563 | @: $(MAKE); $(unstage) |
c52c6897 | 2564 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2566 | test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \ |
2567 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \ | |
6a9cf61e PB |
2568 | $(BUILD_EXPORTS) \ |
2569 | echo Configuring in $(BUILD_SUBDIR)/m4; \ | |
2570 | cd "$(BUILD_SUBDIR)/m4" || exit 1; \ | |
2571 | case $(srcdir) in \ | |
b00612cc PB |
2572 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2573 | *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \ | |
2574 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2575 | esac; \ |
b00612cc PB |
2576 | srcdiroption="--srcdir=$${topdir}/m4"; \ |
2577 | libsrcdir="$$s/m4"; \ | |
6a9cf61e PB |
2578 | rm -f no-such-file || : ; \ |
2579 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2580 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2581 | || exit 1 |
2582 | @endif build-m4 | |
2583 | ||
a7254363 PB |
2584 | |
2585 | ||
d545f33b PB |
2586 | |
2587 | ||
6a9cf61e PB |
2588 | .PHONY: all-build-m4 maybe-all-build-m4 |
2589 | maybe-all-build-m4: | |
2590 | @if build-m4 | |
72b2455a | 2591 | TARGET-build-m4=all |
6a9cf61e PB |
2592 | maybe-all-build-m4: all-build-m4 |
2593 | all-build-m4: configure-build-m4 | |
0aed8855 | 2594 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2595 | @r=`${PWD_COMMAND}`; export r; \ |
2596 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2597 | $(BUILD_EXPORTS) \ | |
72b2455a | 2598 | (cd $(BUILD_SUBDIR)/m4 && \ |
a7254363 | 2599 | $(MAKE) $(TARGET-build-m4)) |
6a9cf61e PB |
2600 | @endif build-m4 |
2601 | ||
a7254363 PB |
2602 | |
2603 | ||
d545f33b PB |
2604 | |
2605 | ||
6a9cf61e PB |
2606 | .PHONY: configure-build-texinfo maybe-configure-build-texinfo |
2607 | maybe-configure-build-texinfo: | |
2608 | @if build-texinfo | |
2609 | maybe-configure-build-texinfo: configure-build-texinfo | |
c52c6897 | 2610 | configure-build-texinfo: |
0aed8855 | 2611 | @: $(MAKE); $(unstage) |
c52c6897 | 2612 | @r=`${PWD_COMMAND}`; export r; \ |
6a9cf61e | 2613 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2614 | test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \ |
2615 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \ | |
6a9cf61e PB |
2616 | $(BUILD_EXPORTS) \ |
2617 | echo Configuring in $(BUILD_SUBDIR)/texinfo; \ | |
2618 | cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \ | |
2619 | case $(srcdir) in \ | |
b00612cc PB |
2620 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2621 | *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \ | |
2622 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
6a9cf61e | 2623 | esac; \ |
b00612cc PB |
2624 | srcdiroption="--srcdir=$${topdir}/texinfo"; \ |
2625 | libsrcdir="$$s/texinfo"; \ | |
6a9cf61e PB |
2626 | rm -f no-such-file || : ; \ |
2627 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2628 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
6a9cf61e PB |
2629 | || exit 1 |
2630 | @endif build-texinfo | |
2631 | ||
a7254363 PB |
2632 | |
2633 | ||
d545f33b PB |
2634 | |
2635 | ||
6a9cf61e PB |
2636 | .PHONY: all-build-texinfo maybe-all-build-texinfo |
2637 | maybe-all-build-texinfo: | |
2638 | @if build-texinfo | |
72b2455a | 2639 | TARGET-build-texinfo=all |
6a9cf61e PB |
2640 | maybe-all-build-texinfo: all-build-texinfo |
2641 | all-build-texinfo: configure-build-texinfo | |
0aed8855 | 2642 | @: $(MAKE); $(unstage) |
6a9cf61e PB |
2643 | @r=`${PWD_COMMAND}`; export r; \ |
2644 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2645 | $(BUILD_EXPORTS) \ | |
72b2455a | 2646 | (cd $(BUILD_SUBDIR)/texinfo && \ |
a7254363 | 2647 | $(MAKE) $(TARGET-build-texinfo)) |
6a9cf61e PB |
2648 | @endif build-texinfo |
2649 | ||
a7254363 PB |
2650 | |
2651 | ||
d545f33b PB |
2652 | |
2653 | ||
ee025550 PB |
2654 | .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes |
2655 | maybe-configure-build-fixincludes: | |
2656 | @if build-fixincludes | |
2657 | maybe-configure-build-fixincludes: configure-build-fixincludes | |
c52c6897 | 2658 | configure-build-fixincludes: |
0aed8855 | 2659 | @: $(MAKE); $(unstage) |
c52c6897 | 2660 | @r=`${PWD_COMMAND}`; export r; \ |
ee025550 | 2661 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2662 | test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \ |
2663 | $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \ | |
ee025550 PB |
2664 | $(BUILD_EXPORTS) \ |
2665 | echo Configuring in $(BUILD_SUBDIR)/fixincludes; \ | |
2666 | cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \ | |
2667 | case $(srcdir) in \ | |
b00612cc PB |
2668 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2669 | *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \ | |
2670 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
ee025550 | 2671 | esac; \ |
b00612cc PB |
2672 | srcdiroption="--srcdir=$${topdir}/fixincludes"; \ |
2673 | libsrcdir="$$s/fixincludes"; \ | |
ee025550 PB |
2674 | rm -f no-such-file || : ; \ |
2675 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 2676 | $(BUILD_CONFIGARGS) $${srcdiroption} \ |
ee025550 PB |
2677 | || exit 1 |
2678 | @endif build-fixincludes | |
2679 | ||
a7254363 PB |
2680 | |
2681 | ||
d545f33b PB |
2682 | |
2683 | ||
ee025550 PB |
2684 | .PHONY: all-build-fixincludes maybe-all-build-fixincludes |
2685 | maybe-all-build-fixincludes: | |
2686 | @if build-fixincludes | |
2687 | TARGET-build-fixincludes=all | |
2688 | maybe-all-build-fixincludes: all-build-fixincludes | |
2689 | all-build-fixincludes: configure-build-fixincludes | |
0aed8855 | 2690 | @: $(MAKE); $(unstage) |
ee025550 PB |
2691 | @r=`${PWD_COMMAND}`; export r; \ |
2692 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2693 | $(BUILD_EXPORTS) \ | |
2694 | (cd $(BUILD_SUBDIR)/fixincludes && \ | |
a7254363 | 2695 | $(MAKE) $(TARGET-build-fixincludes)) |
ee025550 PB |
2696 | @endif build-fixincludes |
2697 | ||
2a4cbe27 | 2698 | |
a7254363 | 2699 | |
d545f33b PB |
2700 | |
2701 | ||
4fa63067 NN |
2702 | # -------------------------------------- |
2703 | # Modules which run on the host machine | |
2704 | # -------------------------------------- | |
2a4cbe27 | 2705 | |
a7254363 | 2706 | |
4fa63067 NN |
2707 | .PHONY: configure-ash maybe-configure-ash |
2708 | maybe-configure-ash: | |
6bd3dfaa PB |
2709 | @if ash |
2710 | maybe-configure-ash: configure-ash | |
c52c6897 | 2711 | configure-ash: |
0aed8855 | 2712 | @: $(MAKE); $(unstage) |
c52c6897 | 2713 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2714 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
2715 | test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \ |
2716 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \ | |
378fce5b | 2717 | $(HOST_EXPORTS) \ |
a7254363 PB |
2718 | echo Configuring in $(HOST_SUBDIR)/ash; \ |
2719 | cd "$(HOST_SUBDIR)/ash" || exit 1; \ | |
4fa63067 | 2720 | case $(srcdir) in \ |
b00612cc PB |
2721 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
2722 | *) topdir=`echo $(HOST_SUBDIR)/ash/ | \ | |
2723 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 2724 | esac; \ |
b00612cc PB |
2725 | srcdiroption="--srcdir=$${topdir}/ash"; \ |
2726 | libsrcdir="$$s/ash"; \ | |
4fa63067 | 2727 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 2728 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 2729 | || exit 1 |
6bd3dfaa | 2730 | @endif ash |
2a4cbe27 | 2731 | |
a7254363 PB |
2732 | |
2733 | ||
d545f33b PB |
2734 | |
2735 | ||
4fa63067 NN |
2736 | .PHONY: all-ash maybe-all-ash |
2737 | maybe-all-ash: | |
6bd3dfaa | 2738 | @if ash |
d27cc32e | 2739 | TARGET-ash=all |
6bd3dfaa | 2740 | maybe-all-ash: all-ash |
4fa63067 | 2741 | all-ash: configure-ash |
0aed8855 | 2742 | @: $(MAKE); $(unstage) |
4fa63067 NN |
2743 | @r=`${PWD_COMMAND}`; export r; \ |
2744 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2745 | $(HOST_EXPORTS) \ |
b00612cc PB |
2746 | (cd $(HOST_SUBDIR)/ash && \ |
2747 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash)) | |
6bd3dfaa | 2748 | @endif ash |
2a4cbe27 | 2749 | |
a7254363 | 2750 | |
d545f33b PB |
2751 | |
2752 | ||
4fa63067 NN |
2753 | .PHONY: check-ash maybe-check-ash |
2754 | maybe-check-ash: | |
6bd3dfaa PB |
2755 | @if ash |
2756 | maybe-check-ash: check-ash | |
2a4cbe27 | 2757 | |
4fa63067 | 2758 | check-ash: |
0aed8855 | 2759 | @: $(MAKE); $(unstage) |
4fa63067 | 2760 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2761 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2762 | $(HOST_EXPORTS) \ |
b00612cc PB |
2763 | (cd $(HOST_SUBDIR)/ash && \ |
2764 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 2765 | |
6bd3dfaa | 2766 | @endif ash |
2a4cbe27 | 2767 | |
4fa63067 NN |
2768 | .PHONY: install-ash maybe-install-ash |
2769 | maybe-install-ash: | |
6bd3dfaa PB |
2770 | @if ash |
2771 | maybe-install-ash: install-ash | |
2a4cbe27 | 2772 | |
4fa63067 | 2773 | install-ash: installdirs |
0aed8855 | 2774 | @: $(MAKE); $(unstage) |
4fa63067 | 2775 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 2776 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 2777 | $(HOST_EXPORTS) \ |
b00612cc | 2778 | (cd $(HOST_SUBDIR)/ash && \ |
2da12f12 | 2779 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 2780 | |
6bd3dfaa | 2781 | @endif ash |
2a4cbe27 | 2782 | |
4fa63067 | 2783 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 2784 | |
4fa63067 NN |
2785 | .PHONY: maybe-info-ash info-ash |
2786 | maybe-info-ash: | |
6bd3dfaa PB |
2787 | @if ash |
2788 | maybe-info-ash: info-ash | |
4fa63067 NN |
2789 | |
2790 | info-ash: \ | |
2791 | configure-ash | |
0aed8855 | 2792 | @: $(MAKE); $(unstage) |
4fa63067 | 2793 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
2794 | r=`${PWD_COMMAND}`; export r; \ |
2795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2796 | $(HOST_EXPORTS) \ |
b813574b | 2797 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2798 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2799 | done; \ | |
4fa63067 | 2800 | echo "Doing info in ash" ; \ |
b00612cc | 2801 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2802 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2803 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2804 | "RANLIB=$${RANLIB}" \ | |
2805 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2806 | info) \ |
2a4cbe27 NN |
2807 | || exit 1 |
2808 | ||
6bd3dfaa | 2809 | @endif ash |
2a4cbe27 | 2810 | |
4fa63067 NN |
2811 | .PHONY: maybe-dvi-ash dvi-ash |
2812 | maybe-dvi-ash: | |
6bd3dfaa PB |
2813 | @if ash |
2814 | maybe-dvi-ash: dvi-ash | |
2a4cbe27 | 2815 | |
4fa63067 NN |
2816 | dvi-ash: \ |
2817 | configure-ash | |
0aed8855 | 2818 | @: $(MAKE); $(unstage) |
4fa63067 | 2819 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
2820 | r=`${PWD_COMMAND}`; export r; \ |
2821 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2822 | $(HOST_EXPORTS) \ |
b813574b | 2823 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2824 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2825 | done; \ | |
4fa63067 | 2826 | echo "Doing dvi in ash" ; \ |
b00612cc | 2827 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2828 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2829 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2830 | "RANLIB=$${RANLIB}" \ | |
2831 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2832 | dvi) \ |
2a4cbe27 NN |
2833 | || exit 1 |
2834 | ||
6bd3dfaa | 2835 | @endif ash |
2a4cbe27 | 2836 | |
6d389afc MS |
2837 | .PHONY: maybe-html-ash html-ash |
2838 | maybe-html-ash: | |
2839 | @if ash | |
2840 | maybe-html-ash: html-ash | |
2841 | ||
2842 | html-ash: \ | |
2843 | configure-ash | |
0aed8855 | 2844 | @: $(MAKE); $(unstage) |
6d389afc MS |
2845 | @[ -f ./ash/Makefile ] || exit 0; \ |
2846 | r=`${PWD_COMMAND}`; export r; \ | |
2847 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
2848 | $(HOST_EXPORTS) \ |
2849 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
2850 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
2851 | done; \ | |
2852 | echo "Doing html in ash" ; \ | |
b00612cc | 2853 | (cd $(HOST_SUBDIR)/ash && \ |
6d389afc MS |
2854 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2855 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2856 | "RANLIB=$${RANLIB}" \ | |
2857 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
2858 | html) \ | |
2859 | || exit 1 | |
2860 | ||
2861 | @endif ash | |
2862 | ||
4fa63067 NN |
2863 | .PHONY: maybe-TAGS-ash TAGS-ash |
2864 | maybe-TAGS-ash: | |
6bd3dfaa PB |
2865 | @if ash |
2866 | maybe-TAGS-ash: TAGS-ash | |
2a4cbe27 | 2867 | |
4fa63067 NN |
2868 | TAGS-ash: \ |
2869 | configure-ash | |
0aed8855 | 2870 | @: $(MAKE); $(unstage) |
4fa63067 | 2871 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
2872 | r=`${PWD_COMMAND}`; export r; \ |
2873 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2874 | $(HOST_EXPORTS) \ |
b813574b | 2875 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2876 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2877 | done; \ | |
4fa63067 | 2878 | echo "Doing TAGS in ash" ; \ |
b00612cc | 2879 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2880 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2881 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2882 | "RANLIB=$${RANLIB}" \ | |
2883 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2884 | TAGS) \ |
2a4cbe27 NN |
2885 | || exit 1 |
2886 | ||
6bd3dfaa | 2887 | @endif ash |
2a4cbe27 | 2888 | |
4fa63067 NN |
2889 | .PHONY: maybe-install-info-ash install-info-ash |
2890 | maybe-install-info-ash: | |
6bd3dfaa PB |
2891 | @if ash |
2892 | maybe-install-info-ash: install-info-ash | |
2a4cbe27 | 2893 | |
4fa63067 NN |
2894 | install-info-ash: \ |
2895 | configure-ash \ | |
2896 | info-ash | |
0aed8855 | 2897 | @: $(MAKE); $(unstage) |
4fa63067 | 2898 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
2899 | r=`${PWD_COMMAND}`; export r; \ |
2900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2901 | $(HOST_EXPORTS) \ |
b813574b | 2902 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2903 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2904 | done; \ | |
4fa63067 | 2905 | echo "Doing install-info in ash" ; \ |
b00612cc | 2906 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2907 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2908 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2909 | "RANLIB=$${RANLIB}" \ | |
2910 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2911 | install-info) \ |
2a4cbe27 NN |
2912 | || exit 1 |
2913 | ||
6bd3dfaa | 2914 | @endif ash |
2a4cbe27 | 2915 | |
108a6f8e CD |
2916 | .PHONY: maybe-install-html-ash install-html-ash |
2917 | maybe-install-html-ash: | |
2918 | @if ash | |
2919 | maybe-install-html-ash: install-html-ash | |
2920 | ||
2921 | install-html-ash: \ | |
2922 | configure-ash \ | |
2923 | html-ash | |
2924 | @: $(MAKE); $(unstage) | |
2925 | @[ -f ./ash/Makefile ] || exit 0; \ | |
2926 | r=`${PWD_COMMAND}`; export r; \ | |
2927 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
2928 | $(HOST_EXPORTS) \ | |
2929 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
2930 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
2931 | done; \ | |
2932 | echo "Doing install-html in ash" ; \ | |
2933 | (cd $(HOST_SUBDIR)/ash && \ | |
2934 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
2935 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2936 | "RANLIB=$${RANLIB}" \ | |
2937 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
2938 | install-html) \ | |
2939 | || exit 1 | |
2940 | ||
2941 | @endif ash | |
2942 | ||
4fa63067 NN |
2943 | .PHONY: maybe-installcheck-ash installcheck-ash |
2944 | maybe-installcheck-ash: | |
6bd3dfaa PB |
2945 | @if ash |
2946 | maybe-installcheck-ash: installcheck-ash | |
2a4cbe27 | 2947 | |
4fa63067 NN |
2948 | installcheck-ash: \ |
2949 | configure-ash | |
0aed8855 | 2950 | @: $(MAKE); $(unstage) |
4fa63067 | 2951 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
2952 | r=`${PWD_COMMAND}`; export r; \ |
2953 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2954 | $(HOST_EXPORTS) \ |
b813574b | 2955 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2956 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2957 | done; \ | |
4fa63067 | 2958 | echo "Doing installcheck in ash" ; \ |
b00612cc | 2959 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2960 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2961 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2962 | "RANLIB=$${RANLIB}" \ | |
2963 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2964 | installcheck) \ |
2a4cbe27 NN |
2965 | || exit 1 |
2966 | ||
6bd3dfaa | 2967 | @endif ash |
2a4cbe27 | 2968 | |
4fa63067 NN |
2969 | .PHONY: maybe-mostlyclean-ash mostlyclean-ash |
2970 | maybe-mostlyclean-ash: | |
6bd3dfaa PB |
2971 | @if ash |
2972 | maybe-mostlyclean-ash: mostlyclean-ash | |
2a4cbe27 | 2973 | |
4fa63067 | 2974 | mostlyclean-ash: |
0aed8855 | 2975 | @: $(MAKE); $(unstage) |
4fa63067 | 2976 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
2977 | r=`${PWD_COMMAND}`; export r; \ |
2978 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 2979 | $(HOST_EXPORTS) \ |
b813574b | 2980 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
2981 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
2982 | done; \ | |
4fa63067 | 2983 | echo "Doing mostlyclean in ash" ; \ |
b00612cc | 2984 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
2985 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
2986 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
2987 | "RANLIB=$${RANLIB}" \ | |
2988 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 2989 | mostlyclean) \ |
2a4cbe27 NN |
2990 | || exit 1 |
2991 | ||
6bd3dfaa | 2992 | @endif ash |
2a4cbe27 | 2993 | |
4fa63067 NN |
2994 | .PHONY: maybe-clean-ash clean-ash |
2995 | maybe-clean-ash: | |
6bd3dfaa PB |
2996 | @if ash |
2997 | maybe-clean-ash: clean-ash | |
2a4cbe27 | 2998 | |
4fa63067 | 2999 | clean-ash: |
0aed8855 | 3000 | @: $(MAKE); $(unstage) |
4fa63067 | 3001 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
3002 | r=`${PWD_COMMAND}`; export r; \ |
3003 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3004 | $(HOST_EXPORTS) \ |
b813574b | 3005 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3006 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3007 | done; \ | |
4fa63067 | 3008 | echo "Doing clean in ash" ; \ |
b00612cc | 3009 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
3010 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3011 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3012 | "RANLIB=$${RANLIB}" \ | |
3013 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3014 | clean) \ |
2a4cbe27 NN |
3015 | || exit 1 |
3016 | ||
6bd3dfaa | 3017 | @endif ash |
2a4cbe27 | 3018 | |
4fa63067 NN |
3019 | .PHONY: maybe-distclean-ash distclean-ash |
3020 | maybe-distclean-ash: | |
6bd3dfaa PB |
3021 | @if ash |
3022 | maybe-distclean-ash: distclean-ash | |
2a4cbe27 | 3023 | |
4fa63067 | 3024 | distclean-ash: |
0aed8855 | 3025 | @: $(MAKE); $(unstage) |
4fa63067 | 3026 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
3027 | r=`${PWD_COMMAND}`; export r; \ |
3028 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3029 | $(HOST_EXPORTS) \ |
b813574b | 3030 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3031 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3032 | done; \ | |
4fa63067 | 3033 | echo "Doing distclean in ash" ; \ |
b00612cc | 3034 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
3035 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3036 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3037 | "RANLIB=$${RANLIB}" \ | |
3038 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3039 | distclean) \ |
2a4cbe27 NN |
3040 | || exit 1 |
3041 | ||
6bd3dfaa | 3042 | @endif ash |
2a4cbe27 | 3043 | |
4fa63067 NN |
3044 | .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash |
3045 | maybe-maintainer-clean-ash: | |
6bd3dfaa PB |
3046 | @if ash |
3047 | maybe-maintainer-clean-ash: maintainer-clean-ash | |
2a4cbe27 | 3048 | |
4fa63067 | 3049 | maintainer-clean-ash: |
0aed8855 | 3050 | @: $(MAKE); $(unstage) |
4fa63067 | 3051 | @[ -f ./ash/Makefile ] || exit 0; \ |
b40e3958 L |
3052 | r=`${PWD_COMMAND}`; export r; \ |
3053 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3054 | $(HOST_EXPORTS) \ |
b813574b | 3055 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3056 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3057 | done; \ | |
4fa63067 | 3058 | echo "Doing maintainer-clean in ash" ; \ |
b00612cc | 3059 | (cd $(HOST_SUBDIR)/ash && \ |
2a4cbe27 NN |
3060 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3061 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3062 | "RANLIB=$${RANLIB}" \ | |
3063 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3064 | maintainer-clean) \ |
2a4cbe27 NN |
3065 | || exit 1 |
3066 | ||
6bd3dfaa | 3067 | @endif ash |
2a4cbe27 | 3068 | |
2a4cbe27 | 3069 | |
a7254363 | 3070 | |
4fa63067 NN |
3071 | .PHONY: configure-autoconf maybe-configure-autoconf |
3072 | maybe-configure-autoconf: | |
6bd3dfaa PB |
3073 | @if autoconf |
3074 | maybe-configure-autoconf: configure-autoconf | |
c52c6897 | 3075 | configure-autoconf: |
0aed8855 | 3076 | @: $(MAKE); $(unstage) |
c52c6897 | 3077 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3078 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
3079 | test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \ |
3080 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \ | |
378fce5b | 3081 | $(HOST_EXPORTS) \ |
a7254363 PB |
3082 | echo Configuring in $(HOST_SUBDIR)/autoconf; \ |
3083 | cd "$(HOST_SUBDIR)/autoconf" || exit 1; \ | |
4fa63067 | 3084 | case $(srcdir) in \ |
b00612cc PB |
3085 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3086 | *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \ | |
3087 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 3088 | esac; \ |
b00612cc PB |
3089 | srcdiroption="--srcdir=$${topdir}/autoconf"; \ |
3090 | libsrcdir="$$s/autoconf"; \ | |
4fa63067 | 3091 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 3092 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 3093 | || exit 1 |
6bd3dfaa | 3094 | @endif autoconf |
2a4cbe27 | 3095 | |
a7254363 PB |
3096 | |
3097 | ||
d545f33b PB |
3098 | |
3099 | ||
4fa63067 NN |
3100 | .PHONY: all-autoconf maybe-all-autoconf |
3101 | maybe-all-autoconf: | |
6bd3dfaa | 3102 | @if autoconf |
d27cc32e | 3103 | TARGET-autoconf=all |
6bd3dfaa | 3104 | maybe-all-autoconf: all-autoconf |
4fa63067 | 3105 | all-autoconf: configure-autoconf |
0aed8855 | 3106 | @: $(MAKE); $(unstage) |
4fa63067 NN |
3107 | @r=`${PWD_COMMAND}`; export r; \ |
3108 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3109 | $(HOST_EXPORTS) \ |
b00612cc PB |
3110 | (cd $(HOST_SUBDIR)/autoconf && \ |
3111 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf)) | |
6bd3dfaa | 3112 | @endif autoconf |
2a4cbe27 | 3113 | |
a7254363 | 3114 | |
d545f33b PB |
3115 | |
3116 | ||
4fa63067 NN |
3117 | .PHONY: check-autoconf maybe-check-autoconf |
3118 | maybe-check-autoconf: | |
6bd3dfaa PB |
3119 | @if autoconf |
3120 | maybe-check-autoconf: check-autoconf | |
2a4cbe27 | 3121 | |
4fa63067 | 3122 | check-autoconf: |
0aed8855 | 3123 | @: $(MAKE); $(unstage) |
4fa63067 | 3124 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3126 | $(HOST_EXPORTS) \ |
b00612cc PB |
3127 | (cd $(HOST_SUBDIR)/autoconf && \ |
3128 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 3129 | |
6bd3dfaa | 3130 | @endif autoconf |
2a4cbe27 | 3131 | |
4fa63067 NN |
3132 | .PHONY: install-autoconf maybe-install-autoconf |
3133 | maybe-install-autoconf: | |
6bd3dfaa PB |
3134 | @if autoconf |
3135 | maybe-install-autoconf: install-autoconf | |
2a4cbe27 | 3136 | |
4fa63067 | 3137 | install-autoconf: installdirs |
0aed8855 | 3138 | @: $(MAKE); $(unstage) |
4fa63067 | 3139 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3140 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3141 | $(HOST_EXPORTS) \ |
b00612cc | 3142 | (cd $(HOST_SUBDIR)/autoconf && \ |
2da12f12 | 3143 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3144 | |
6bd3dfaa | 3145 | @endif autoconf |
2a4cbe27 | 3146 | |
4fa63067 | 3147 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 3148 | |
4fa63067 NN |
3149 | .PHONY: maybe-info-autoconf info-autoconf |
3150 | maybe-info-autoconf: | |
6bd3dfaa PB |
3151 | @if autoconf |
3152 | maybe-info-autoconf: info-autoconf | |
4fa63067 NN |
3153 | |
3154 | info-autoconf: \ | |
3155 | configure-autoconf | |
0aed8855 | 3156 | @: $(MAKE); $(unstage) |
4fa63067 | 3157 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3158 | r=`${PWD_COMMAND}`; export r; \ |
3159 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3160 | $(HOST_EXPORTS) \ |
b813574b | 3161 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3162 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3163 | done; \ | |
4fa63067 | 3164 | echo "Doing info in autoconf" ; \ |
b00612cc | 3165 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3166 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3167 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3168 | "RANLIB=$${RANLIB}" \ | |
3169 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3170 | info) \ |
2a4cbe27 NN |
3171 | || exit 1 |
3172 | ||
6bd3dfaa | 3173 | @endif autoconf |
2a4cbe27 | 3174 | |
4fa63067 NN |
3175 | .PHONY: maybe-dvi-autoconf dvi-autoconf |
3176 | maybe-dvi-autoconf: | |
6bd3dfaa PB |
3177 | @if autoconf |
3178 | maybe-dvi-autoconf: dvi-autoconf | |
2a4cbe27 | 3179 | |
4fa63067 NN |
3180 | dvi-autoconf: \ |
3181 | configure-autoconf | |
0aed8855 | 3182 | @: $(MAKE); $(unstage) |
4fa63067 | 3183 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3184 | r=`${PWD_COMMAND}`; export r; \ |
3185 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3186 | $(HOST_EXPORTS) \ |
b813574b | 3187 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3188 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3189 | done; \ | |
4fa63067 | 3190 | echo "Doing dvi in autoconf" ; \ |
b00612cc | 3191 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3192 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3193 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3194 | "RANLIB=$${RANLIB}" \ | |
3195 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3196 | dvi) \ |
2a4cbe27 NN |
3197 | || exit 1 |
3198 | ||
6bd3dfaa | 3199 | @endif autoconf |
2a4cbe27 | 3200 | |
6d389afc MS |
3201 | .PHONY: maybe-html-autoconf html-autoconf |
3202 | maybe-html-autoconf: | |
3203 | @if autoconf | |
3204 | maybe-html-autoconf: html-autoconf | |
3205 | ||
3206 | html-autoconf: \ | |
3207 | configure-autoconf | |
0aed8855 | 3208 | @: $(MAKE); $(unstage) |
6d389afc MS |
3209 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
3210 | r=`${PWD_COMMAND}`; export r; \ | |
3211 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3212 | $(HOST_EXPORTS) \ |
3213 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3214 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3215 | done; \ | |
3216 | echo "Doing html in autoconf" ; \ | |
b00612cc | 3217 | (cd $(HOST_SUBDIR)/autoconf && \ |
6d389afc MS |
3218 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3219 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3220 | "RANLIB=$${RANLIB}" \ | |
3221 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3222 | html) \ | |
3223 | || exit 1 | |
3224 | ||
3225 | @endif autoconf | |
3226 | ||
4fa63067 NN |
3227 | .PHONY: maybe-TAGS-autoconf TAGS-autoconf |
3228 | maybe-TAGS-autoconf: | |
6bd3dfaa PB |
3229 | @if autoconf |
3230 | maybe-TAGS-autoconf: TAGS-autoconf | |
2a4cbe27 | 3231 | |
4fa63067 NN |
3232 | TAGS-autoconf: \ |
3233 | configure-autoconf | |
0aed8855 | 3234 | @: $(MAKE); $(unstage) |
4fa63067 | 3235 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3236 | r=`${PWD_COMMAND}`; export r; \ |
3237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3238 | $(HOST_EXPORTS) \ |
b813574b | 3239 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3240 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3241 | done; \ | |
4fa63067 | 3242 | echo "Doing TAGS in autoconf" ; \ |
b00612cc | 3243 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3244 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3245 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3246 | "RANLIB=$${RANLIB}" \ | |
3247 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3248 | TAGS) \ |
2a4cbe27 NN |
3249 | || exit 1 |
3250 | ||
6bd3dfaa | 3251 | @endif autoconf |
2a4cbe27 | 3252 | |
4fa63067 NN |
3253 | .PHONY: maybe-install-info-autoconf install-info-autoconf |
3254 | maybe-install-info-autoconf: | |
6bd3dfaa PB |
3255 | @if autoconf |
3256 | maybe-install-info-autoconf: install-info-autoconf | |
2a4cbe27 | 3257 | |
4fa63067 NN |
3258 | install-info-autoconf: \ |
3259 | configure-autoconf \ | |
3260 | info-autoconf | |
0aed8855 | 3261 | @: $(MAKE); $(unstage) |
4fa63067 | 3262 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3263 | r=`${PWD_COMMAND}`; export r; \ |
3264 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3265 | $(HOST_EXPORTS) \ |
b813574b | 3266 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3267 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3268 | done; \ | |
4fa63067 | 3269 | echo "Doing install-info in autoconf" ; \ |
b00612cc | 3270 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3271 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3272 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3273 | "RANLIB=$${RANLIB}" \ | |
3274 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3275 | install-info) \ |
2a4cbe27 NN |
3276 | || exit 1 |
3277 | ||
6bd3dfaa | 3278 | @endif autoconf |
2a4cbe27 | 3279 | |
108a6f8e CD |
3280 | .PHONY: maybe-install-html-autoconf install-html-autoconf |
3281 | maybe-install-html-autoconf: | |
3282 | @if autoconf | |
3283 | maybe-install-html-autoconf: install-html-autoconf | |
3284 | ||
3285 | install-html-autoconf: \ | |
3286 | configure-autoconf \ | |
3287 | html-autoconf | |
3288 | @: $(MAKE); $(unstage) | |
3289 | @[ -f ./autoconf/Makefile ] || exit 0; \ | |
3290 | r=`${PWD_COMMAND}`; export r; \ | |
3291 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3292 | $(HOST_EXPORTS) \ | |
3293 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3294 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3295 | done; \ | |
3296 | echo "Doing install-html in autoconf" ; \ | |
3297 | (cd $(HOST_SUBDIR)/autoconf && \ | |
3298 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
3299 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3300 | "RANLIB=$${RANLIB}" \ | |
3301 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3302 | install-html) \ | |
3303 | || exit 1 | |
3304 | ||
3305 | @endif autoconf | |
3306 | ||
4fa63067 NN |
3307 | .PHONY: maybe-installcheck-autoconf installcheck-autoconf |
3308 | maybe-installcheck-autoconf: | |
6bd3dfaa PB |
3309 | @if autoconf |
3310 | maybe-installcheck-autoconf: installcheck-autoconf | |
2a4cbe27 | 3311 | |
4fa63067 NN |
3312 | installcheck-autoconf: \ |
3313 | configure-autoconf | |
0aed8855 | 3314 | @: $(MAKE); $(unstage) |
4fa63067 | 3315 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3316 | r=`${PWD_COMMAND}`; export r; \ |
3317 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3318 | $(HOST_EXPORTS) \ |
b813574b | 3319 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3320 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3321 | done; \ | |
4fa63067 | 3322 | echo "Doing installcheck in autoconf" ; \ |
b00612cc | 3323 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3324 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3325 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3326 | "RANLIB=$${RANLIB}" \ | |
3327 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3328 | installcheck) \ |
2a4cbe27 NN |
3329 | || exit 1 |
3330 | ||
6bd3dfaa | 3331 | @endif autoconf |
2a4cbe27 | 3332 | |
4fa63067 NN |
3333 | .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf |
3334 | maybe-mostlyclean-autoconf: | |
6bd3dfaa PB |
3335 | @if autoconf |
3336 | maybe-mostlyclean-autoconf: mostlyclean-autoconf | |
2a4cbe27 | 3337 | |
4fa63067 | 3338 | mostlyclean-autoconf: |
0aed8855 | 3339 | @: $(MAKE); $(unstage) |
4fa63067 | 3340 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3341 | r=`${PWD_COMMAND}`; export r; \ |
3342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3343 | $(HOST_EXPORTS) \ |
b813574b | 3344 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3345 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3346 | done; \ | |
4fa63067 | 3347 | echo "Doing mostlyclean in autoconf" ; \ |
b00612cc | 3348 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3349 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3350 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3351 | "RANLIB=$${RANLIB}" \ | |
3352 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3353 | mostlyclean) \ |
2a4cbe27 NN |
3354 | || exit 1 |
3355 | ||
6bd3dfaa | 3356 | @endif autoconf |
2a4cbe27 | 3357 | |
4fa63067 NN |
3358 | .PHONY: maybe-clean-autoconf clean-autoconf |
3359 | maybe-clean-autoconf: | |
6bd3dfaa PB |
3360 | @if autoconf |
3361 | maybe-clean-autoconf: clean-autoconf | |
2a4cbe27 | 3362 | |
4fa63067 | 3363 | clean-autoconf: |
0aed8855 | 3364 | @: $(MAKE); $(unstage) |
4fa63067 | 3365 | @[ -f ./autoconf/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 clean in autoconf" ; \ |
b00612cc | 3373 | (cd $(HOST_SUBDIR)/autoconf && \ |
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 | clean) \ |
2a4cbe27 NN |
3379 | || exit 1 |
3380 | ||
6bd3dfaa | 3381 | @endif autoconf |
2a4cbe27 | 3382 | |
4fa63067 NN |
3383 | .PHONY: maybe-distclean-autoconf distclean-autoconf |
3384 | maybe-distclean-autoconf: | |
6bd3dfaa PB |
3385 | @if autoconf |
3386 | maybe-distclean-autoconf: distclean-autoconf | |
2a4cbe27 | 3387 | |
4fa63067 | 3388 | distclean-autoconf: |
0aed8855 | 3389 | @: $(MAKE); $(unstage) |
4fa63067 | 3390 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3391 | r=`${PWD_COMMAND}`; export r; \ |
3392 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3393 | $(HOST_EXPORTS) \ |
b813574b | 3394 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3395 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3396 | done; \ | |
4fa63067 | 3397 | echo "Doing distclean in autoconf" ; \ |
b00612cc | 3398 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3399 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3400 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3401 | "RANLIB=$${RANLIB}" \ | |
3402 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3403 | distclean) \ |
2a4cbe27 NN |
3404 | || exit 1 |
3405 | ||
6bd3dfaa | 3406 | @endif autoconf |
2a4cbe27 | 3407 | |
4fa63067 NN |
3408 | .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf |
3409 | maybe-maintainer-clean-autoconf: | |
6bd3dfaa PB |
3410 | @if autoconf |
3411 | maybe-maintainer-clean-autoconf: maintainer-clean-autoconf | |
2a4cbe27 | 3412 | |
4fa63067 | 3413 | maintainer-clean-autoconf: |
0aed8855 | 3414 | @: $(MAKE); $(unstage) |
4fa63067 | 3415 | @[ -f ./autoconf/Makefile ] || exit 0; \ |
b40e3958 L |
3416 | r=`${PWD_COMMAND}`; export r; \ |
3417 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3418 | $(HOST_EXPORTS) \ |
b813574b | 3419 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3420 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3421 | done; \ | |
4fa63067 | 3422 | echo "Doing maintainer-clean in autoconf" ; \ |
b00612cc | 3423 | (cd $(HOST_SUBDIR)/autoconf && \ |
2a4cbe27 NN |
3424 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3425 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3426 | "RANLIB=$${RANLIB}" \ | |
3427 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3428 | maintainer-clean) \ |
2a4cbe27 NN |
3429 | || exit 1 |
3430 | ||
6bd3dfaa | 3431 | @endif autoconf |
2a4cbe27 | 3432 | |
2a4cbe27 | 3433 | |
a7254363 | 3434 | |
4fa63067 NN |
3435 | .PHONY: configure-automake maybe-configure-automake |
3436 | maybe-configure-automake: | |
6bd3dfaa PB |
3437 | @if automake |
3438 | maybe-configure-automake: configure-automake | |
c52c6897 | 3439 | configure-automake: |
0aed8855 | 3440 | @: $(MAKE); $(unstage) |
c52c6897 | 3441 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3442 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
3443 | test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \ |
3444 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \ | |
378fce5b | 3445 | $(HOST_EXPORTS) \ |
a7254363 PB |
3446 | echo Configuring in $(HOST_SUBDIR)/automake; \ |
3447 | cd "$(HOST_SUBDIR)/automake" || exit 1; \ | |
4fa63067 | 3448 | case $(srcdir) in \ |
b00612cc PB |
3449 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3450 | *) topdir=`echo $(HOST_SUBDIR)/automake/ | \ | |
3451 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 3452 | esac; \ |
b00612cc PB |
3453 | srcdiroption="--srcdir=$${topdir}/automake"; \ |
3454 | libsrcdir="$$s/automake"; \ | |
4fa63067 | 3455 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 3456 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 3457 | || exit 1 |
6bd3dfaa | 3458 | @endif automake |
2a4cbe27 | 3459 | |
a7254363 PB |
3460 | |
3461 | ||
d545f33b PB |
3462 | |
3463 | ||
4fa63067 NN |
3464 | .PHONY: all-automake maybe-all-automake |
3465 | maybe-all-automake: | |
6bd3dfaa | 3466 | @if automake |
d27cc32e | 3467 | TARGET-automake=all |
6bd3dfaa | 3468 | maybe-all-automake: all-automake |
4fa63067 | 3469 | all-automake: configure-automake |
0aed8855 | 3470 | @: $(MAKE); $(unstage) |
4fa63067 NN |
3471 | @r=`${PWD_COMMAND}`; export r; \ |
3472 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3473 | $(HOST_EXPORTS) \ |
b00612cc PB |
3474 | (cd $(HOST_SUBDIR)/automake && \ |
3475 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake)) | |
6bd3dfaa | 3476 | @endif automake |
2a4cbe27 | 3477 | |
a7254363 | 3478 | |
d545f33b PB |
3479 | |
3480 | ||
4fa63067 NN |
3481 | .PHONY: check-automake maybe-check-automake |
3482 | maybe-check-automake: | |
6bd3dfaa PB |
3483 | @if automake |
3484 | maybe-check-automake: check-automake | |
2a4cbe27 | 3485 | |
4fa63067 | 3486 | check-automake: |
0aed8855 | 3487 | @: $(MAKE); $(unstage) |
4fa63067 | 3488 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3490 | $(HOST_EXPORTS) \ |
b00612cc PB |
3491 | (cd $(HOST_SUBDIR)/automake && \ |
3492 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 3493 | |
6bd3dfaa | 3494 | @endif automake |
4fa63067 NN |
3495 | |
3496 | .PHONY: install-automake maybe-install-automake | |
3497 | maybe-install-automake: | |
6bd3dfaa PB |
3498 | @if automake |
3499 | maybe-install-automake: install-automake | |
2a4cbe27 | 3500 | |
4fa63067 | 3501 | install-automake: installdirs |
0aed8855 | 3502 | @: $(MAKE); $(unstage) |
4fa63067 NN |
3503 | @r=`${PWD_COMMAND}`; export r; \ |
3504 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3505 | $(HOST_EXPORTS) \ |
b00612cc | 3506 | (cd $(HOST_SUBDIR)/automake && \ |
2da12f12 | 3507 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3508 | |
6bd3dfaa | 3509 | @endif automake |
2a4cbe27 | 3510 | |
4fa63067 NN |
3511 | # Other targets (info, dvi, etc.) |
3512 | ||
3513 | .PHONY: maybe-info-automake info-automake | |
3514 | maybe-info-automake: | |
6bd3dfaa PB |
3515 | @if automake |
3516 | maybe-info-automake: info-automake | |
4fa63067 NN |
3517 | |
3518 | info-automake: \ | |
3519 | configure-automake | |
0aed8855 | 3520 | @: $(MAKE); $(unstage) |
4fa63067 | 3521 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3522 | r=`${PWD_COMMAND}`; export r; \ |
3523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3524 | $(HOST_EXPORTS) \ |
b813574b | 3525 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3526 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3527 | done; \ | |
4fa63067 | 3528 | echo "Doing info in automake" ; \ |
b00612cc | 3529 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3530 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3531 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3532 | "RANLIB=$${RANLIB}" \ | |
3533 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3534 | info) \ |
2a4cbe27 NN |
3535 | || exit 1 |
3536 | ||
6bd3dfaa | 3537 | @endif automake |
2a4cbe27 | 3538 | |
4fa63067 NN |
3539 | .PHONY: maybe-dvi-automake dvi-automake |
3540 | maybe-dvi-automake: | |
6bd3dfaa PB |
3541 | @if automake |
3542 | maybe-dvi-automake: dvi-automake | |
2a4cbe27 | 3543 | |
4fa63067 NN |
3544 | dvi-automake: \ |
3545 | configure-automake | |
0aed8855 | 3546 | @: $(MAKE); $(unstage) |
4fa63067 | 3547 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3548 | r=`${PWD_COMMAND}`; export r; \ |
3549 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3550 | $(HOST_EXPORTS) \ |
b813574b | 3551 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3552 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3553 | done; \ | |
4fa63067 | 3554 | echo "Doing dvi in automake" ; \ |
b00612cc | 3555 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3556 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3557 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3558 | "RANLIB=$${RANLIB}" \ | |
3559 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3560 | dvi) \ |
2a4cbe27 NN |
3561 | || exit 1 |
3562 | ||
6bd3dfaa | 3563 | @endif automake |
2a4cbe27 | 3564 | |
6d389afc MS |
3565 | .PHONY: maybe-html-automake html-automake |
3566 | maybe-html-automake: | |
3567 | @if automake | |
3568 | maybe-html-automake: html-automake | |
3569 | ||
3570 | html-automake: \ | |
3571 | configure-automake | |
0aed8855 | 3572 | @: $(MAKE); $(unstage) |
6d389afc MS |
3573 | @[ -f ./automake/Makefile ] || exit 0; \ |
3574 | r=`${PWD_COMMAND}`; export r; \ | |
3575 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3576 | $(HOST_EXPORTS) \ |
3577 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3578 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3579 | done; \ | |
3580 | echo "Doing html in automake" ; \ | |
b00612cc | 3581 | (cd $(HOST_SUBDIR)/automake && \ |
6d389afc MS |
3582 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3583 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3584 | "RANLIB=$${RANLIB}" \ | |
3585 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3586 | html) \ | |
3587 | || exit 1 | |
3588 | ||
3589 | @endif automake | |
3590 | ||
4fa63067 NN |
3591 | .PHONY: maybe-TAGS-automake TAGS-automake |
3592 | maybe-TAGS-automake: | |
6bd3dfaa PB |
3593 | @if automake |
3594 | maybe-TAGS-automake: TAGS-automake | |
2a4cbe27 | 3595 | |
4fa63067 NN |
3596 | TAGS-automake: \ |
3597 | configure-automake | |
0aed8855 | 3598 | @: $(MAKE); $(unstage) |
4fa63067 | 3599 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3600 | r=`${PWD_COMMAND}`; export r; \ |
3601 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3602 | $(HOST_EXPORTS) \ |
b813574b | 3603 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3604 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3605 | done; \ | |
4fa63067 | 3606 | echo "Doing TAGS in automake" ; \ |
b00612cc | 3607 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3608 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3609 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3610 | "RANLIB=$${RANLIB}" \ | |
3611 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3612 | TAGS) \ |
2a4cbe27 NN |
3613 | || exit 1 |
3614 | ||
6bd3dfaa | 3615 | @endif automake |
2a4cbe27 | 3616 | |
4fa63067 NN |
3617 | .PHONY: maybe-install-info-automake install-info-automake |
3618 | maybe-install-info-automake: | |
6bd3dfaa PB |
3619 | @if automake |
3620 | maybe-install-info-automake: install-info-automake | |
2a4cbe27 | 3621 | |
4fa63067 NN |
3622 | install-info-automake: \ |
3623 | configure-automake \ | |
3624 | info-automake | |
0aed8855 | 3625 | @: $(MAKE); $(unstage) |
4fa63067 | 3626 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3627 | r=`${PWD_COMMAND}`; export r; \ |
3628 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3629 | $(HOST_EXPORTS) \ |
b813574b | 3630 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3631 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3632 | done; \ | |
4fa63067 | 3633 | echo "Doing install-info in automake" ; \ |
b00612cc | 3634 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3635 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3636 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3637 | "RANLIB=$${RANLIB}" \ | |
3638 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3639 | install-info) \ |
2a4cbe27 NN |
3640 | || exit 1 |
3641 | ||
6bd3dfaa | 3642 | @endif automake |
2a4cbe27 | 3643 | |
108a6f8e CD |
3644 | .PHONY: maybe-install-html-automake install-html-automake |
3645 | maybe-install-html-automake: | |
3646 | @if automake | |
3647 | maybe-install-html-automake: install-html-automake | |
3648 | ||
3649 | install-html-automake: \ | |
3650 | configure-automake \ | |
3651 | html-automake | |
3652 | @: $(MAKE); $(unstage) | |
3653 | @[ -f ./automake/Makefile ] || exit 0; \ | |
3654 | r=`${PWD_COMMAND}`; export r; \ | |
3655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
3656 | $(HOST_EXPORTS) \ | |
3657 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3658 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3659 | done; \ | |
3660 | echo "Doing install-html in automake" ; \ | |
3661 | (cd $(HOST_SUBDIR)/automake && \ | |
3662 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
3663 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3664 | "RANLIB=$${RANLIB}" \ | |
3665 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3666 | install-html) \ | |
3667 | || exit 1 | |
3668 | ||
3669 | @endif automake | |
3670 | ||
4fa63067 NN |
3671 | .PHONY: maybe-installcheck-automake installcheck-automake |
3672 | maybe-installcheck-automake: | |
6bd3dfaa PB |
3673 | @if automake |
3674 | maybe-installcheck-automake: installcheck-automake | |
2a4cbe27 | 3675 | |
4fa63067 NN |
3676 | installcheck-automake: \ |
3677 | configure-automake | |
0aed8855 | 3678 | @: $(MAKE); $(unstage) |
4fa63067 | 3679 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3680 | r=`${PWD_COMMAND}`; export r; \ |
3681 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3682 | $(HOST_EXPORTS) \ |
b813574b | 3683 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3684 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3685 | done; \ | |
4fa63067 | 3686 | echo "Doing installcheck in automake" ; \ |
b00612cc | 3687 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3688 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3689 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3690 | "RANLIB=$${RANLIB}" \ | |
3691 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3692 | installcheck) \ |
2a4cbe27 NN |
3693 | || exit 1 |
3694 | ||
6bd3dfaa | 3695 | @endif automake |
2a4cbe27 | 3696 | |
4fa63067 NN |
3697 | .PHONY: maybe-mostlyclean-automake mostlyclean-automake |
3698 | maybe-mostlyclean-automake: | |
6bd3dfaa PB |
3699 | @if automake |
3700 | maybe-mostlyclean-automake: mostlyclean-automake | |
2a4cbe27 | 3701 | |
4fa63067 | 3702 | mostlyclean-automake: |
0aed8855 | 3703 | @: $(MAKE); $(unstage) |
4fa63067 | 3704 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3705 | r=`${PWD_COMMAND}`; export r; \ |
3706 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3707 | $(HOST_EXPORTS) \ |
b813574b | 3708 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3709 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3710 | done; \ | |
4fa63067 | 3711 | echo "Doing mostlyclean in automake" ; \ |
b00612cc | 3712 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3713 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3714 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3715 | "RANLIB=$${RANLIB}" \ | |
3716 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3717 | mostlyclean) \ |
2a4cbe27 NN |
3718 | || exit 1 |
3719 | ||
6bd3dfaa | 3720 | @endif automake |
2a4cbe27 | 3721 | |
4fa63067 NN |
3722 | .PHONY: maybe-clean-automake clean-automake |
3723 | maybe-clean-automake: | |
6bd3dfaa PB |
3724 | @if automake |
3725 | maybe-clean-automake: clean-automake | |
2a4cbe27 | 3726 | |
4fa63067 | 3727 | clean-automake: |
0aed8855 | 3728 | @: $(MAKE); $(unstage) |
4fa63067 | 3729 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3730 | r=`${PWD_COMMAND}`; export r; \ |
3731 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3732 | $(HOST_EXPORTS) \ |
b813574b | 3733 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3734 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3735 | done; \ | |
4fa63067 | 3736 | echo "Doing clean in automake" ; \ |
b00612cc | 3737 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3738 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3739 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3740 | "RANLIB=$${RANLIB}" \ | |
3741 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3742 | clean) \ |
2a4cbe27 NN |
3743 | || exit 1 |
3744 | ||
6bd3dfaa | 3745 | @endif automake |
2a4cbe27 | 3746 | |
4fa63067 NN |
3747 | .PHONY: maybe-distclean-automake distclean-automake |
3748 | maybe-distclean-automake: | |
6bd3dfaa PB |
3749 | @if automake |
3750 | maybe-distclean-automake: distclean-automake | |
2a4cbe27 | 3751 | |
4fa63067 | 3752 | distclean-automake: |
0aed8855 | 3753 | @: $(MAKE); $(unstage) |
4fa63067 | 3754 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3755 | r=`${PWD_COMMAND}`; export r; \ |
3756 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3757 | $(HOST_EXPORTS) \ |
b813574b | 3758 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3759 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3760 | done; \ | |
4fa63067 | 3761 | echo "Doing distclean in automake" ; \ |
b00612cc | 3762 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3763 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3764 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3765 | "RANLIB=$${RANLIB}" \ | |
3766 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3767 | distclean) \ |
2a4cbe27 NN |
3768 | || exit 1 |
3769 | ||
6bd3dfaa | 3770 | @endif automake |
2a4cbe27 | 3771 | |
4fa63067 NN |
3772 | .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake |
3773 | maybe-maintainer-clean-automake: | |
6bd3dfaa PB |
3774 | @if automake |
3775 | maybe-maintainer-clean-automake: maintainer-clean-automake | |
2a4cbe27 | 3776 | |
4fa63067 | 3777 | maintainer-clean-automake: |
0aed8855 | 3778 | @: $(MAKE); $(unstage) |
4fa63067 | 3779 | @[ -f ./automake/Makefile ] || exit 0; \ |
b40e3958 L |
3780 | r=`${PWD_COMMAND}`; export r; \ |
3781 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3782 | $(HOST_EXPORTS) \ |
b813574b | 3783 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3784 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3785 | done; \ | |
4fa63067 | 3786 | echo "Doing maintainer-clean in automake" ; \ |
b00612cc | 3787 | (cd $(HOST_SUBDIR)/automake && \ |
2a4cbe27 NN |
3788 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3789 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3790 | "RANLIB=$${RANLIB}" \ | |
3791 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3792 | maintainer-clean) \ |
2a4cbe27 NN |
3793 | || exit 1 |
3794 | ||
6bd3dfaa | 3795 | @endif automake |
2a4cbe27 | 3796 | |
2a4cbe27 | 3797 | |
a7254363 | 3798 | |
4fa63067 NN |
3799 | .PHONY: configure-bash maybe-configure-bash |
3800 | maybe-configure-bash: | |
6bd3dfaa PB |
3801 | @if bash |
3802 | maybe-configure-bash: configure-bash | |
c52c6897 | 3803 | configure-bash: |
0aed8855 | 3804 | @: $(MAKE); $(unstage) |
c52c6897 | 3805 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3806 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
3807 | test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \ |
3808 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \ | |
378fce5b | 3809 | $(HOST_EXPORTS) \ |
a7254363 PB |
3810 | echo Configuring in $(HOST_SUBDIR)/bash; \ |
3811 | cd "$(HOST_SUBDIR)/bash" || exit 1; \ | |
4fa63067 | 3812 | case $(srcdir) in \ |
b00612cc PB |
3813 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
3814 | *) topdir=`echo $(HOST_SUBDIR)/bash/ | \ | |
3815 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 3816 | esac; \ |
b00612cc PB |
3817 | srcdiroption="--srcdir=$${topdir}/bash"; \ |
3818 | libsrcdir="$$s/bash"; \ | |
4fa63067 | 3819 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 3820 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 3821 | || exit 1 |
6bd3dfaa | 3822 | @endif bash |
2a4cbe27 | 3823 | |
a7254363 PB |
3824 | |
3825 | ||
d545f33b PB |
3826 | |
3827 | ||
4fa63067 NN |
3828 | .PHONY: all-bash maybe-all-bash |
3829 | maybe-all-bash: | |
6bd3dfaa | 3830 | @if bash |
d27cc32e | 3831 | TARGET-bash=all |
6bd3dfaa | 3832 | maybe-all-bash: all-bash |
4fa63067 | 3833 | all-bash: configure-bash |
0aed8855 | 3834 | @: $(MAKE); $(unstage) |
4fa63067 NN |
3835 | @r=`${PWD_COMMAND}`; export r; \ |
3836 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3837 | $(HOST_EXPORTS) \ |
b00612cc PB |
3838 | (cd $(HOST_SUBDIR)/bash && \ |
3839 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash)) | |
6bd3dfaa | 3840 | @endif bash |
2a4cbe27 | 3841 | |
a7254363 | 3842 | |
d545f33b PB |
3843 | |
3844 | ||
4fa63067 NN |
3845 | .PHONY: check-bash maybe-check-bash |
3846 | maybe-check-bash: | |
6bd3dfaa PB |
3847 | @if bash |
3848 | maybe-check-bash: check-bash | |
2a4cbe27 | 3849 | |
4fa63067 | 3850 | check-bash: |
0aed8855 | 3851 | @: $(MAKE); $(unstage) |
4fa63067 | 3852 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3853 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3854 | $(HOST_EXPORTS) \ |
b00612cc PB |
3855 | (cd $(HOST_SUBDIR)/bash && \ |
3856 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 3857 | |
6bd3dfaa | 3858 | @endif bash |
2a4cbe27 | 3859 | |
4fa63067 NN |
3860 | .PHONY: install-bash maybe-install-bash |
3861 | maybe-install-bash: | |
6bd3dfaa PB |
3862 | @if bash |
3863 | maybe-install-bash: install-bash | |
2a4cbe27 | 3864 | |
4fa63067 | 3865 | install-bash: installdirs |
0aed8855 | 3866 | @: $(MAKE); $(unstage) |
4fa63067 | 3867 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 3868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 3869 | $(HOST_EXPORTS) \ |
b00612cc | 3870 | (cd $(HOST_SUBDIR)/bash && \ |
2da12f12 | 3871 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 3872 | |
6bd3dfaa | 3873 | @endif bash |
2a4cbe27 | 3874 | |
4fa63067 | 3875 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 3876 | |
4fa63067 NN |
3877 | .PHONY: maybe-info-bash info-bash |
3878 | maybe-info-bash: | |
6bd3dfaa PB |
3879 | @if bash |
3880 | maybe-info-bash: info-bash | |
4fa63067 NN |
3881 | |
3882 | info-bash: \ | |
3883 | configure-bash | |
0aed8855 | 3884 | @: $(MAKE); $(unstage) |
4fa63067 | 3885 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
3886 | r=`${PWD_COMMAND}`; export r; \ |
3887 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3888 | $(HOST_EXPORTS) \ |
b813574b | 3889 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3890 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3891 | done; \ | |
4fa63067 | 3892 | echo "Doing info in bash" ; \ |
b00612cc | 3893 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3894 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3895 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3896 | "RANLIB=$${RANLIB}" \ | |
3897 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3898 | info) \ |
2a4cbe27 NN |
3899 | || exit 1 |
3900 | ||
6bd3dfaa | 3901 | @endif bash |
2a4cbe27 | 3902 | |
4fa63067 NN |
3903 | .PHONY: maybe-dvi-bash dvi-bash |
3904 | maybe-dvi-bash: | |
6bd3dfaa PB |
3905 | @if bash |
3906 | maybe-dvi-bash: dvi-bash | |
2a4cbe27 | 3907 | |
4fa63067 NN |
3908 | dvi-bash: \ |
3909 | configure-bash | |
0aed8855 | 3910 | @: $(MAKE); $(unstage) |
4fa63067 | 3911 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
3912 | r=`${PWD_COMMAND}`; export r; \ |
3913 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3914 | $(HOST_EXPORTS) \ |
b813574b | 3915 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3916 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3917 | done; \ | |
4fa63067 | 3918 | echo "Doing dvi in bash" ; \ |
b00612cc | 3919 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3920 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3921 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3922 | "RANLIB=$${RANLIB}" \ | |
3923 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3924 | dvi) \ |
2a4cbe27 NN |
3925 | || exit 1 |
3926 | ||
6bd3dfaa | 3927 | @endif bash |
2a4cbe27 | 3928 | |
6d389afc MS |
3929 | .PHONY: maybe-html-bash html-bash |
3930 | maybe-html-bash: | |
3931 | @if bash | |
3932 | maybe-html-bash: html-bash | |
3933 | ||
3934 | html-bash: \ | |
3935 | configure-bash | |
0aed8855 | 3936 | @: $(MAKE); $(unstage) |
6d389afc MS |
3937 | @[ -f ./bash/Makefile ] || exit 0; \ |
3938 | r=`${PWD_COMMAND}`; export r; \ | |
3939 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
3940 | $(HOST_EXPORTS) \ |
3941 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
3942 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
3943 | done; \ | |
3944 | echo "Doing html in bash" ; \ | |
b00612cc | 3945 | (cd $(HOST_SUBDIR)/bash && \ |
6d389afc MS |
3946 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3947 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3948 | "RANLIB=$${RANLIB}" \ | |
3949 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
3950 | html) \ | |
3951 | || exit 1 | |
3952 | ||
3953 | @endif bash | |
3954 | ||
4fa63067 NN |
3955 | .PHONY: maybe-TAGS-bash TAGS-bash |
3956 | maybe-TAGS-bash: | |
6bd3dfaa PB |
3957 | @if bash |
3958 | maybe-TAGS-bash: TAGS-bash | |
2a4cbe27 | 3959 | |
4fa63067 NN |
3960 | TAGS-bash: \ |
3961 | configure-bash | |
0aed8855 | 3962 | @: $(MAKE); $(unstage) |
4fa63067 | 3963 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
3964 | r=`${PWD_COMMAND}`; export r; \ |
3965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3966 | $(HOST_EXPORTS) \ |
b813574b | 3967 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3968 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3969 | done; \ | |
4fa63067 | 3970 | echo "Doing TAGS in bash" ; \ |
b00612cc | 3971 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3972 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
3973 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
3974 | "RANLIB=$${RANLIB}" \ | |
3975 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 3976 | TAGS) \ |
2a4cbe27 NN |
3977 | || exit 1 |
3978 | ||
6bd3dfaa | 3979 | @endif bash |
2a4cbe27 | 3980 | |
4fa63067 NN |
3981 | .PHONY: maybe-install-info-bash install-info-bash |
3982 | maybe-install-info-bash: | |
6bd3dfaa PB |
3983 | @if bash |
3984 | maybe-install-info-bash: install-info-bash | |
2a4cbe27 | 3985 | |
4fa63067 NN |
3986 | install-info-bash: \ |
3987 | configure-bash \ | |
3988 | info-bash | |
0aed8855 | 3989 | @: $(MAKE); $(unstage) |
4fa63067 | 3990 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
3991 | r=`${PWD_COMMAND}`; export r; \ |
3992 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 3993 | $(HOST_EXPORTS) \ |
b813574b | 3994 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
3995 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
3996 | done; \ | |
4fa63067 | 3997 | echo "Doing install-info in bash" ; \ |
b00612cc | 3998 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
3999 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4000 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4001 | "RANLIB=$${RANLIB}" \ | |
4002 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4003 | install-info) \ |
2a4cbe27 NN |
4004 | || exit 1 |
4005 | ||
6bd3dfaa | 4006 | @endif bash |
2a4cbe27 | 4007 | |
108a6f8e CD |
4008 | .PHONY: maybe-install-html-bash install-html-bash |
4009 | maybe-install-html-bash: | |
4010 | @if bash | |
4011 | maybe-install-html-bash: install-html-bash | |
4012 | ||
4013 | install-html-bash: \ | |
4014 | configure-bash \ | |
4015 | html-bash | |
4016 | @: $(MAKE); $(unstage) | |
4017 | @[ -f ./bash/Makefile ] || exit 0; \ | |
4018 | r=`${PWD_COMMAND}`; export r; \ | |
4019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4020 | $(HOST_EXPORTS) \ | |
4021 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4022 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4023 | done; \ | |
4024 | echo "Doing install-html in bash" ; \ | |
4025 | (cd $(HOST_SUBDIR)/bash && \ | |
4026 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
4027 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4028 | "RANLIB=$${RANLIB}" \ | |
4029 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
4030 | install-html) \ | |
4031 | || exit 1 | |
4032 | ||
4033 | @endif bash | |
4034 | ||
4fa63067 NN |
4035 | .PHONY: maybe-installcheck-bash installcheck-bash |
4036 | maybe-installcheck-bash: | |
6bd3dfaa PB |
4037 | @if bash |
4038 | maybe-installcheck-bash: installcheck-bash | |
2a4cbe27 | 4039 | |
4fa63067 NN |
4040 | installcheck-bash: \ |
4041 | configure-bash | |
0aed8855 | 4042 | @: $(MAKE); $(unstage) |
4fa63067 | 4043 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
4044 | r=`${PWD_COMMAND}`; export r; \ |
4045 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4046 | $(HOST_EXPORTS) \ |
b813574b | 4047 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4048 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4049 | done; \ | |
4fa63067 | 4050 | echo "Doing installcheck in bash" ; \ |
b00612cc | 4051 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
4052 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4053 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4054 | "RANLIB=$${RANLIB}" \ | |
4055 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4056 | installcheck) \ |
2a4cbe27 NN |
4057 | || exit 1 |
4058 | ||
6bd3dfaa | 4059 | @endif bash |
2a4cbe27 | 4060 | |
4fa63067 NN |
4061 | .PHONY: maybe-mostlyclean-bash mostlyclean-bash |
4062 | maybe-mostlyclean-bash: | |
6bd3dfaa PB |
4063 | @if bash |
4064 | maybe-mostlyclean-bash: mostlyclean-bash | |
2a4cbe27 | 4065 | |
4fa63067 | 4066 | mostlyclean-bash: |
0aed8855 | 4067 | @: $(MAKE); $(unstage) |
4fa63067 | 4068 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
4069 | r=`${PWD_COMMAND}`; export r; \ |
4070 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4071 | $(HOST_EXPORTS) \ |
b813574b | 4072 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4073 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4074 | done; \ | |
4fa63067 | 4075 | echo "Doing mostlyclean in bash" ; \ |
b00612cc | 4076 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
4077 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4078 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4079 | "RANLIB=$${RANLIB}" \ | |
4080 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4081 | mostlyclean) \ |
2a4cbe27 NN |
4082 | || exit 1 |
4083 | ||
6bd3dfaa | 4084 | @endif bash |
2a4cbe27 | 4085 | |
4fa63067 NN |
4086 | .PHONY: maybe-clean-bash clean-bash |
4087 | maybe-clean-bash: | |
6bd3dfaa PB |
4088 | @if bash |
4089 | maybe-clean-bash: clean-bash | |
2a4cbe27 | 4090 | |
4fa63067 | 4091 | clean-bash: |
0aed8855 | 4092 | @: $(MAKE); $(unstage) |
4fa63067 | 4093 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
4094 | r=`${PWD_COMMAND}`; export r; \ |
4095 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4096 | $(HOST_EXPORTS) \ |
b813574b | 4097 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4098 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4099 | done; \ | |
4fa63067 | 4100 | echo "Doing clean in bash" ; \ |
b00612cc | 4101 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
4102 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4103 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4104 | "RANLIB=$${RANLIB}" \ | |
4105 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4106 | clean) \ |
2a4cbe27 NN |
4107 | || exit 1 |
4108 | ||
6bd3dfaa | 4109 | @endif bash |
2a4cbe27 | 4110 | |
4fa63067 NN |
4111 | .PHONY: maybe-distclean-bash distclean-bash |
4112 | maybe-distclean-bash: | |
6bd3dfaa PB |
4113 | @if bash |
4114 | maybe-distclean-bash: distclean-bash | |
2a4cbe27 | 4115 | |
4fa63067 | 4116 | distclean-bash: |
0aed8855 | 4117 | @: $(MAKE); $(unstage) |
4fa63067 | 4118 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
4119 | r=`${PWD_COMMAND}`; export r; \ |
4120 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4121 | $(HOST_EXPORTS) \ |
b813574b | 4122 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4123 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4124 | done; \ | |
4fa63067 | 4125 | echo "Doing distclean in bash" ; \ |
b00612cc | 4126 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
4127 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4128 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4129 | "RANLIB=$${RANLIB}" \ | |
4130 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4131 | distclean) \ |
2a4cbe27 NN |
4132 | || exit 1 |
4133 | ||
6bd3dfaa | 4134 | @endif bash |
2a4cbe27 | 4135 | |
4fa63067 NN |
4136 | .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash |
4137 | maybe-maintainer-clean-bash: | |
6bd3dfaa PB |
4138 | @if bash |
4139 | maybe-maintainer-clean-bash: maintainer-clean-bash | |
2a4cbe27 | 4140 | |
4fa63067 | 4141 | maintainer-clean-bash: |
0aed8855 | 4142 | @: $(MAKE); $(unstage) |
4fa63067 | 4143 | @[ -f ./bash/Makefile ] || exit 0; \ |
b40e3958 L |
4144 | r=`${PWD_COMMAND}`; export r; \ |
4145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4146 | $(HOST_EXPORTS) \ |
b813574b | 4147 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4148 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4149 | done; \ | |
4fa63067 | 4150 | echo "Doing maintainer-clean in bash" ; \ |
b00612cc | 4151 | (cd $(HOST_SUBDIR)/bash && \ |
2a4cbe27 NN |
4152 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4153 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4154 | "RANLIB=$${RANLIB}" \ | |
4155 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4156 | maintainer-clean) \ |
2a4cbe27 NN |
4157 | || exit 1 |
4158 | ||
6bd3dfaa | 4159 | @endif bash |
2a4cbe27 | 4160 | |
2a4cbe27 | 4161 | |
a7254363 | 4162 | |
4fa63067 NN |
4163 | .PHONY: configure-bfd maybe-configure-bfd |
4164 | maybe-configure-bfd: | |
6bd3dfaa PB |
4165 | @if bfd |
4166 | maybe-configure-bfd: configure-bfd | |
c52c6897 PB |
4167 | configure-bfd: |
4168 | @endif bfd | |
4169 | @if bfd-bootstrap | |
4170 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
4171 | @endif bfd-bootstrap | |
4172 | @if bfd | |
4173 | @r=`${PWD_COMMAND}`; export r; \ | |
4174 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
4175 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
4176 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ | |
378fce5b | 4177 | $(HOST_EXPORTS) \ |
a7254363 PB |
4178 | echo Configuring in $(HOST_SUBDIR)/bfd; \ |
4179 | cd "$(HOST_SUBDIR)/bfd" || exit 1; \ | |
4fa63067 | 4180 | case $(srcdir) in \ |
b00612cc PB |
4181 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
4182 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4183 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 4184 | esac; \ |
b00612cc PB |
4185 | srcdiroption="--srcdir=$${topdir}/bfd"; \ |
4186 | libsrcdir="$$s/bfd"; \ | |
4fa63067 | 4187 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 4188 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 4189 | || exit 1 |
6bd3dfaa | 4190 | @endif bfd |
2a4cbe27 | 4191 | |
a7254363 PB |
4192 | |
4193 | ||
d545f33b PB |
4194 | .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd |
4195 | maybe-configure-stage1-bfd: | |
4196 | @if bfd-bootstrap | |
4197 | maybe-configure-stage1-bfd: configure-stage1-bfd | |
0aed8855 | 4198 | configure-stage1-bfd: |
c52c6897 | 4199 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 4200 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd |
c52c6897 PB |
4201 | @r=`${PWD_COMMAND}`; export r; \ |
4202 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4203 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
d545f33b PB |
4204 | $(HOST_EXPORTS) \ |
4205 | echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \ | |
0aed8855 | 4206 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ |
d545f33b PB |
4207 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
4208 | case $(srcdir) in \ | |
4209 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4210 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4211 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4212 | esac; \ | |
4213 | srcdiroption="--srcdir=$${topdir}/bfd"; \ | |
4214 | libsrcdir="$$s/bfd"; \ | |
4215 | $(SHELL) $${libsrcdir}/configure \ | |
4216 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4217 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
4218 | @endif bfd-bootstrap | |
4219 | ||
4220 | .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd | |
4221 | maybe-configure-stage2-bfd: | |
4222 | @if bfd-bootstrap | |
4223 | maybe-configure-stage2-bfd: configure-stage2-bfd | |
0aed8855 | 4224 | configure-stage2-bfd: |
c52c6897 | 4225 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 4226 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd |
c52c6897 PB |
4227 | @r=`${PWD_COMMAND}`; export r; \ |
4228 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4229 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
d545f33b PB |
4230 | $(HOST_EXPORTS) \ |
4231 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4232 | echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \ | |
0aed8855 | 4233 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ |
d545f33b PB |
4234 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
4235 | case $(srcdir) in \ | |
4236 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4237 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4238 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4239 | esac; \ | |
4240 | srcdiroption="--srcdir=$${topdir}/bfd"; \ | |
4241 | libsrcdir="$$s/bfd"; \ | |
4242 | $(SHELL) $${libsrcdir}/configure \ | |
4243 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4244 | @stage2_werror_flag@ | |
4245 | @endif bfd-bootstrap | |
4246 | ||
4247 | .PHONY: configure-stage3-bfd maybe-configure-stage3-bfd | |
4248 | maybe-configure-stage3-bfd: | |
4249 | @if bfd-bootstrap | |
4250 | maybe-configure-stage3-bfd: configure-stage3-bfd | |
0aed8855 | 4251 | configure-stage3-bfd: |
c52c6897 | 4252 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 4253 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd |
c52c6897 PB |
4254 | @r=`${PWD_COMMAND}`; export r; \ |
4255 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4256 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
d545f33b PB |
4257 | $(HOST_EXPORTS) \ |
4258 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4259 | echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \ | |
0aed8855 | 4260 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ |
d545f33b PB |
4261 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
4262 | case $(srcdir) in \ | |
4263 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4264 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4265 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4266 | esac; \ | |
4267 | srcdiroption="--srcdir=$${topdir}/bfd"; \ | |
4268 | libsrcdir="$$s/bfd"; \ | |
4269 | $(SHELL) $${libsrcdir}/configure \ | |
4270 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4271 | @stage2_werror_flag@ | |
4272 | @endif bfd-bootstrap | |
4273 | ||
4274 | .PHONY: configure-stage4-bfd maybe-configure-stage4-bfd | |
4275 | maybe-configure-stage4-bfd: | |
4276 | @if bfd-bootstrap | |
4277 | maybe-configure-stage4-bfd: configure-stage4-bfd | |
0aed8855 | 4278 | configure-stage4-bfd: |
c52c6897 | 4279 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 4280 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd |
c52c6897 PB |
4281 | @r=`${PWD_COMMAND}`; export r; \ |
4282 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4283 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
d545f33b PB |
4284 | $(HOST_EXPORTS) \ |
4285 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4286 | echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \ | |
0aed8855 | 4287 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ |
d545f33b PB |
4288 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
4289 | case $(srcdir) in \ | |
4290 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4291 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4292 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4293 | esac; \ | |
4294 | srcdiroption="--srcdir=$${topdir}/bfd"; \ | |
4295 | libsrcdir="$$s/bfd"; \ | |
4296 | $(SHELL) $${libsrcdir}/configure \ | |
4297 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4298 | @stage2_werror_flag@ | |
4299 | @endif bfd-bootstrap | |
4300 | ||
4301 | .PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd | |
4302 | maybe-configure-stageprofile-bfd: | |
4303 | @if bfd-bootstrap | |
4304 | maybe-configure-stageprofile-bfd: configure-stageprofile-bfd | |
0aed8855 | 4305 | configure-stageprofile-bfd: |
c52c6897 | 4306 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 4307 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd |
c52c6897 PB |
4308 | @r=`${PWD_COMMAND}`; export r; \ |
4309 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4310 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
d545f33b PB |
4311 | $(HOST_EXPORTS) \ |
4312 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4313 | echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \ | |
0aed8855 | 4314 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ |
d545f33b PB |
4315 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
4316 | case $(srcdir) in \ | |
4317 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4318 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4319 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4320 | esac; \ | |
4321 | srcdiroption="--srcdir=$${topdir}/bfd"; \ | |
4322 | libsrcdir="$$s/bfd"; \ | |
4323 | $(SHELL) $${libsrcdir}/configure \ | |
4324 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4325 | @stage2_werror_flag@ | |
4326 | @endif bfd-bootstrap | |
4327 | ||
4328 | .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd | |
4329 | maybe-configure-stagefeedback-bfd: | |
4330 | @if bfd-bootstrap | |
4331 | maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd | |
0aed8855 | 4332 | configure-stagefeedback-bfd: |
c52c6897 | 4333 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 4334 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd |
c52c6897 PB |
4335 | @r=`${PWD_COMMAND}`; export r; \ |
4336 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4337 | test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \ |
d545f33b PB |
4338 | $(HOST_EXPORTS) \ |
4339 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4340 | echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \ | |
0aed8855 | 4341 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \ |
d545f33b PB |
4342 | cd $(HOST_SUBDIR)/bfd || exit 1; \ |
4343 | case $(srcdir) in \ | |
4344 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4345 | *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \ | |
4346 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4347 | esac; \ | |
4348 | srcdiroption="--srcdir=$${topdir}/bfd"; \ | |
4349 | libsrcdir="$$s/bfd"; \ | |
4350 | $(SHELL) $${libsrcdir}/configure \ | |
4351 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4352 | @stage2_werror_flag@ | |
4353 | @endif bfd-bootstrap | |
4354 | ||
4355 | ||
4356 | ||
4357 | ||
4358 | ||
4fa63067 NN |
4359 | .PHONY: all-bfd maybe-all-bfd |
4360 | maybe-all-bfd: | |
6bd3dfaa | 4361 | @if bfd |
d27cc32e | 4362 | TARGET-bfd=all |
6bd3dfaa | 4363 | maybe-all-bfd: all-bfd |
4fa63067 | 4364 | all-bfd: configure-bfd |
c52c6897 PB |
4365 | @endif bfd |
4366 | @if bfd-bootstrap | |
4367 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
4368 | @endif bfd-bootstrap | |
4369 | @if bfd | |
4370 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 4371 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4372 | $(HOST_EXPORTS) \ |
b00612cc PB |
4373 | (cd $(HOST_SUBDIR)/bfd && \ |
4374 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd)) | |
6bd3dfaa | 4375 | @endif bfd |
2a4cbe27 | 4376 | |
a7254363 | 4377 | |
d545f33b PB |
4378 | |
4379 | .PHONY: all-stage1-bfd maybe-all-stage1-bfd | |
4380 | .PHONY: clean-stage1-bfd maybe-clean-stage1-bfd | |
4381 | maybe-all-stage1-bfd: | |
4382 | maybe-clean-stage1-bfd: | |
4383 | @if bfd-bootstrap | |
4384 | maybe-all-stage1-bfd: all-stage1-bfd | |
4385 | all-stage1: all-stage1-bfd | |
f70224b5 | 4386 | TARGET-stage1-bfd = $(TARGET-bfd) |
d545f33b | 4387 | all-stage1-bfd: configure-stage1-bfd |
c52c6897 | 4388 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
4389 | @r=`${PWD_COMMAND}`; export r; \ |
4390 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4391 | $(HOST_EXPORTS) \ | |
4392 | cd $(HOST_SUBDIR)/bfd && \ | |
c52c6897 | 4393 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 4394 | $(TARGET-stage1-bfd) |
d545f33b PB |
4395 | |
4396 | maybe-clean-stage1-bfd: clean-stage1-bfd | |
4397 | clean-stage1: clean-stage1-bfd | |
4398 | clean-stage1-bfd: | |
4399 | @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] \ | |
4400 | || exit 0 ; \ | |
c52c6897 | 4401 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
4402 | cd $(HOST_SUBDIR)/bfd && \ |
4403 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 4404 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
4405 | @endif bfd-bootstrap |
4406 | ||
4407 | ||
4408 | .PHONY: all-stage2-bfd maybe-all-stage2-bfd | |
4409 | .PHONY: clean-stage2-bfd maybe-clean-stage2-bfd | |
4410 | maybe-all-stage2-bfd: | |
4411 | maybe-clean-stage2-bfd: | |
4412 | @if bfd-bootstrap | |
4413 | maybe-all-stage2-bfd: all-stage2-bfd | |
4414 | all-stage2: all-stage2-bfd | |
f70224b5 | 4415 | TARGET-stage2-bfd = $(TARGET-bfd) |
d545f33b | 4416 | all-stage2-bfd: configure-stage2-bfd |
c52c6897 | 4417 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
4418 | @r=`${PWD_COMMAND}`; export r; \ |
4419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4420 | $(HOST_EXPORTS) \ | |
4421 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4422 | cd $(HOST_SUBDIR)/bfd && \ | |
f70224b5 PB |
4423 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
4424 | $(TARGET-stage2-bfd) | |
d545f33b PB |
4425 | |
4426 | maybe-clean-stage2-bfd: clean-stage2-bfd | |
4427 | clean-stage2: clean-stage2-bfd | |
4428 | clean-stage2-bfd: | |
4429 | @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] \ | |
4430 | || exit 0 ; \ | |
c52c6897 | 4431 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
4432 | cd $(HOST_SUBDIR)/bfd && \ |
4433 | $(MAKE) $(FLAGS_TO_PASS) \ | |
4434 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
4435 | clean | |
4436 | @endif bfd-bootstrap | |
4437 | ||
4438 | ||
4439 | .PHONY: all-stage3-bfd maybe-all-stage3-bfd | |
4440 | .PHONY: clean-stage3-bfd maybe-clean-stage3-bfd | |
4441 | maybe-all-stage3-bfd: | |
4442 | maybe-clean-stage3-bfd: | |
4443 | @if bfd-bootstrap | |
4444 | maybe-all-stage3-bfd: all-stage3-bfd | |
4445 | all-stage3: all-stage3-bfd | |
f70224b5 | 4446 | TARGET-stage3-bfd = $(TARGET-bfd) |
d545f33b | 4447 | all-stage3-bfd: configure-stage3-bfd |
c52c6897 | 4448 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
4449 | @r=`${PWD_COMMAND}`; export r; \ |
4450 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4451 | $(HOST_EXPORTS) \ | |
4452 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4453 | cd $(HOST_SUBDIR)/bfd && \ | |
f70224b5 PB |
4454 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
4455 | $(TARGET-stage3-bfd) | |
d545f33b PB |
4456 | |
4457 | maybe-clean-stage3-bfd: clean-stage3-bfd | |
4458 | clean-stage3: clean-stage3-bfd | |
4459 | clean-stage3-bfd: | |
4460 | @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] \ | |
4461 | || exit 0 ; \ | |
c52c6897 | 4462 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
4463 | cd $(HOST_SUBDIR)/bfd && \ |
4464 | $(MAKE) $(FLAGS_TO_PASS) \ | |
4465 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
4466 | clean | |
4467 | @endif bfd-bootstrap | |
4468 | ||
4469 | ||
4470 | .PHONY: all-stage4-bfd maybe-all-stage4-bfd | |
4471 | .PHONY: clean-stage4-bfd maybe-clean-stage4-bfd | |
4472 | maybe-all-stage4-bfd: | |
4473 | maybe-clean-stage4-bfd: | |
4474 | @if bfd-bootstrap | |
4475 | maybe-all-stage4-bfd: all-stage4-bfd | |
4476 | all-stage4: all-stage4-bfd | |
f70224b5 | 4477 | TARGET-stage4-bfd = $(TARGET-bfd) |
d545f33b | 4478 | all-stage4-bfd: configure-stage4-bfd |
c52c6897 | 4479 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
4480 | @r=`${PWD_COMMAND}`; export r; \ |
4481 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4482 | $(HOST_EXPORTS) \ | |
4483 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4484 | cd $(HOST_SUBDIR)/bfd && \ | |
f70224b5 PB |
4485 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
4486 | $(TARGET-stage4-bfd) | |
d545f33b PB |
4487 | |
4488 | maybe-clean-stage4-bfd: clean-stage4-bfd | |
4489 | clean-stage4: clean-stage4-bfd | |
4490 | clean-stage4-bfd: | |
4491 | @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] \ | |
4492 | || exit 0 ; \ | |
c52c6897 | 4493 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
4494 | cd $(HOST_SUBDIR)/bfd && \ |
4495 | $(MAKE) $(FLAGS_TO_PASS) \ | |
4496 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
4497 | clean | |
4498 | @endif bfd-bootstrap | |
4499 | ||
4500 | ||
4501 | .PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd | |
4502 | .PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd | |
4503 | maybe-all-stageprofile-bfd: | |
4504 | maybe-clean-stageprofile-bfd: | |
4505 | @if bfd-bootstrap | |
4506 | maybe-all-stageprofile-bfd: all-stageprofile-bfd | |
4507 | all-stageprofile: all-stageprofile-bfd | |
f70224b5 | 4508 | TARGET-stageprofile-bfd = $(TARGET-bfd) |
d545f33b | 4509 | all-stageprofile-bfd: configure-stageprofile-bfd |
c52c6897 | 4510 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
4511 | @r=`${PWD_COMMAND}`; export r; \ |
4512 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4513 | $(HOST_EXPORTS) \ | |
4514 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4515 | cd $(HOST_SUBDIR)/bfd && \ | |
f70224b5 PB |
4516 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
4517 | $(TARGET-stageprofile-bfd) | |
d545f33b PB |
4518 | |
4519 | maybe-clean-stageprofile-bfd: clean-stageprofile-bfd | |
4520 | clean-stageprofile: clean-stageprofile-bfd | |
4521 | clean-stageprofile-bfd: | |
4522 | @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] \ | |
4523 | || exit 0 ; \ | |
c52c6897 | 4524 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
4525 | cd $(HOST_SUBDIR)/bfd && \ |
4526 | $(MAKE) $(FLAGS_TO_PASS) \ | |
4527 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
4528 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
4529 | @endif bfd-bootstrap | |
4530 | ||
4531 | ||
4532 | .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd | |
4533 | .PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd | |
4534 | maybe-all-stagefeedback-bfd: | |
4535 | maybe-clean-stagefeedback-bfd: | |
4536 | @if bfd-bootstrap | |
4537 | maybe-all-stagefeedback-bfd: all-stagefeedback-bfd | |
4538 | all-stagefeedback: all-stagefeedback-bfd | |
f70224b5 | 4539 | TARGET-stagefeedback-bfd = $(TARGET-bfd) |
d545f33b | 4540 | all-stagefeedback-bfd: configure-stagefeedback-bfd |
c52c6897 | 4541 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
4542 | @r=`${PWD_COMMAND}`; export r; \ |
4543 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4544 | $(HOST_EXPORTS) \ | |
4545 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4546 | cd $(HOST_SUBDIR)/bfd && \ | |
f70224b5 PB |
4547 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
4548 | $(TARGET-stagefeedback-bfd) | |
d545f33b PB |
4549 | |
4550 | maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd | |
4551 | clean-stagefeedback: clean-stagefeedback-bfd | |
4552 | clean-stagefeedback-bfd: | |
4553 | @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] \ | |
4554 | || exit 0 ; \ | |
c52c6897 | 4555 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
4556 | cd $(HOST_SUBDIR)/bfd && \ |
4557 | $(MAKE) $(FLAGS_TO_PASS) \ | |
4558 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
4559 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
4560 | @endif bfd-bootstrap | |
4561 | ||
4562 | ||
4563 | ||
4564 | ||
4565 | ||
4fa63067 NN |
4566 | .PHONY: check-bfd maybe-check-bfd |
4567 | maybe-check-bfd: | |
6bd3dfaa PB |
4568 | @if bfd |
4569 | maybe-check-bfd: check-bfd | |
2a4cbe27 | 4570 | |
4fa63067 | 4571 | check-bfd: |
0aed8855 | 4572 | @: $(MAKE); $(unstage) |
4fa63067 | 4573 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 4574 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4575 | $(HOST_EXPORTS) \ |
b00612cc PB |
4576 | (cd $(HOST_SUBDIR)/bfd && \ |
4577 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 4578 | |
6bd3dfaa | 4579 | @endif bfd |
2a4cbe27 | 4580 | |
4fa63067 NN |
4581 | .PHONY: install-bfd maybe-install-bfd |
4582 | maybe-install-bfd: | |
6bd3dfaa PB |
4583 | @if bfd |
4584 | maybe-install-bfd: install-bfd | |
2a4cbe27 | 4585 | |
4fa63067 | 4586 | install-bfd: installdirs |
0aed8855 | 4587 | @: $(MAKE); $(unstage) |
4fa63067 | 4588 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 4589 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 4590 | $(HOST_EXPORTS) \ |
b00612cc | 4591 | (cd $(HOST_SUBDIR)/bfd && \ |
2da12f12 | 4592 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 4593 | |
6bd3dfaa | 4594 | @endif bfd |
2a4cbe27 | 4595 | |
4fa63067 | 4596 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 4597 | |
4fa63067 NN |
4598 | .PHONY: maybe-info-bfd info-bfd |
4599 | maybe-info-bfd: | |
6bd3dfaa PB |
4600 | @if bfd |
4601 | maybe-info-bfd: info-bfd | |
4fa63067 NN |
4602 | |
4603 | info-bfd: \ | |
4604 | configure-bfd | |
4605 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4606 | r=`${PWD_COMMAND}`; export r; \ |
4607 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4608 | $(HOST_EXPORTS) \ |
b813574b | 4609 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4610 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4611 | done; \ | |
4fa63067 | 4612 | echo "Doing info in bfd" ; \ |
b00612cc | 4613 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4614 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4615 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4616 | "RANLIB=$${RANLIB}" \ | |
4617 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4618 | info) \ |
2a4cbe27 NN |
4619 | || exit 1 |
4620 | ||
6bd3dfaa | 4621 | @endif bfd |
2a4cbe27 | 4622 | |
4fa63067 NN |
4623 | .PHONY: maybe-dvi-bfd dvi-bfd |
4624 | maybe-dvi-bfd: | |
6bd3dfaa PB |
4625 | @if bfd |
4626 | maybe-dvi-bfd: dvi-bfd | |
2a4cbe27 | 4627 | |
4fa63067 NN |
4628 | dvi-bfd: \ |
4629 | configure-bfd | |
4630 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4631 | r=`${PWD_COMMAND}`; export r; \ |
4632 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4633 | $(HOST_EXPORTS) \ |
b813574b | 4634 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4635 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4636 | done; \ | |
4fa63067 | 4637 | echo "Doing dvi in bfd" ; \ |
b00612cc | 4638 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4639 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4640 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4641 | "RANLIB=$${RANLIB}" \ | |
4642 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4643 | dvi) \ |
2a4cbe27 NN |
4644 | || exit 1 |
4645 | ||
6bd3dfaa | 4646 | @endif bfd |
2a4cbe27 | 4647 | |
6d389afc MS |
4648 | .PHONY: maybe-html-bfd html-bfd |
4649 | maybe-html-bfd: | |
4650 | @if bfd | |
4651 | maybe-html-bfd: html-bfd | |
4652 | ||
4653 | html-bfd: \ | |
4654 | configure-bfd | |
4655 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
4656 | r=`${PWD_COMMAND}`; export r; \ | |
4657 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
4658 | $(HOST_EXPORTS) \ |
4659 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4660 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4661 | done; \ | |
4662 | echo "Doing html in bfd" ; \ | |
b00612cc | 4663 | (cd $(HOST_SUBDIR)/bfd && \ |
6d389afc MS |
4664 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4665 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4666 | "RANLIB=$${RANLIB}" \ | |
4667 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
4668 | html) \ | |
4669 | || exit 1 | |
4670 | ||
4671 | @endif bfd | |
4672 | ||
4fa63067 NN |
4673 | .PHONY: maybe-TAGS-bfd TAGS-bfd |
4674 | maybe-TAGS-bfd: | |
6bd3dfaa PB |
4675 | @if bfd |
4676 | maybe-TAGS-bfd: TAGS-bfd | |
2a4cbe27 | 4677 | |
4fa63067 NN |
4678 | TAGS-bfd: \ |
4679 | configure-bfd | |
4680 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4681 | r=`${PWD_COMMAND}`; export r; \ |
4682 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4683 | $(HOST_EXPORTS) \ |
b813574b | 4684 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4685 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4686 | done; \ | |
4fa63067 | 4687 | echo "Doing TAGS in bfd" ; \ |
b00612cc | 4688 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4689 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4690 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4691 | "RANLIB=$${RANLIB}" \ | |
4692 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4693 | TAGS) \ |
2a4cbe27 NN |
4694 | || exit 1 |
4695 | ||
6bd3dfaa | 4696 | @endif bfd |
2a4cbe27 | 4697 | |
4fa63067 NN |
4698 | .PHONY: maybe-install-info-bfd install-info-bfd |
4699 | maybe-install-info-bfd: | |
6bd3dfaa PB |
4700 | @if bfd |
4701 | maybe-install-info-bfd: install-info-bfd | |
2a4cbe27 | 4702 | |
4fa63067 NN |
4703 | install-info-bfd: \ |
4704 | configure-bfd \ | |
4705 | info-bfd | |
4706 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4707 | r=`${PWD_COMMAND}`; export r; \ |
4708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4709 | $(HOST_EXPORTS) \ |
b813574b | 4710 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4711 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4712 | done; \ | |
4fa63067 | 4713 | echo "Doing install-info in bfd" ; \ |
b00612cc | 4714 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4717 | "RANLIB=$${RANLIB}" \ | |
4718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4719 | install-info) \ |
2a4cbe27 NN |
4720 | || exit 1 |
4721 | ||
6bd3dfaa | 4722 | @endif bfd |
2a4cbe27 | 4723 | |
108a6f8e CD |
4724 | .PHONY: maybe-install-html-bfd install-html-bfd |
4725 | maybe-install-html-bfd: | |
4726 | @if bfd | |
4727 | maybe-install-html-bfd: install-html-bfd | |
4728 | ||
4729 | install-html-bfd: \ | |
4730 | configure-bfd \ | |
4731 | html-bfd | |
4732 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
4733 | r=`${PWD_COMMAND}`; export r; \ | |
4734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
4735 | $(HOST_EXPORTS) \ | |
4736 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
4737 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
4738 | done; \ | |
4739 | echo "Doing install-html in bfd" ; \ | |
4740 | (cd $(HOST_SUBDIR)/bfd && \ | |
4741 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
4742 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4743 | "RANLIB=$${RANLIB}" \ | |
4744 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
4745 | install-html) \ | |
4746 | || exit 1 | |
4747 | ||
4748 | @endif bfd | |
4749 | ||
4fa63067 NN |
4750 | .PHONY: maybe-installcheck-bfd installcheck-bfd |
4751 | maybe-installcheck-bfd: | |
6bd3dfaa PB |
4752 | @if bfd |
4753 | maybe-installcheck-bfd: installcheck-bfd | |
2a4cbe27 | 4754 | |
4fa63067 NN |
4755 | installcheck-bfd: \ |
4756 | configure-bfd | |
4757 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4758 | r=`${PWD_COMMAND}`; export r; \ |
4759 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4760 | $(HOST_EXPORTS) \ |
b813574b | 4761 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4762 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4763 | done; \ | |
4fa63067 | 4764 | echo "Doing installcheck in bfd" ; \ |
b00612cc | 4765 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4766 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4767 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4768 | "RANLIB=$${RANLIB}" \ | |
4769 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4770 | installcheck) \ |
2a4cbe27 NN |
4771 | || exit 1 |
4772 | ||
6bd3dfaa | 4773 | @endif bfd |
2a4cbe27 | 4774 | |
4fa63067 NN |
4775 | .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd |
4776 | maybe-mostlyclean-bfd: | |
6bd3dfaa PB |
4777 | @if bfd |
4778 | maybe-mostlyclean-bfd: mostlyclean-bfd | |
2a4cbe27 | 4779 | |
4fa63067 NN |
4780 | mostlyclean-bfd: |
4781 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4782 | r=`${PWD_COMMAND}`; export r; \ |
4783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4784 | $(HOST_EXPORTS) \ |
b813574b | 4785 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4786 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4787 | done; \ | |
4fa63067 | 4788 | echo "Doing mostlyclean in bfd" ; \ |
b00612cc | 4789 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4790 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4791 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4792 | "RANLIB=$${RANLIB}" \ | |
4793 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4794 | mostlyclean) \ |
2a4cbe27 NN |
4795 | || exit 1 |
4796 | ||
6bd3dfaa | 4797 | @endif bfd |
2a4cbe27 | 4798 | |
4fa63067 NN |
4799 | .PHONY: maybe-clean-bfd clean-bfd |
4800 | maybe-clean-bfd: | |
6bd3dfaa PB |
4801 | @if bfd |
4802 | maybe-clean-bfd: clean-bfd | |
2a4cbe27 | 4803 | |
4fa63067 NN |
4804 | clean-bfd: |
4805 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4806 | r=`${PWD_COMMAND}`; export r; \ |
4807 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4808 | $(HOST_EXPORTS) \ |
b813574b | 4809 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4810 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4811 | done; \ | |
4fa63067 | 4812 | echo "Doing clean in bfd" ; \ |
b00612cc | 4813 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4814 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4815 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4816 | "RANLIB=$${RANLIB}" \ | |
4817 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4818 | clean) \ |
2a4cbe27 NN |
4819 | || exit 1 |
4820 | ||
6bd3dfaa | 4821 | @endif bfd |
2a4cbe27 | 4822 | |
4fa63067 NN |
4823 | .PHONY: maybe-distclean-bfd distclean-bfd |
4824 | maybe-distclean-bfd: | |
6bd3dfaa PB |
4825 | @if bfd |
4826 | maybe-distclean-bfd: distclean-bfd | |
2a4cbe27 | 4827 | |
4fa63067 NN |
4828 | distclean-bfd: |
4829 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
b40e3958 L |
4830 | r=`${PWD_COMMAND}`; export r; \ |
4831 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4832 | $(HOST_EXPORTS) \ |
b813574b | 4833 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
4834 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4835 | done; \ | |
4fa63067 | 4836 | echo "Doing distclean in bfd" ; \ |
b00612cc | 4837 | (cd $(HOST_SUBDIR)/bfd && \ |
2a4cbe27 NN |
4838 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4839 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4840 | "RANLIB=$${RANLIB}" \ | |
4841 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4842 | distclean) \ |
2a4cbe27 NN |
4843 | || exit 1 |
4844 | ||
6bd3dfaa | 4845 | @endif bfd |
2a4cbe27 | 4846 | |
4fa63067 NN |
4847 | .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd |
4848 | maybe-maintainer-clean-bfd: | |
6bd3dfaa PB |
4849 | @if bfd |
4850 | maybe-maintainer-clean-bfd: maintainer-clean-bfd | |
a2592b1b | 4851 | |
4fa63067 NN |
4852 | maintainer-clean-bfd: |
4853 | @[ -f ./bfd/Makefile ] || exit 0; \ | |
a2592b1b DD |
4854 | r=`${PWD_COMMAND}`; export r; \ |
4855 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 4856 | $(HOST_EXPORTS) \ |
b813574b | 4857 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
4858 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
4859 | done; \ | |
4fa63067 | 4860 | echo "Doing maintainer-clean in bfd" ; \ |
b00612cc | 4861 | (cd $(HOST_SUBDIR)/bfd && \ |
a2592b1b DD |
4862 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4863 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
4864 | "RANLIB=$${RANLIB}" \ | |
4865 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 4866 | maintainer-clean) \ |
a2592b1b DD |
4867 | || exit 1 |
4868 | ||
6bd3dfaa | 4869 | @endif bfd |
a2592b1b | 4870 | |
2a4cbe27 | 4871 | |
a7254363 | 4872 | |
4fa63067 NN |
4873 | .PHONY: configure-opcodes maybe-configure-opcodes |
4874 | maybe-configure-opcodes: | |
6bd3dfaa PB |
4875 | @if opcodes |
4876 | maybe-configure-opcodes: configure-opcodes | |
c52c6897 PB |
4877 | configure-opcodes: |
4878 | @endif opcodes | |
4879 | @if opcodes-bootstrap | |
4880 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
4881 | @endif opcodes-bootstrap | |
4882 | @if opcodes | |
4883 | @r=`${PWD_COMMAND}`; export r; \ | |
4884 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
4885 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
4886 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ | |
378fce5b | 4887 | $(HOST_EXPORTS) \ |
a7254363 PB |
4888 | echo Configuring in $(HOST_SUBDIR)/opcodes; \ |
4889 | cd "$(HOST_SUBDIR)/opcodes" || exit 1; \ | |
4fa63067 | 4890 | case $(srcdir) in \ |
b00612cc PB |
4891 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
4892 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4893 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 4894 | esac; \ |
b00612cc PB |
4895 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ |
4896 | libsrcdir="$$s/opcodes"; \ | |
4fa63067 | 4897 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 4898 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 4899 | || exit 1 |
6bd3dfaa | 4900 | @endif opcodes |
2a4cbe27 | 4901 | |
a7254363 PB |
4902 | |
4903 | ||
d545f33b PB |
4904 | .PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes |
4905 | maybe-configure-stage1-opcodes: | |
4906 | @if opcodes-bootstrap | |
4907 | maybe-configure-stage1-opcodes: configure-stage1-opcodes | |
0aed8855 | 4908 | configure-stage1-opcodes: |
c52c6897 | 4909 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 4910 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes |
c52c6897 PB |
4911 | @r=`${PWD_COMMAND}`; export r; \ |
4912 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4913 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
d545f33b PB |
4914 | $(HOST_EXPORTS) \ |
4915 | echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \ | |
0aed8855 | 4916 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ |
d545f33b PB |
4917 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4918 | case $(srcdir) in \ | |
4919 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4920 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4921 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4922 | esac; \ | |
4923 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ | |
4924 | libsrcdir="$$s/opcodes"; \ | |
4925 | $(SHELL) $${libsrcdir}/configure \ | |
4926 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4927 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
4928 | @endif opcodes-bootstrap | |
4929 | ||
4930 | .PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes | |
4931 | maybe-configure-stage2-opcodes: | |
4932 | @if opcodes-bootstrap | |
4933 | maybe-configure-stage2-opcodes: configure-stage2-opcodes | |
0aed8855 | 4934 | configure-stage2-opcodes: |
c52c6897 | 4935 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 4936 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes |
c52c6897 PB |
4937 | @r=`${PWD_COMMAND}`; export r; \ |
4938 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4939 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
d545f33b PB |
4940 | $(HOST_EXPORTS) \ |
4941 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4942 | echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \ | |
0aed8855 | 4943 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ |
d545f33b PB |
4944 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4945 | case $(srcdir) in \ | |
4946 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4947 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4948 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4949 | esac; \ | |
4950 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ | |
4951 | libsrcdir="$$s/opcodes"; \ | |
4952 | $(SHELL) $${libsrcdir}/configure \ | |
4953 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4954 | @stage2_werror_flag@ | |
4955 | @endif opcodes-bootstrap | |
4956 | ||
4957 | .PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes | |
4958 | maybe-configure-stage3-opcodes: | |
4959 | @if opcodes-bootstrap | |
4960 | maybe-configure-stage3-opcodes: configure-stage3-opcodes | |
0aed8855 | 4961 | configure-stage3-opcodes: |
c52c6897 | 4962 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 4963 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes |
c52c6897 PB |
4964 | @r=`${PWD_COMMAND}`; export r; \ |
4965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4966 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
d545f33b PB |
4967 | $(HOST_EXPORTS) \ |
4968 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4969 | echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \ | |
0aed8855 | 4970 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ |
d545f33b PB |
4971 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4972 | case $(srcdir) in \ | |
4973 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
4974 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
4975 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4976 | esac; \ | |
4977 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ | |
4978 | libsrcdir="$$s/opcodes"; \ | |
4979 | $(SHELL) $${libsrcdir}/configure \ | |
4980 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4981 | @stage2_werror_flag@ | |
4982 | @endif opcodes-bootstrap | |
4983 | ||
4984 | .PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes | |
4985 | maybe-configure-stage4-opcodes: | |
4986 | @if opcodes-bootstrap | |
4987 | maybe-configure-stage4-opcodes: configure-stage4-opcodes | |
0aed8855 | 4988 | configure-stage4-opcodes: |
c52c6897 | 4989 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 4990 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes |
c52c6897 PB |
4991 | @r=`${PWD_COMMAND}`; export r; \ |
4992 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 4993 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
d545f33b PB |
4994 | $(HOST_EXPORTS) \ |
4995 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
4996 | echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \ | |
0aed8855 | 4997 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ |
d545f33b PB |
4998 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
4999 | case $(srcdir) in \ | |
5000 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5001 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
5002 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5003 | esac; \ | |
5004 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ | |
5005 | libsrcdir="$$s/opcodes"; \ | |
5006 | $(SHELL) $${libsrcdir}/configure \ | |
5007 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5008 | @stage2_werror_flag@ | |
5009 | @endif opcodes-bootstrap | |
5010 | ||
5011 | .PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes | |
5012 | maybe-configure-stageprofile-opcodes: | |
5013 | @if opcodes-bootstrap | |
5014 | maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes | |
0aed8855 | 5015 | configure-stageprofile-opcodes: |
c52c6897 | 5016 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 5017 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes |
c52c6897 PB |
5018 | @r=`${PWD_COMMAND}`; export r; \ |
5019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5020 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
d545f33b PB |
5021 | $(HOST_EXPORTS) \ |
5022 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5023 | echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \ | |
0aed8855 | 5024 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ |
d545f33b PB |
5025 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
5026 | case $(srcdir) in \ | |
5027 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5028 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
5029 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5030 | esac; \ | |
5031 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ | |
5032 | libsrcdir="$$s/opcodes"; \ | |
5033 | $(SHELL) $${libsrcdir}/configure \ | |
5034 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5035 | @stage2_werror_flag@ | |
5036 | @endif opcodes-bootstrap | |
5037 | ||
5038 | .PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes | |
5039 | maybe-configure-stagefeedback-opcodes: | |
5040 | @if opcodes-bootstrap | |
5041 | maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes | |
0aed8855 | 5042 | configure-stagefeedback-opcodes: |
c52c6897 | 5043 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 5044 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes |
c52c6897 PB |
5045 | @r=`${PWD_COMMAND}`; export r; \ |
5046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5047 | test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \ |
d545f33b PB |
5048 | $(HOST_EXPORTS) \ |
5049 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5050 | echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \ | |
0aed8855 | 5051 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \ |
d545f33b PB |
5052 | cd $(HOST_SUBDIR)/opcodes || exit 1; \ |
5053 | case $(srcdir) in \ | |
5054 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5055 | *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \ | |
5056 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5057 | esac; \ | |
5058 | srcdiroption="--srcdir=$${topdir}/opcodes"; \ | |
5059 | libsrcdir="$$s/opcodes"; \ | |
5060 | $(SHELL) $${libsrcdir}/configure \ | |
5061 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5062 | @stage2_werror_flag@ | |
5063 | @endif opcodes-bootstrap | |
5064 | ||
5065 | ||
5066 | ||
5067 | ||
5068 | ||
4fa63067 NN |
5069 | .PHONY: all-opcodes maybe-all-opcodes |
5070 | maybe-all-opcodes: | |
6bd3dfaa | 5071 | @if opcodes |
d27cc32e | 5072 | TARGET-opcodes=all |
6bd3dfaa | 5073 | maybe-all-opcodes: all-opcodes |
4fa63067 | 5074 | all-opcodes: configure-opcodes |
c52c6897 PB |
5075 | @endif opcodes |
5076 | @if opcodes-bootstrap | |
5077 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
5078 | @endif opcodes-bootstrap | |
5079 | @if opcodes | |
5080 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 5081 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5082 | $(HOST_EXPORTS) \ |
b00612cc PB |
5083 | (cd $(HOST_SUBDIR)/opcodes && \ |
5084 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-opcodes)) | |
6bd3dfaa | 5085 | @endif opcodes |
2a4cbe27 | 5086 | |
a7254363 | 5087 | |
d545f33b PB |
5088 | |
5089 | .PHONY: all-stage1-opcodes maybe-all-stage1-opcodes | |
5090 | .PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes | |
5091 | maybe-all-stage1-opcodes: | |
5092 | maybe-clean-stage1-opcodes: | |
5093 | @if opcodes-bootstrap | |
5094 | maybe-all-stage1-opcodes: all-stage1-opcodes | |
5095 | all-stage1: all-stage1-opcodes | |
f70224b5 | 5096 | TARGET-stage1-opcodes = $(TARGET-opcodes) |
d545f33b | 5097 | all-stage1-opcodes: configure-stage1-opcodes |
c52c6897 | 5098 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
5099 | @r=`${PWD_COMMAND}`; export r; \ |
5100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5101 | $(HOST_EXPORTS) \ | |
5102 | cd $(HOST_SUBDIR)/opcodes && \ | |
c52c6897 | 5103 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 5104 | $(TARGET-stage1-opcodes) |
d545f33b PB |
5105 | |
5106 | maybe-clean-stage1-opcodes: clean-stage1-opcodes | |
5107 | clean-stage1: clean-stage1-opcodes | |
5108 | clean-stage1-opcodes: | |
5109 | @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] \ | |
5110 | || exit 0 ; \ | |
c52c6897 | 5111 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
5112 | cd $(HOST_SUBDIR)/opcodes && \ |
5113 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 5114 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
5115 | @endif opcodes-bootstrap |
5116 | ||
5117 | ||
5118 | .PHONY: all-stage2-opcodes maybe-all-stage2-opcodes | |
5119 | .PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes | |
5120 | maybe-all-stage2-opcodes: | |
5121 | maybe-clean-stage2-opcodes: | |
5122 | @if opcodes-bootstrap | |
5123 | maybe-all-stage2-opcodes: all-stage2-opcodes | |
5124 | all-stage2: all-stage2-opcodes | |
f70224b5 | 5125 | TARGET-stage2-opcodes = $(TARGET-opcodes) |
d545f33b | 5126 | all-stage2-opcodes: configure-stage2-opcodes |
c52c6897 | 5127 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
5128 | @r=`${PWD_COMMAND}`; export r; \ |
5129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5130 | $(HOST_EXPORTS) \ | |
5131 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5132 | cd $(HOST_SUBDIR)/opcodes && \ | |
f70224b5 PB |
5133 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
5134 | $(TARGET-stage2-opcodes) | |
d545f33b PB |
5135 | |
5136 | maybe-clean-stage2-opcodes: clean-stage2-opcodes | |
5137 | clean-stage2: clean-stage2-opcodes | |
5138 | clean-stage2-opcodes: | |
5139 | @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] \ | |
5140 | || exit 0 ; \ | |
c52c6897 | 5141 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
5142 | cd $(HOST_SUBDIR)/opcodes && \ |
5143 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5144 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5145 | clean | |
5146 | @endif opcodes-bootstrap | |
5147 | ||
5148 | ||
5149 | .PHONY: all-stage3-opcodes maybe-all-stage3-opcodes | |
5150 | .PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes | |
5151 | maybe-all-stage3-opcodes: | |
5152 | maybe-clean-stage3-opcodes: | |
5153 | @if opcodes-bootstrap | |
5154 | maybe-all-stage3-opcodes: all-stage3-opcodes | |
5155 | all-stage3: all-stage3-opcodes | |
f70224b5 | 5156 | TARGET-stage3-opcodes = $(TARGET-opcodes) |
d545f33b | 5157 | all-stage3-opcodes: configure-stage3-opcodes |
c52c6897 | 5158 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
5159 | @r=`${PWD_COMMAND}`; export r; \ |
5160 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5161 | $(HOST_EXPORTS) \ | |
5162 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5163 | cd $(HOST_SUBDIR)/opcodes && \ | |
f70224b5 PB |
5164 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
5165 | $(TARGET-stage3-opcodes) | |
d545f33b PB |
5166 | |
5167 | maybe-clean-stage3-opcodes: clean-stage3-opcodes | |
5168 | clean-stage3: clean-stage3-opcodes | |
5169 | clean-stage3-opcodes: | |
5170 | @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] \ | |
5171 | || exit 0 ; \ | |
c52c6897 | 5172 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
5173 | cd $(HOST_SUBDIR)/opcodes && \ |
5174 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5175 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5176 | clean | |
5177 | @endif opcodes-bootstrap | |
5178 | ||
5179 | ||
5180 | .PHONY: all-stage4-opcodes maybe-all-stage4-opcodes | |
5181 | .PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes | |
5182 | maybe-all-stage4-opcodes: | |
5183 | maybe-clean-stage4-opcodes: | |
5184 | @if opcodes-bootstrap | |
5185 | maybe-all-stage4-opcodes: all-stage4-opcodes | |
5186 | all-stage4: all-stage4-opcodes | |
f70224b5 | 5187 | TARGET-stage4-opcodes = $(TARGET-opcodes) |
d545f33b | 5188 | all-stage4-opcodes: configure-stage4-opcodes |
c52c6897 | 5189 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
5190 | @r=`${PWD_COMMAND}`; export r; \ |
5191 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5192 | $(HOST_EXPORTS) \ | |
5193 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5194 | cd $(HOST_SUBDIR)/opcodes && \ | |
f70224b5 PB |
5195 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
5196 | $(TARGET-stage4-opcodes) | |
d545f33b PB |
5197 | |
5198 | maybe-clean-stage4-opcodes: clean-stage4-opcodes | |
5199 | clean-stage4: clean-stage4-opcodes | |
5200 | clean-stage4-opcodes: | |
5201 | @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] \ | |
5202 | || exit 0 ; \ | |
c52c6897 | 5203 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
5204 | cd $(HOST_SUBDIR)/opcodes && \ |
5205 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5206 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5207 | clean | |
5208 | @endif opcodes-bootstrap | |
5209 | ||
5210 | ||
5211 | .PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes | |
5212 | .PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes | |
5213 | maybe-all-stageprofile-opcodes: | |
5214 | maybe-clean-stageprofile-opcodes: | |
5215 | @if opcodes-bootstrap | |
5216 | maybe-all-stageprofile-opcodes: all-stageprofile-opcodes | |
5217 | all-stageprofile: all-stageprofile-opcodes | |
f70224b5 | 5218 | TARGET-stageprofile-opcodes = $(TARGET-opcodes) |
d545f33b | 5219 | all-stageprofile-opcodes: configure-stageprofile-opcodes |
c52c6897 | 5220 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
5221 | @r=`${PWD_COMMAND}`; export r; \ |
5222 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5223 | $(HOST_EXPORTS) \ | |
5224 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5225 | cd $(HOST_SUBDIR)/opcodes && \ | |
f70224b5 PB |
5226 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
5227 | $(TARGET-stageprofile-opcodes) | |
d545f33b PB |
5228 | |
5229 | maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes | |
5230 | clean-stageprofile: clean-stageprofile-opcodes | |
5231 | clean-stageprofile-opcodes: | |
5232 | @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] \ | |
5233 | || exit 0 ; \ | |
c52c6897 | 5234 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
5235 | cd $(HOST_SUBDIR)/opcodes && \ |
5236 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5237 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5238 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
5239 | @endif opcodes-bootstrap | |
5240 | ||
5241 | ||
5242 | .PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes | |
5243 | .PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes | |
5244 | maybe-all-stagefeedback-opcodes: | |
5245 | maybe-clean-stagefeedback-opcodes: | |
5246 | @if opcodes-bootstrap | |
5247 | maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes | |
5248 | all-stagefeedback: all-stagefeedback-opcodes | |
f70224b5 | 5249 | TARGET-stagefeedback-opcodes = $(TARGET-opcodes) |
d545f33b | 5250 | all-stagefeedback-opcodes: configure-stagefeedback-opcodes |
c52c6897 | 5251 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
5252 | @r=`${PWD_COMMAND}`; export r; \ |
5253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5254 | $(HOST_EXPORTS) \ | |
5255 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5256 | cd $(HOST_SUBDIR)/opcodes && \ | |
f70224b5 PB |
5257 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
5258 | $(TARGET-stagefeedback-opcodes) | |
d545f33b PB |
5259 | |
5260 | maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes | |
5261 | clean-stagefeedback: clean-stagefeedback-opcodes | |
5262 | clean-stagefeedback-opcodes: | |
5263 | @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] \ | |
5264 | || exit 0 ; \ | |
c52c6897 | 5265 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
5266 | cd $(HOST_SUBDIR)/opcodes && \ |
5267 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5268 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5269 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
5270 | @endif opcodes-bootstrap | |
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
4fa63067 NN |
5276 | .PHONY: check-opcodes maybe-check-opcodes |
5277 | maybe-check-opcodes: | |
6bd3dfaa PB |
5278 | @if opcodes |
5279 | maybe-check-opcodes: check-opcodes | |
4fa63067 NN |
5280 | |
5281 | check-opcodes: | |
0aed8855 | 5282 | @: $(MAKE); $(unstage) |
4fa63067 | 5283 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 5284 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5285 | $(HOST_EXPORTS) \ |
b00612cc PB |
5286 | (cd $(HOST_SUBDIR)/opcodes && \ |
5287 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 5288 | |
6bd3dfaa | 5289 | @endif opcodes |
2a4cbe27 | 5290 | |
4fa63067 NN |
5291 | .PHONY: install-opcodes maybe-install-opcodes |
5292 | maybe-install-opcodes: | |
6bd3dfaa PB |
5293 | @if opcodes |
5294 | maybe-install-opcodes: install-opcodes | |
2a4cbe27 | 5295 | |
4fa63067 | 5296 | install-opcodes: installdirs |
0aed8855 | 5297 | @: $(MAKE); $(unstage) |
4fa63067 NN |
5298 | @r=`${PWD_COMMAND}`; export r; \ |
5299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5300 | $(HOST_EXPORTS) \ |
b00612cc | 5301 | (cd $(HOST_SUBDIR)/opcodes && \ |
2da12f12 | 5302 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 5303 | |
6bd3dfaa | 5304 | @endif opcodes |
4fa63067 NN |
5305 | |
5306 | # Other targets (info, dvi, etc.) | |
5307 | ||
5308 | .PHONY: maybe-info-opcodes info-opcodes | |
5309 | maybe-info-opcodes: | |
6bd3dfaa PB |
5310 | @if opcodes |
5311 | maybe-info-opcodes: info-opcodes | |
4fa63067 NN |
5312 | |
5313 | info-opcodes: \ | |
5314 | configure-opcodes | |
5315 | @[ -f ./opcodes/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 info in opcodes" ; \ |
b00612cc | 5323 | (cd $(HOST_SUBDIR)/opcodes && \ |
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 | info) \ |
2a4cbe27 NN |
5329 | || exit 1 |
5330 | ||
6bd3dfaa | 5331 | @endif opcodes |
2a4cbe27 | 5332 | |
4fa63067 NN |
5333 | .PHONY: maybe-dvi-opcodes dvi-opcodes |
5334 | maybe-dvi-opcodes: | |
6bd3dfaa PB |
5335 | @if opcodes |
5336 | maybe-dvi-opcodes: dvi-opcodes | |
2a4cbe27 | 5337 | |
4fa63067 NN |
5338 | dvi-opcodes: \ |
5339 | configure-opcodes | |
5340 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5341 | r=`${PWD_COMMAND}`; export r; \ |
5342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5343 | $(HOST_EXPORTS) \ |
b813574b | 5344 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5345 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5346 | done; \ | |
4fa63067 | 5347 | echo "Doing dvi in opcodes" ; \ |
b00612cc | 5348 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5349 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5350 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5351 | "RANLIB=$${RANLIB}" \ | |
5352 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5353 | dvi) \ |
2a4cbe27 NN |
5354 | || exit 1 |
5355 | ||
6bd3dfaa | 5356 | @endif opcodes |
2a4cbe27 | 5357 | |
6d389afc MS |
5358 | .PHONY: maybe-html-opcodes html-opcodes |
5359 | maybe-html-opcodes: | |
5360 | @if opcodes | |
5361 | maybe-html-opcodes: html-opcodes | |
5362 | ||
5363 | html-opcodes: \ | |
5364 | configure-opcodes | |
5365 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
5366 | r=`${PWD_COMMAND}`; export r; \ | |
5367 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
5368 | $(HOST_EXPORTS) \ |
5369 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5370 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5371 | done; \ | |
5372 | echo "Doing html in opcodes" ; \ | |
b00612cc | 5373 | (cd $(HOST_SUBDIR)/opcodes && \ |
6d389afc MS |
5374 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5375 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5376 | "RANLIB=$${RANLIB}" \ | |
5377 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
5378 | html) \ | |
5379 | || exit 1 | |
5380 | ||
5381 | @endif opcodes | |
5382 | ||
4fa63067 NN |
5383 | .PHONY: maybe-TAGS-opcodes TAGS-opcodes |
5384 | maybe-TAGS-opcodes: | |
6bd3dfaa PB |
5385 | @if opcodes |
5386 | maybe-TAGS-opcodes: TAGS-opcodes | |
2a4cbe27 | 5387 | |
4fa63067 NN |
5388 | TAGS-opcodes: \ |
5389 | configure-opcodes | |
5390 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5391 | r=`${PWD_COMMAND}`; export r; \ |
5392 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5393 | $(HOST_EXPORTS) \ |
b813574b | 5394 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5395 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5396 | done; \ | |
4fa63067 | 5397 | echo "Doing TAGS in opcodes" ; \ |
b00612cc | 5398 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5399 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5400 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5401 | "RANLIB=$${RANLIB}" \ | |
5402 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5403 | TAGS) \ |
2a4cbe27 NN |
5404 | || exit 1 |
5405 | ||
6bd3dfaa | 5406 | @endif opcodes |
2a4cbe27 | 5407 | |
4fa63067 NN |
5408 | .PHONY: maybe-install-info-opcodes install-info-opcodes |
5409 | maybe-install-info-opcodes: | |
6bd3dfaa PB |
5410 | @if opcodes |
5411 | maybe-install-info-opcodes: install-info-opcodes | |
2a4cbe27 | 5412 | |
4fa63067 NN |
5413 | install-info-opcodes: \ |
5414 | configure-opcodes \ | |
5415 | info-opcodes | |
5416 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5417 | r=`${PWD_COMMAND}`; export r; \ |
5418 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5419 | $(HOST_EXPORTS) \ |
b813574b | 5420 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5421 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5422 | done; \ | |
4fa63067 | 5423 | echo "Doing install-info in opcodes" ; \ |
b00612cc | 5424 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5425 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5426 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5427 | "RANLIB=$${RANLIB}" \ | |
5428 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5429 | install-info) \ |
2a4cbe27 NN |
5430 | || exit 1 |
5431 | ||
6bd3dfaa | 5432 | @endif opcodes |
2a4cbe27 | 5433 | |
108a6f8e CD |
5434 | .PHONY: maybe-install-html-opcodes install-html-opcodes |
5435 | maybe-install-html-opcodes: | |
5436 | @if opcodes | |
5437 | maybe-install-html-opcodes: install-html-opcodes | |
5438 | ||
5439 | install-html-opcodes: \ | |
5440 | configure-opcodes \ | |
5441 | html-opcodes | |
5442 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
5443 | r=`${PWD_COMMAND}`; export r; \ | |
5444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5445 | $(HOST_EXPORTS) \ | |
5446 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
5447 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
5448 | done; \ | |
5449 | echo "Doing install-html in opcodes" ; \ | |
5450 | (cd $(HOST_SUBDIR)/opcodes && \ | |
5451 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
5452 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5453 | "RANLIB=$${RANLIB}" \ | |
5454 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
5455 | install-html) \ | |
5456 | || exit 1 | |
5457 | ||
5458 | @endif opcodes | |
5459 | ||
4fa63067 NN |
5460 | .PHONY: maybe-installcheck-opcodes installcheck-opcodes |
5461 | maybe-installcheck-opcodes: | |
6bd3dfaa PB |
5462 | @if opcodes |
5463 | maybe-installcheck-opcodes: installcheck-opcodes | |
2a4cbe27 | 5464 | |
4fa63067 NN |
5465 | installcheck-opcodes: \ |
5466 | configure-opcodes | |
5467 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5468 | r=`${PWD_COMMAND}`; export r; \ |
5469 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5470 | $(HOST_EXPORTS) \ |
b813574b | 5471 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5472 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5473 | done; \ | |
4fa63067 | 5474 | echo "Doing installcheck in opcodes" ; \ |
b00612cc | 5475 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5476 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5477 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5478 | "RANLIB=$${RANLIB}" \ | |
5479 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5480 | installcheck) \ |
2a4cbe27 NN |
5481 | || exit 1 |
5482 | ||
6bd3dfaa | 5483 | @endif opcodes |
2a4cbe27 NN |
5484 | |
5485 | .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes | |
5486 | maybe-mostlyclean-opcodes: | |
6bd3dfaa PB |
5487 | @if opcodes |
5488 | maybe-mostlyclean-opcodes: mostlyclean-opcodes | |
2a4cbe27 NN |
5489 | |
5490 | mostlyclean-opcodes: | |
5491 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5492 | r=`${PWD_COMMAND}`; export r; \ |
5493 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5494 | $(HOST_EXPORTS) \ |
b813574b | 5495 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5496 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5497 | done; \ | |
5498 | echo "Doing mostlyclean in opcodes" ; \ | |
b00612cc | 5499 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5500 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5501 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5502 | "RANLIB=$${RANLIB}" \ | |
5503 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5504 | mostlyclean) \ |
2a4cbe27 NN |
5505 | || exit 1 |
5506 | ||
6bd3dfaa | 5507 | @endif opcodes |
2a4cbe27 | 5508 | |
4fa63067 NN |
5509 | .PHONY: maybe-clean-opcodes clean-opcodes |
5510 | maybe-clean-opcodes: | |
6bd3dfaa PB |
5511 | @if opcodes |
5512 | maybe-clean-opcodes: clean-opcodes | |
2a4cbe27 | 5513 | |
4fa63067 NN |
5514 | clean-opcodes: |
5515 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5516 | r=`${PWD_COMMAND}`; export r; \ |
5517 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5518 | $(HOST_EXPORTS) \ |
b813574b | 5519 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5520 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5521 | done; \ | |
4fa63067 | 5522 | echo "Doing clean in opcodes" ; \ |
b00612cc | 5523 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5524 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5525 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5526 | "RANLIB=$${RANLIB}" \ | |
5527 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5528 | clean) \ |
2a4cbe27 NN |
5529 | || exit 1 |
5530 | ||
6bd3dfaa | 5531 | @endif opcodes |
2a4cbe27 | 5532 | |
4fa63067 NN |
5533 | .PHONY: maybe-distclean-opcodes distclean-opcodes |
5534 | maybe-distclean-opcodes: | |
6bd3dfaa PB |
5535 | @if opcodes |
5536 | maybe-distclean-opcodes: distclean-opcodes | |
2a4cbe27 | 5537 | |
4fa63067 NN |
5538 | distclean-opcodes: |
5539 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5540 | r=`${PWD_COMMAND}`; export r; \ |
5541 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5542 | $(HOST_EXPORTS) \ |
b813574b | 5543 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5544 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5545 | done; \ | |
4fa63067 | 5546 | echo "Doing distclean in opcodes" ; \ |
b00612cc | 5547 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5548 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5549 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5550 | "RANLIB=$${RANLIB}" \ | |
5551 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5552 | distclean) \ |
2a4cbe27 NN |
5553 | || exit 1 |
5554 | ||
6bd3dfaa | 5555 | @endif opcodes |
2a4cbe27 | 5556 | |
4fa63067 NN |
5557 | .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes |
5558 | maybe-maintainer-clean-opcodes: | |
6bd3dfaa PB |
5559 | @if opcodes |
5560 | maybe-maintainer-clean-opcodes: maintainer-clean-opcodes | |
2a4cbe27 | 5561 | |
4fa63067 NN |
5562 | maintainer-clean-opcodes: |
5563 | @[ -f ./opcodes/Makefile ] || exit 0; \ | |
b40e3958 L |
5564 | r=`${PWD_COMMAND}`; export r; \ |
5565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5566 | $(HOST_EXPORTS) \ |
b813574b | 5567 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
5568 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
5569 | done; \ | |
4fa63067 | 5570 | echo "Doing maintainer-clean in opcodes" ; \ |
b00612cc | 5571 | (cd $(HOST_SUBDIR)/opcodes && \ |
2a4cbe27 NN |
5572 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
5573 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
5574 | "RANLIB=$${RANLIB}" \ | |
5575 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 5576 | maintainer-clean) \ |
2a4cbe27 NN |
5577 | || exit 1 |
5578 | ||
6bd3dfaa | 5579 | @endif opcodes |
2a4cbe27 | 5580 | |
2a4cbe27 | 5581 | |
a7254363 | 5582 | |
4fa63067 NN |
5583 | .PHONY: configure-binutils maybe-configure-binutils |
5584 | maybe-configure-binutils: | |
6bd3dfaa PB |
5585 | @if binutils |
5586 | maybe-configure-binutils: configure-binutils | |
c52c6897 PB |
5587 | configure-binutils: |
5588 | @endif binutils | |
5589 | @if binutils-bootstrap | |
5590 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
5591 | @endif binutils-bootstrap | |
5592 | @if binutils | |
5593 | @r=`${PWD_COMMAND}`; export r; \ | |
5594 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
5595 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
5596 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ | |
378fce5b | 5597 | $(HOST_EXPORTS) \ |
a7254363 PB |
5598 | echo Configuring in $(HOST_SUBDIR)/binutils; \ |
5599 | cd "$(HOST_SUBDIR)/binutils" || exit 1; \ | |
4fa63067 | 5600 | case $(srcdir) in \ |
b00612cc PB |
5601 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
5602 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5603 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 5604 | esac; \ |
b00612cc PB |
5605 | srcdiroption="--srcdir=$${topdir}/binutils"; \ |
5606 | libsrcdir="$$s/binutils"; \ | |
4fa63067 | 5607 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 5608 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 5609 | || exit 1 |
6bd3dfaa | 5610 | @endif binutils |
2a4cbe27 | 5611 | |
a7254363 PB |
5612 | |
5613 | ||
d545f33b PB |
5614 | .PHONY: configure-stage1-binutils maybe-configure-stage1-binutils |
5615 | maybe-configure-stage1-binutils: | |
5616 | @if binutils-bootstrap | |
5617 | maybe-configure-stage1-binutils: configure-stage1-binutils | |
0aed8855 | 5618 | configure-stage1-binutils: |
c52c6897 | 5619 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 5620 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5621 | @r=`${PWD_COMMAND}`; export r; \ |
5622 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5623 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b PB |
5624 | $(HOST_EXPORTS) \ |
5625 | echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \ | |
0aed8855 | 5626 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ |
d545f33b PB |
5627 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
5628 | case $(srcdir) in \ | |
5629 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5630 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5631 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5632 | esac; \ | |
5633 | srcdiroption="--srcdir=$${topdir}/binutils"; \ | |
5634 | libsrcdir="$$s/binutils"; \ | |
5635 | $(SHELL) $${libsrcdir}/configure \ | |
5636 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5637 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
5638 | @endif binutils-bootstrap | |
5639 | ||
5640 | .PHONY: configure-stage2-binutils maybe-configure-stage2-binutils | |
5641 | maybe-configure-stage2-binutils: | |
5642 | @if binutils-bootstrap | |
5643 | maybe-configure-stage2-binutils: configure-stage2-binutils | |
0aed8855 | 5644 | configure-stage2-binutils: |
c52c6897 | 5645 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 5646 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5647 | @r=`${PWD_COMMAND}`; export r; \ |
5648 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5649 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b PB |
5650 | $(HOST_EXPORTS) \ |
5651 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5652 | echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \ | |
0aed8855 | 5653 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ |
d545f33b PB |
5654 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
5655 | case $(srcdir) in \ | |
5656 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5657 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5658 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5659 | esac; \ | |
5660 | srcdiroption="--srcdir=$${topdir}/binutils"; \ | |
5661 | libsrcdir="$$s/binutils"; \ | |
5662 | $(SHELL) $${libsrcdir}/configure \ | |
5663 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5664 | @stage2_werror_flag@ | |
5665 | @endif binutils-bootstrap | |
5666 | ||
5667 | .PHONY: configure-stage3-binutils maybe-configure-stage3-binutils | |
5668 | maybe-configure-stage3-binutils: | |
5669 | @if binutils-bootstrap | |
5670 | maybe-configure-stage3-binutils: configure-stage3-binutils | |
0aed8855 | 5671 | configure-stage3-binutils: |
c52c6897 | 5672 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 5673 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5674 | @r=`${PWD_COMMAND}`; export r; \ |
5675 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5676 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b PB |
5677 | $(HOST_EXPORTS) \ |
5678 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5679 | echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \ | |
0aed8855 | 5680 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ |
d545f33b PB |
5681 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
5682 | case $(srcdir) in \ | |
5683 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5684 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5685 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5686 | esac; \ | |
5687 | srcdiroption="--srcdir=$${topdir}/binutils"; \ | |
5688 | libsrcdir="$$s/binutils"; \ | |
5689 | $(SHELL) $${libsrcdir}/configure \ | |
5690 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5691 | @stage2_werror_flag@ | |
5692 | @endif binutils-bootstrap | |
5693 | ||
5694 | .PHONY: configure-stage4-binutils maybe-configure-stage4-binutils | |
5695 | maybe-configure-stage4-binutils: | |
5696 | @if binutils-bootstrap | |
5697 | maybe-configure-stage4-binutils: configure-stage4-binutils | |
0aed8855 | 5698 | configure-stage4-binutils: |
c52c6897 | 5699 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 5700 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5701 | @r=`${PWD_COMMAND}`; export r; \ |
5702 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5703 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b PB |
5704 | $(HOST_EXPORTS) \ |
5705 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5706 | echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \ | |
0aed8855 | 5707 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ |
d545f33b PB |
5708 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
5709 | case $(srcdir) in \ | |
5710 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5711 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5712 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5713 | esac; \ | |
5714 | srcdiroption="--srcdir=$${topdir}/binutils"; \ | |
5715 | libsrcdir="$$s/binutils"; \ | |
5716 | $(SHELL) $${libsrcdir}/configure \ | |
5717 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5718 | @stage2_werror_flag@ | |
5719 | @endif binutils-bootstrap | |
5720 | ||
5721 | .PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils | |
5722 | maybe-configure-stageprofile-binutils: | |
5723 | @if binutils-bootstrap | |
5724 | maybe-configure-stageprofile-binutils: configure-stageprofile-binutils | |
0aed8855 | 5725 | configure-stageprofile-binutils: |
c52c6897 | 5726 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 5727 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5728 | @r=`${PWD_COMMAND}`; export r; \ |
5729 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5730 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b PB |
5731 | $(HOST_EXPORTS) \ |
5732 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5733 | echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \ | |
0aed8855 | 5734 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ |
d545f33b PB |
5735 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
5736 | case $(srcdir) in \ | |
5737 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5738 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5739 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5740 | esac; \ | |
5741 | srcdiroption="--srcdir=$${topdir}/binutils"; \ | |
5742 | libsrcdir="$$s/binutils"; \ | |
5743 | $(SHELL) $${libsrcdir}/configure \ | |
5744 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5745 | @stage2_werror_flag@ | |
5746 | @endif binutils-bootstrap | |
5747 | ||
5748 | .PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils | |
5749 | maybe-configure-stagefeedback-binutils: | |
5750 | @if binutils-bootstrap | |
5751 | maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils | |
0aed8855 | 5752 | configure-stagefeedback-binutils: |
c52c6897 | 5753 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 5754 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils |
c52c6897 PB |
5755 | @r=`${PWD_COMMAND}`; export r; \ |
5756 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 5757 | test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \ |
d545f33b PB |
5758 | $(HOST_EXPORTS) \ |
5759 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5760 | echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \ | |
0aed8855 | 5761 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \ |
d545f33b PB |
5762 | cd $(HOST_SUBDIR)/binutils || exit 1; \ |
5763 | case $(srcdir) in \ | |
5764 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
5765 | *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \ | |
5766 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
5767 | esac; \ | |
5768 | srcdiroption="--srcdir=$${topdir}/binutils"; \ | |
5769 | libsrcdir="$$s/binutils"; \ | |
5770 | $(SHELL) $${libsrcdir}/configure \ | |
5771 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5772 | @stage2_werror_flag@ | |
5773 | @endif binutils-bootstrap | |
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | ||
4fa63067 NN |
5779 | .PHONY: all-binutils maybe-all-binutils |
5780 | maybe-all-binutils: | |
6bd3dfaa | 5781 | @if binutils |
d27cc32e | 5782 | TARGET-binutils=all |
6bd3dfaa | 5783 | maybe-all-binutils: all-binutils |
4fa63067 | 5784 | all-binutils: configure-binutils |
c52c6897 PB |
5785 | @endif binutils |
5786 | @if binutils-bootstrap | |
5787 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
5788 | @endif binutils-bootstrap | |
5789 | @if binutils | |
5790 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 5791 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5792 | $(HOST_EXPORTS) \ |
b00612cc PB |
5793 | (cd $(HOST_SUBDIR)/binutils && \ |
5794 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-binutils)) | |
6bd3dfaa | 5795 | @endif binutils |
4fa63067 | 5796 | |
a7254363 | 5797 | |
4fa63067 | 5798 | |
d545f33b PB |
5799 | .PHONY: all-stage1-binutils maybe-all-stage1-binutils |
5800 | .PHONY: clean-stage1-binutils maybe-clean-stage1-binutils | |
5801 | maybe-all-stage1-binutils: | |
5802 | maybe-clean-stage1-binutils: | |
5803 | @if binutils-bootstrap | |
5804 | maybe-all-stage1-binutils: all-stage1-binutils | |
5805 | all-stage1: all-stage1-binutils | |
f70224b5 | 5806 | TARGET-stage1-binutils = $(TARGET-binutils) |
d545f33b | 5807 | all-stage1-binutils: configure-stage1-binutils |
c52c6897 | 5808 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
4fa63067 NN |
5809 | @r=`${PWD_COMMAND}`; export r; \ |
5810 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 5811 | $(HOST_EXPORTS) \ |
d545f33b | 5812 | cd $(HOST_SUBDIR)/binutils && \ |
c52c6897 | 5813 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 5814 | $(TARGET-stage1-binutils) |
2a4cbe27 | 5815 | |
d545f33b PB |
5816 | maybe-clean-stage1-binutils: clean-stage1-binutils |
5817 | clean-stage1: clean-stage1-binutils | |
5818 | clean-stage1-binutils: | |
5819 | @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] \ | |
5820 | || exit 0 ; \ | |
c52c6897 | 5821 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
5822 | cd $(HOST_SUBDIR)/binutils && \ |
5823 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 5824 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b | 5825 | @endif binutils-bootstrap |
2a4cbe27 | 5826 | |
2a4cbe27 | 5827 | |
d545f33b PB |
5828 | .PHONY: all-stage2-binutils maybe-all-stage2-binutils |
5829 | .PHONY: clean-stage2-binutils maybe-clean-stage2-binutils | |
5830 | maybe-all-stage2-binutils: | |
5831 | maybe-clean-stage2-binutils: | |
5832 | @if binutils-bootstrap | |
5833 | maybe-all-stage2-binutils: all-stage2-binutils | |
5834 | all-stage2: all-stage2-binutils | |
f70224b5 | 5835 | TARGET-stage2-binutils = $(TARGET-binutils) |
d545f33b | 5836 | all-stage2-binutils: configure-stage2-binutils |
c52c6897 | 5837 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
4fa63067 | 5838 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 5839 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5840 | $(HOST_EXPORTS) \ |
d545f33b PB |
5841 | $(POSTSTAGE1_HOST_EXPORTS) \ |
5842 | cd $(HOST_SUBDIR)/binutils && \ | |
f70224b5 PB |
5843 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
5844 | $(TARGET-stage2-binutils) | |
2a4cbe27 | 5845 | |
d545f33b PB |
5846 | maybe-clean-stage2-binutils: clean-stage2-binutils |
5847 | clean-stage2: clean-stage2-binutils | |
5848 | clean-stage2-binutils: | |
5849 | @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] \ | |
5850 | || exit 0 ; \ | |
c52c6897 | 5851 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
5852 | cd $(HOST_SUBDIR)/binutils && \ |
5853 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5854 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5855 | clean | |
5856 | @endif binutils-bootstrap | |
2a4cbe27 | 5857 | |
4fa63067 | 5858 | |
d545f33b PB |
5859 | .PHONY: all-stage3-binutils maybe-all-stage3-binutils |
5860 | .PHONY: clean-stage3-binutils maybe-clean-stage3-binutils | |
5861 | maybe-all-stage3-binutils: | |
5862 | maybe-clean-stage3-binutils: | |
5863 | @if binutils-bootstrap | |
5864 | maybe-all-stage3-binutils: all-stage3-binutils | |
5865 | all-stage3: all-stage3-binutils | |
f70224b5 | 5866 | TARGET-stage3-binutils = $(TARGET-binutils) |
d545f33b | 5867 | all-stage3-binutils: configure-stage3-binutils |
c52c6897 | 5868 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b | 5869 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 5870 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5871 | $(HOST_EXPORTS) \ |
d545f33b PB |
5872 | $(POSTSTAGE1_HOST_EXPORTS) \ |
5873 | cd $(HOST_SUBDIR)/binutils && \ | |
f70224b5 PB |
5874 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
5875 | $(TARGET-stage3-binutils) | |
2a4cbe27 | 5876 | |
d545f33b PB |
5877 | maybe-clean-stage3-binutils: clean-stage3-binutils |
5878 | clean-stage3: clean-stage3-binutils | |
5879 | clean-stage3-binutils: | |
5880 | @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] \ | |
5881 | || exit 0 ; \ | |
c52c6897 | 5882 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
5883 | cd $(HOST_SUBDIR)/binutils && \ |
5884 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5885 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5886 | clean | |
5887 | @endif binutils-bootstrap | |
2a4cbe27 | 5888 | |
2a4cbe27 | 5889 | |
d545f33b PB |
5890 | .PHONY: all-stage4-binutils maybe-all-stage4-binutils |
5891 | .PHONY: clean-stage4-binutils maybe-clean-stage4-binutils | |
5892 | maybe-all-stage4-binutils: | |
5893 | maybe-clean-stage4-binutils: | |
5894 | @if binutils-bootstrap | |
5895 | maybe-all-stage4-binutils: all-stage4-binutils | |
5896 | all-stage4: all-stage4-binutils | |
f70224b5 | 5897 | TARGET-stage4-binutils = $(TARGET-binutils) |
d545f33b | 5898 | all-stage4-binutils: configure-stage4-binutils |
c52c6897 | 5899 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b | 5900 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 5901 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 5902 | $(HOST_EXPORTS) \ |
d545f33b PB |
5903 | $(POSTSTAGE1_HOST_EXPORTS) \ |
5904 | cd $(HOST_SUBDIR)/binutils && \ | |
f70224b5 PB |
5905 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
5906 | $(TARGET-stage4-binutils) | |
d545f33b PB |
5907 | |
5908 | maybe-clean-stage4-binutils: clean-stage4-binutils | |
5909 | clean-stage4: clean-stage4-binutils | |
5910 | clean-stage4-binutils: | |
5911 | @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] \ | |
5912 | || exit 0 ; \ | |
c52c6897 | 5913 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
5914 | cd $(HOST_SUBDIR)/binutils && \ |
5915 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5916 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5917 | clean | |
5918 | @endif binutils-bootstrap | |
5919 | ||
5920 | ||
5921 | .PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils | |
5922 | .PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils | |
5923 | maybe-all-stageprofile-binutils: | |
5924 | maybe-clean-stageprofile-binutils: | |
5925 | @if binutils-bootstrap | |
5926 | maybe-all-stageprofile-binutils: all-stageprofile-binutils | |
5927 | all-stageprofile: all-stageprofile-binutils | |
f70224b5 | 5928 | TARGET-stageprofile-binutils = $(TARGET-binutils) |
d545f33b | 5929 | all-stageprofile-binutils: configure-stageprofile-binutils |
c52c6897 | 5930 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
5931 | @r=`${PWD_COMMAND}`; export r; \ |
5932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5933 | $(HOST_EXPORTS) \ | |
5934 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5935 | cd $(HOST_SUBDIR)/binutils && \ | |
f70224b5 PB |
5936 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
5937 | $(TARGET-stageprofile-binutils) | |
d545f33b PB |
5938 | |
5939 | maybe-clean-stageprofile-binutils: clean-stageprofile-binutils | |
5940 | clean-stageprofile: clean-stageprofile-binutils | |
5941 | clean-stageprofile-binutils: | |
5942 | @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] \ | |
5943 | || exit 0 ; \ | |
c52c6897 | 5944 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
5945 | cd $(HOST_SUBDIR)/binutils && \ |
5946 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5947 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5948 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
5949 | @endif binutils-bootstrap | |
5950 | ||
5951 | ||
5952 | .PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils | |
5953 | .PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils | |
5954 | maybe-all-stagefeedback-binutils: | |
5955 | maybe-clean-stagefeedback-binutils: | |
5956 | @if binutils-bootstrap | |
5957 | maybe-all-stagefeedback-binutils: all-stagefeedback-binutils | |
5958 | all-stagefeedback: all-stagefeedback-binutils | |
f70224b5 | 5959 | TARGET-stagefeedback-binutils = $(TARGET-binutils) |
d545f33b | 5960 | all-stagefeedback-binutils: configure-stagefeedback-binutils |
c52c6897 | 5961 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
5962 | @r=`${PWD_COMMAND}`; export r; \ |
5963 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5964 | $(HOST_EXPORTS) \ | |
5965 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
5966 | cd $(HOST_SUBDIR)/binutils && \ | |
f70224b5 PB |
5967 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
5968 | $(TARGET-stagefeedback-binutils) | |
d545f33b PB |
5969 | |
5970 | maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils | |
5971 | clean-stagefeedback: clean-stagefeedback-binutils | |
5972 | clean-stagefeedback-binutils: | |
5973 | @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] \ | |
5974 | || exit 0 ; \ | |
c52c6897 | 5975 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
5976 | cd $(HOST_SUBDIR)/binutils && \ |
5977 | $(MAKE) $(FLAGS_TO_PASS) \ | |
5978 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
5979 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
5980 | @endif binutils-bootstrap | |
5981 | ||
5982 | ||
5983 | ||
5984 | ||
5985 | ||
5986 | .PHONY: check-binutils maybe-check-binutils | |
5987 | maybe-check-binutils: | |
5988 | @if binutils | |
5989 | maybe-check-binutils: check-binutils | |
5990 | ||
5991 | check-binutils: | |
0aed8855 | 5992 | @: $(MAKE); $(unstage) |
d545f33b PB |
5993 | @r=`${PWD_COMMAND}`; export r; \ |
5994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
5995 | $(HOST_EXPORTS) \ | |
5996 | (cd $(HOST_SUBDIR)/binutils && \ | |
5997 | $(MAKE) $(FLAGS_TO_PASS) check) | |
5998 | ||
5999 | @endif binutils | |
6000 | ||
6001 | .PHONY: install-binutils maybe-install-binutils | |
6002 | maybe-install-binutils: | |
6003 | @if binutils | |
6004 | maybe-install-binutils: install-binutils | |
6005 | ||
6006 | install-binutils: installdirs | |
0aed8855 | 6007 | @: $(MAKE); $(unstage) |
d545f33b PB |
6008 | @r=`${PWD_COMMAND}`; export r; \ |
6009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6010 | $(HOST_EXPORTS) \ | |
6011 | (cd $(HOST_SUBDIR)/binutils && \ | |
6012 | $(MAKE) $(FLAGS_TO_PASS) install) | |
6013 | ||
6014 | @endif binutils | |
6015 | ||
6016 | # Other targets (info, dvi, etc.) | |
6017 | ||
6018 | .PHONY: maybe-info-binutils info-binutils | |
6019 | maybe-info-binutils: | |
6020 | @if binutils | |
6021 | maybe-info-binutils: info-binutils | |
6022 | ||
6023 | info-binutils: \ | |
6024 | configure-binutils | |
6025 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
6026 | r=`${PWD_COMMAND}`; export r; \ | |
6027 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6028 | $(HOST_EXPORTS) \ | |
6029 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6030 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6031 | done; \ | |
6032 | echo "Doing info in binutils" ; \ | |
6033 | (cd $(HOST_SUBDIR)/binutils && \ | |
6034 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6035 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6036 | "RANLIB=$${RANLIB}" \ | |
6037 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6038 | info) \ | |
6039 | || exit 1 | |
6040 | ||
6041 | @endif binutils | |
6042 | ||
6043 | .PHONY: maybe-dvi-binutils dvi-binutils | |
6044 | maybe-dvi-binutils: | |
6045 | @if binutils | |
6046 | maybe-dvi-binutils: dvi-binutils | |
6047 | ||
6048 | dvi-binutils: \ | |
6049 | configure-binutils | |
6050 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
6051 | r=`${PWD_COMMAND}`; export r; \ | |
6052 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6053 | $(HOST_EXPORTS) \ | |
6054 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6055 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6056 | done; \ | |
6057 | echo "Doing dvi in binutils" ; \ | |
6058 | (cd $(HOST_SUBDIR)/binutils && \ | |
2a4cbe27 NN |
6059 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6060 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6061 | "RANLIB=$${RANLIB}" \ | |
6062 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6063 | dvi) \ |
2a4cbe27 NN |
6064 | || exit 1 |
6065 | ||
6bd3dfaa | 6066 | @endif binutils |
2a4cbe27 | 6067 | |
6d389afc MS |
6068 | .PHONY: maybe-html-binutils html-binutils |
6069 | maybe-html-binutils: | |
6070 | @if binutils | |
6071 | maybe-html-binutils: html-binutils | |
6072 | ||
6073 | html-binutils: \ | |
6074 | configure-binutils | |
6075 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
6076 | r=`${PWD_COMMAND}`; export r; \ | |
6077 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6078 | $(HOST_EXPORTS) \ |
6079 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6080 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6081 | done; \ | |
6082 | echo "Doing html in binutils" ; \ | |
b00612cc | 6083 | (cd $(HOST_SUBDIR)/binutils && \ |
6d389afc MS |
6084 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6085 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6086 | "RANLIB=$${RANLIB}" \ | |
6087 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6088 | html) \ | |
6089 | || exit 1 | |
6090 | ||
6091 | @endif binutils | |
6092 | ||
4fa63067 NN |
6093 | .PHONY: maybe-TAGS-binutils TAGS-binutils |
6094 | maybe-TAGS-binutils: | |
6bd3dfaa PB |
6095 | @if binutils |
6096 | maybe-TAGS-binutils: TAGS-binutils | |
2a4cbe27 | 6097 | |
4fa63067 NN |
6098 | TAGS-binutils: \ |
6099 | configure-binutils | |
6100 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6101 | r=`${PWD_COMMAND}`; export r; \ |
6102 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6103 | $(HOST_EXPORTS) \ |
b813574b | 6104 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6105 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6106 | done; \ | |
4fa63067 | 6107 | echo "Doing TAGS in binutils" ; \ |
b00612cc | 6108 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6109 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6110 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6111 | "RANLIB=$${RANLIB}" \ | |
6112 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6113 | TAGS) \ |
2a4cbe27 NN |
6114 | || exit 1 |
6115 | ||
6bd3dfaa | 6116 | @endif binutils |
2a4cbe27 | 6117 | |
4fa63067 NN |
6118 | .PHONY: maybe-install-info-binutils install-info-binutils |
6119 | maybe-install-info-binutils: | |
6bd3dfaa PB |
6120 | @if binutils |
6121 | maybe-install-info-binutils: install-info-binutils | |
2a4cbe27 | 6122 | |
4fa63067 NN |
6123 | install-info-binutils: \ |
6124 | configure-binutils \ | |
6125 | info-binutils | |
6126 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6127 | r=`${PWD_COMMAND}`; export r; \ |
6128 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6129 | $(HOST_EXPORTS) \ |
b813574b | 6130 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6131 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6132 | done; \ | |
4fa63067 | 6133 | echo "Doing install-info in binutils" ; \ |
b00612cc | 6134 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6135 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6136 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6137 | "RANLIB=$${RANLIB}" \ | |
6138 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6139 | install-info) \ |
2a4cbe27 NN |
6140 | || exit 1 |
6141 | ||
6bd3dfaa | 6142 | @endif binutils |
2a4cbe27 | 6143 | |
108a6f8e CD |
6144 | .PHONY: maybe-install-html-binutils install-html-binutils |
6145 | maybe-install-html-binutils: | |
6146 | @if binutils | |
6147 | maybe-install-html-binutils: install-html-binutils | |
6148 | ||
6149 | install-html-binutils: \ | |
6150 | configure-binutils \ | |
6151 | html-binutils | |
6152 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
6153 | r=`${PWD_COMMAND}`; export r; \ | |
6154 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6155 | $(HOST_EXPORTS) \ | |
6156 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6157 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6158 | done; \ | |
6159 | echo "Doing install-html in binutils" ; \ | |
6160 | (cd $(HOST_SUBDIR)/binutils && \ | |
6161 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6162 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6163 | "RANLIB=$${RANLIB}" \ | |
6164 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6165 | install-html) \ | |
6166 | || exit 1 | |
6167 | ||
6168 | @endif binutils | |
6169 | ||
4fa63067 NN |
6170 | .PHONY: maybe-installcheck-binutils installcheck-binutils |
6171 | maybe-installcheck-binutils: | |
6bd3dfaa PB |
6172 | @if binutils |
6173 | maybe-installcheck-binutils: installcheck-binutils | |
2a4cbe27 | 6174 | |
4fa63067 NN |
6175 | installcheck-binutils: \ |
6176 | configure-binutils | |
6177 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6178 | r=`${PWD_COMMAND}`; export r; \ |
6179 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6180 | $(HOST_EXPORTS) \ |
b813574b | 6181 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6182 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6183 | done; \ | |
4fa63067 | 6184 | echo "Doing installcheck in binutils" ; \ |
b00612cc | 6185 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6186 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6187 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6188 | "RANLIB=$${RANLIB}" \ | |
6189 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6190 | installcheck) \ |
2a4cbe27 NN |
6191 | || exit 1 |
6192 | ||
6bd3dfaa | 6193 | @endif binutils |
2a4cbe27 | 6194 | |
4fa63067 NN |
6195 | .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils |
6196 | maybe-mostlyclean-binutils: | |
6bd3dfaa PB |
6197 | @if binutils |
6198 | maybe-mostlyclean-binutils: mostlyclean-binutils | |
2a4cbe27 | 6199 | |
4fa63067 NN |
6200 | mostlyclean-binutils: |
6201 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6202 | r=`${PWD_COMMAND}`; export r; \ |
6203 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6204 | $(HOST_EXPORTS) \ |
b813574b | 6205 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6206 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6207 | done; \ | |
4fa63067 | 6208 | echo "Doing mostlyclean in binutils" ; \ |
b00612cc | 6209 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6210 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6211 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6212 | "RANLIB=$${RANLIB}" \ | |
6213 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6214 | mostlyclean) \ |
2a4cbe27 NN |
6215 | || exit 1 |
6216 | ||
6bd3dfaa | 6217 | @endif binutils |
2a4cbe27 | 6218 | |
4fa63067 NN |
6219 | .PHONY: maybe-clean-binutils clean-binutils |
6220 | maybe-clean-binutils: | |
6bd3dfaa PB |
6221 | @if binutils |
6222 | maybe-clean-binutils: clean-binutils | |
2a4cbe27 | 6223 | |
4fa63067 NN |
6224 | clean-binutils: |
6225 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6226 | r=`${PWD_COMMAND}`; export r; \ |
6227 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6228 | $(HOST_EXPORTS) \ |
b813574b | 6229 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6230 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6231 | done; \ | |
4fa63067 | 6232 | echo "Doing clean in binutils" ; \ |
b00612cc | 6233 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6234 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6235 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6236 | "RANLIB=$${RANLIB}" \ | |
6237 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6238 | clean) \ |
2a4cbe27 NN |
6239 | || exit 1 |
6240 | ||
6bd3dfaa | 6241 | @endif binutils |
2a4cbe27 | 6242 | |
4fa63067 NN |
6243 | .PHONY: maybe-distclean-binutils distclean-binutils |
6244 | maybe-distclean-binutils: | |
6bd3dfaa PB |
6245 | @if binutils |
6246 | maybe-distclean-binutils: distclean-binutils | |
2a4cbe27 | 6247 | |
4fa63067 NN |
6248 | distclean-binutils: |
6249 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6250 | r=`${PWD_COMMAND}`; export r; \ |
6251 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6252 | $(HOST_EXPORTS) \ |
b813574b | 6253 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6254 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6255 | done; \ | |
4fa63067 | 6256 | echo "Doing distclean in binutils" ; \ |
b00612cc | 6257 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6258 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6259 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6260 | "RANLIB=$${RANLIB}" \ | |
6261 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6262 | distclean) \ |
2a4cbe27 NN |
6263 | || exit 1 |
6264 | ||
6bd3dfaa | 6265 | @endif binutils |
2a4cbe27 | 6266 | |
4fa63067 NN |
6267 | .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils |
6268 | maybe-maintainer-clean-binutils: | |
6bd3dfaa PB |
6269 | @if binutils |
6270 | maybe-maintainer-clean-binutils: maintainer-clean-binutils | |
2a4cbe27 | 6271 | |
4fa63067 NN |
6272 | maintainer-clean-binutils: |
6273 | @[ -f ./binutils/Makefile ] || exit 0; \ | |
b40e3958 L |
6274 | r=`${PWD_COMMAND}`; export r; \ |
6275 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6276 | $(HOST_EXPORTS) \ |
b813574b | 6277 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6278 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6279 | done; \ | |
4fa63067 | 6280 | echo "Doing maintainer-clean in binutils" ; \ |
b00612cc | 6281 | (cd $(HOST_SUBDIR)/binutils && \ |
2a4cbe27 NN |
6282 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6283 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6284 | "RANLIB=$${RANLIB}" \ | |
6285 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6286 | maintainer-clean) \ |
2a4cbe27 NN |
6287 | || exit 1 |
6288 | ||
6bd3dfaa | 6289 | @endif binutils |
2a4cbe27 | 6290 | |
2a4cbe27 | 6291 | |
a7254363 | 6292 | |
4fa63067 NN |
6293 | .PHONY: configure-bison maybe-configure-bison |
6294 | maybe-configure-bison: | |
6bd3dfaa PB |
6295 | @if bison |
6296 | maybe-configure-bison: configure-bison | |
c52c6897 | 6297 | configure-bison: |
0aed8855 | 6298 | @: $(MAKE); $(unstage) |
c52c6897 | 6299 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 6300 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
6301 | test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \ |
6302 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \ | |
378fce5b | 6303 | $(HOST_EXPORTS) \ |
a7254363 PB |
6304 | echo Configuring in $(HOST_SUBDIR)/bison; \ |
6305 | cd "$(HOST_SUBDIR)/bison" || exit 1; \ | |
4fa63067 | 6306 | case $(srcdir) in \ |
b00612cc PB |
6307 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
6308 | *) topdir=`echo $(HOST_SUBDIR)/bison/ | \ | |
6309 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 6310 | esac; \ |
b00612cc PB |
6311 | srcdiroption="--srcdir=$${topdir}/bison"; \ |
6312 | libsrcdir="$$s/bison"; \ | |
4fa63067 | 6313 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 6314 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 6315 | || exit 1 |
6bd3dfaa | 6316 | @endif bison |
2a4cbe27 | 6317 | |
a7254363 PB |
6318 | |
6319 | ||
d545f33b PB |
6320 | |
6321 | ||
4fa63067 NN |
6322 | .PHONY: all-bison maybe-all-bison |
6323 | maybe-all-bison: | |
6bd3dfaa | 6324 | @if bison |
d27cc32e | 6325 | TARGET-bison=all |
6bd3dfaa | 6326 | maybe-all-bison: all-bison |
4fa63067 | 6327 | all-bison: configure-bison |
0aed8855 | 6328 | @: $(MAKE); $(unstage) |
4fa63067 NN |
6329 | @r=`${PWD_COMMAND}`; export r; \ |
6330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6331 | $(HOST_EXPORTS) \ |
b00612cc PB |
6332 | (cd $(HOST_SUBDIR)/bison && \ |
6333 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bison)) | |
6bd3dfaa | 6334 | @endif bison |
2a4cbe27 | 6335 | |
a7254363 | 6336 | |
d545f33b PB |
6337 | |
6338 | ||
4fa63067 NN |
6339 | .PHONY: check-bison maybe-check-bison |
6340 | maybe-check-bison: | |
6bd3dfaa PB |
6341 | @if bison |
6342 | maybe-check-bison: check-bison | |
2a4cbe27 | 6343 | |
4fa63067 NN |
6344 | # This module is only tested in a native toolchain. |
6345 | check-bison: | |
0aed8855 | 6346 | @: $(MAKE); $(unstage) |
4fa63067 NN |
6347 | @if [ '$(host)' = '$(target)' ] ; then \ |
6348 | r=`${PWD_COMMAND}`; export r; \ | |
6349 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6350 | $(HOST_EXPORTS) \ |
b00612cc | 6351 | (cd $(HOST_SUBDIR)/bison && \ |
4cfaf6d5 | 6352 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 NN |
6353 | fi |
6354 | ||
6bd3dfaa | 6355 | @endif bison |
4fa63067 NN |
6356 | |
6357 | .PHONY: install-bison maybe-install-bison | |
6358 | maybe-install-bison: | |
6bd3dfaa PB |
6359 | @if bison |
6360 | maybe-install-bison: install-bison | |
4fa63067 NN |
6361 | |
6362 | install-bison: installdirs | |
0aed8855 | 6363 | @: $(MAKE); $(unstage) |
4fa63067 | 6364 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 6365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 6366 | $(HOST_EXPORTS) \ |
b00612cc | 6367 | (cd $(HOST_SUBDIR)/bison && \ |
2da12f12 | 6368 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 6369 | |
6bd3dfaa | 6370 | @endif bison |
2a4cbe27 | 6371 | |
4fa63067 | 6372 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 6373 | |
4fa63067 NN |
6374 | .PHONY: maybe-info-bison info-bison |
6375 | maybe-info-bison: | |
6bd3dfaa PB |
6376 | @if bison |
6377 | maybe-info-bison: info-bison | |
4fa63067 NN |
6378 | |
6379 | info-bison: \ | |
6380 | configure-bison | |
0aed8855 | 6381 | @: $(MAKE); $(unstage) |
4fa63067 | 6382 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6383 | r=`${PWD_COMMAND}`; export r; \ |
6384 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6385 | $(HOST_EXPORTS) \ |
b813574b | 6386 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6387 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6388 | done; \ | |
4fa63067 | 6389 | echo "Doing info in bison" ; \ |
b00612cc | 6390 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6391 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6392 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6393 | "RANLIB=$${RANLIB}" \ | |
6394 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6395 | info) \ |
2a4cbe27 NN |
6396 | || exit 1 |
6397 | ||
6bd3dfaa | 6398 | @endif bison |
2a4cbe27 | 6399 | |
4fa63067 NN |
6400 | .PHONY: maybe-dvi-bison dvi-bison |
6401 | maybe-dvi-bison: | |
6bd3dfaa PB |
6402 | @if bison |
6403 | maybe-dvi-bison: dvi-bison | |
2a4cbe27 | 6404 | |
4fa63067 NN |
6405 | dvi-bison: \ |
6406 | configure-bison | |
0aed8855 | 6407 | @: $(MAKE); $(unstage) |
4fa63067 | 6408 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6409 | r=`${PWD_COMMAND}`; export r; \ |
6410 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6411 | $(HOST_EXPORTS) \ |
b813574b | 6412 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6413 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6414 | done; \ | |
4fa63067 | 6415 | echo "Doing dvi in bison" ; \ |
b00612cc | 6416 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6417 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6418 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6419 | "RANLIB=$${RANLIB}" \ | |
6420 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6421 | dvi) \ |
2a4cbe27 NN |
6422 | || exit 1 |
6423 | ||
6bd3dfaa | 6424 | @endif bison |
2a4cbe27 | 6425 | |
6d389afc MS |
6426 | .PHONY: maybe-html-bison html-bison |
6427 | maybe-html-bison: | |
6428 | @if bison | |
6429 | maybe-html-bison: html-bison | |
6430 | ||
6431 | html-bison: \ | |
6432 | configure-bison | |
0aed8855 | 6433 | @: $(MAKE); $(unstage) |
6d389afc MS |
6434 | @[ -f ./bison/Makefile ] || exit 0; \ |
6435 | r=`${PWD_COMMAND}`; export r; \ | |
6436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6437 | $(HOST_EXPORTS) \ |
6438 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6439 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6440 | done; \ | |
6441 | echo "Doing html in bison" ; \ | |
b00612cc | 6442 | (cd $(HOST_SUBDIR)/bison && \ |
6d389afc MS |
6443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6445 | "RANLIB=$${RANLIB}" \ | |
6446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6447 | html) \ | |
6448 | || exit 1 | |
6449 | ||
6450 | @endif bison | |
6451 | ||
4fa63067 NN |
6452 | .PHONY: maybe-TAGS-bison TAGS-bison |
6453 | maybe-TAGS-bison: | |
6bd3dfaa PB |
6454 | @if bison |
6455 | maybe-TAGS-bison: TAGS-bison | |
2a4cbe27 | 6456 | |
4fa63067 NN |
6457 | TAGS-bison: \ |
6458 | configure-bison | |
0aed8855 | 6459 | @: $(MAKE); $(unstage) |
4fa63067 | 6460 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6461 | r=`${PWD_COMMAND}`; export r; \ |
6462 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6463 | $(HOST_EXPORTS) \ |
b813574b | 6464 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6465 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6466 | done; \ | |
4fa63067 | 6467 | echo "Doing TAGS in bison" ; \ |
b00612cc | 6468 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6469 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6470 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6471 | "RANLIB=$${RANLIB}" \ | |
6472 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6473 | TAGS) \ |
2a4cbe27 NN |
6474 | || exit 1 |
6475 | ||
6bd3dfaa | 6476 | @endif bison |
2a4cbe27 | 6477 | |
4fa63067 NN |
6478 | .PHONY: maybe-install-info-bison install-info-bison |
6479 | maybe-install-info-bison: | |
6bd3dfaa PB |
6480 | @if bison |
6481 | maybe-install-info-bison: install-info-bison | |
2a4cbe27 | 6482 | |
4fa63067 NN |
6483 | install-info-bison: \ |
6484 | configure-bison \ | |
6485 | info-bison | |
0aed8855 | 6486 | @: $(MAKE); $(unstage) |
4fa63067 | 6487 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6488 | r=`${PWD_COMMAND}`; export r; \ |
6489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6490 | $(HOST_EXPORTS) \ |
b813574b | 6491 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6492 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6493 | done; \ | |
4fa63067 | 6494 | echo "Doing install-info in bison" ; \ |
b00612cc | 6495 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
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}" \ | |
b813574b | 6500 | install-info) \ |
2a4cbe27 NN |
6501 | || exit 1 |
6502 | ||
6bd3dfaa | 6503 | @endif bison |
2a4cbe27 | 6504 | |
108a6f8e CD |
6505 | .PHONY: maybe-install-html-bison install-html-bison |
6506 | maybe-install-html-bison: | |
6507 | @if bison | |
6508 | maybe-install-html-bison: install-html-bison | |
6509 | ||
6510 | install-html-bison: \ | |
6511 | configure-bison \ | |
6512 | html-bison | |
6513 | @: $(MAKE); $(unstage) | |
6514 | @[ -f ./bison/Makefile ] || exit 0; \ | |
6515 | r=`${PWD_COMMAND}`; export r; \ | |
6516 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6517 | $(HOST_EXPORTS) \ | |
6518 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6519 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6520 | done; \ | |
6521 | echo "Doing install-html in bison" ; \ | |
6522 | (cd $(HOST_SUBDIR)/bison && \ | |
6523 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
6524 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6525 | "RANLIB=$${RANLIB}" \ | |
6526 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6527 | install-html) \ | |
6528 | || exit 1 | |
6529 | ||
6530 | @endif bison | |
6531 | ||
4fa63067 NN |
6532 | .PHONY: maybe-installcheck-bison installcheck-bison |
6533 | maybe-installcheck-bison: | |
6bd3dfaa PB |
6534 | @if bison |
6535 | maybe-installcheck-bison: installcheck-bison | |
2a4cbe27 | 6536 | |
4fa63067 NN |
6537 | installcheck-bison: \ |
6538 | configure-bison | |
0aed8855 | 6539 | @: $(MAKE); $(unstage) |
4fa63067 | 6540 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6541 | r=`${PWD_COMMAND}`; export r; \ |
6542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6543 | $(HOST_EXPORTS) \ |
b813574b | 6544 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6545 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6546 | done; \ | |
4fa63067 | 6547 | echo "Doing installcheck in bison" ; \ |
b00612cc | 6548 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6549 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6550 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6551 | "RANLIB=$${RANLIB}" \ | |
6552 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6553 | installcheck) \ |
2a4cbe27 NN |
6554 | || exit 1 |
6555 | ||
6bd3dfaa | 6556 | @endif bison |
2a4cbe27 | 6557 | |
4fa63067 NN |
6558 | .PHONY: maybe-mostlyclean-bison mostlyclean-bison |
6559 | maybe-mostlyclean-bison: | |
6bd3dfaa PB |
6560 | @if bison |
6561 | maybe-mostlyclean-bison: mostlyclean-bison | |
2a4cbe27 | 6562 | |
4fa63067 | 6563 | mostlyclean-bison: |
0aed8855 | 6564 | @: $(MAKE); $(unstage) |
4fa63067 | 6565 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6566 | r=`${PWD_COMMAND}`; export r; \ |
6567 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6568 | $(HOST_EXPORTS) \ |
b813574b | 6569 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6570 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6571 | done; \ | |
4fa63067 | 6572 | echo "Doing mostlyclean in bison" ; \ |
b00612cc | 6573 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6574 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6575 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6576 | "RANLIB=$${RANLIB}" \ | |
6577 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6578 | mostlyclean) \ |
2a4cbe27 NN |
6579 | || exit 1 |
6580 | ||
6bd3dfaa | 6581 | @endif bison |
2a4cbe27 | 6582 | |
4fa63067 NN |
6583 | .PHONY: maybe-clean-bison clean-bison |
6584 | maybe-clean-bison: | |
6bd3dfaa PB |
6585 | @if bison |
6586 | maybe-clean-bison: clean-bison | |
2a4cbe27 | 6587 | |
4fa63067 | 6588 | clean-bison: |
0aed8855 | 6589 | @: $(MAKE); $(unstage) |
4fa63067 | 6590 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6591 | r=`${PWD_COMMAND}`; export r; \ |
6592 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6593 | $(HOST_EXPORTS) \ |
b813574b | 6594 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6595 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6596 | done; \ | |
4fa63067 | 6597 | echo "Doing clean in bison" ; \ |
b00612cc | 6598 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6599 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6600 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6601 | "RANLIB=$${RANLIB}" \ | |
6602 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6603 | clean) \ |
2a4cbe27 NN |
6604 | || exit 1 |
6605 | ||
6bd3dfaa | 6606 | @endif bison |
2a4cbe27 | 6607 | |
4fa63067 NN |
6608 | .PHONY: maybe-distclean-bison distclean-bison |
6609 | maybe-distclean-bison: | |
6bd3dfaa PB |
6610 | @if bison |
6611 | maybe-distclean-bison: distclean-bison | |
2a4cbe27 | 6612 | |
4fa63067 | 6613 | distclean-bison: |
0aed8855 | 6614 | @: $(MAKE); $(unstage) |
4fa63067 | 6615 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6616 | r=`${PWD_COMMAND}`; export r; \ |
6617 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6618 | $(HOST_EXPORTS) \ |
b813574b | 6619 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6620 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6621 | done; \ | |
4fa63067 | 6622 | echo "Doing distclean in bison" ; \ |
b00612cc | 6623 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6624 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6625 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6626 | "RANLIB=$${RANLIB}" \ | |
6627 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6628 | distclean) \ |
2a4cbe27 NN |
6629 | || exit 1 |
6630 | ||
6bd3dfaa | 6631 | @endif bison |
2a4cbe27 | 6632 | |
4fa63067 NN |
6633 | .PHONY: maybe-maintainer-clean-bison maintainer-clean-bison |
6634 | maybe-maintainer-clean-bison: | |
6bd3dfaa PB |
6635 | @if bison |
6636 | maybe-maintainer-clean-bison: maintainer-clean-bison | |
2a4cbe27 | 6637 | |
4fa63067 | 6638 | maintainer-clean-bison: |
0aed8855 | 6639 | @: $(MAKE); $(unstage) |
4fa63067 | 6640 | @[ -f ./bison/Makefile ] || exit 0; \ |
b40e3958 L |
6641 | r=`${PWD_COMMAND}`; export r; \ |
6642 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6643 | $(HOST_EXPORTS) \ |
b813574b | 6644 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6645 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6646 | done; \ | |
4fa63067 | 6647 | echo "Doing maintainer-clean in bison" ; \ |
b00612cc | 6648 | (cd $(HOST_SUBDIR)/bison && \ |
2a4cbe27 NN |
6649 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6650 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6651 | "RANLIB=$${RANLIB}" \ | |
6652 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6653 | maintainer-clean) \ |
2a4cbe27 NN |
6654 | || exit 1 |
6655 | ||
6bd3dfaa | 6656 | @endif bison |
2a4cbe27 | 6657 | |
2a4cbe27 | 6658 | |
a7254363 | 6659 | |
4fa63067 NN |
6660 | .PHONY: configure-byacc maybe-configure-byacc |
6661 | maybe-configure-byacc: | |
6bd3dfaa PB |
6662 | @if byacc |
6663 | maybe-configure-byacc: configure-byacc | |
c52c6897 | 6664 | configure-byacc: |
0aed8855 | 6665 | @: $(MAKE); $(unstage) |
c52c6897 | 6666 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 6667 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
6668 | test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \ |
6669 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \ | |
378fce5b | 6670 | $(HOST_EXPORTS) \ |
a7254363 PB |
6671 | echo Configuring in $(HOST_SUBDIR)/byacc; \ |
6672 | cd "$(HOST_SUBDIR)/byacc" || exit 1; \ | |
4fa63067 | 6673 | case $(srcdir) in \ |
b00612cc PB |
6674 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
6675 | *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \ | |
6676 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 6677 | esac; \ |
b00612cc PB |
6678 | srcdiroption="--srcdir=$${topdir}/byacc"; \ |
6679 | libsrcdir="$$s/byacc"; \ | |
4fa63067 | 6680 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 6681 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 6682 | || exit 1 |
6bd3dfaa | 6683 | @endif byacc |
4fa63067 | 6684 | |
a7254363 PB |
6685 | |
6686 | ||
d545f33b PB |
6687 | |
6688 | ||
4fa63067 NN |
6689 | .PHONY: all-byacc maybe-all-byacc |
6690 | maybe-all-byacc: | |
6bd3dfaa | 6691 | @if byacc |
d27cc32e | 6692 | TARGET-byacc=all |
6bd3dfaa | 6693 | maybe-all-byacc: all-byacc |
4fa63067 | 6694 | all-byacc: configure-byacc |
0aed8855 | 6695 | @: $(MAKE); $(unstage) |
4fa63067 NN |
6696 | @r=`${PWD_COMMAND}`; export r; \ |
6697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6698 | $(HOST_EXPORTS) \ |
b00612cc PB |
6699 | (cd $(HOST_SUBDIR)/byacc && \ |
6700 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-byacc)) | |
6bd3dfaa | 6701 | @endif byacc |
4fa63067 | 6702 | |
a7254363 | 6703 | |
d545f33b PB |
6704 | |
6705 | ||
4fa63067 NN |
6706 | .PHONY: check-byacc maybe-check-byacc |
6707 | maybe-check-byacc: | |
6bd3dfaa PB |
6708 | @if byacc |
6709 | maybe-check-byacc: check-byacc | |
4fa63067 NN |
6710 | |
6711 | # This module is only tested in a native toolchain. | |
6712 | check-byacc: | |
0aed8855 | 6713 | @: $(MAKE); $(unstage) |
4fa63067 NN |
6714 | @if [ '$(host)' = '$(target)' ] ; then \ |
6715 | r=`${PWD_COMMAND}`; export r; \ | |
6716 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6717 | $(HOST_EXPORTS) \ |
b00612cc | 6718 | (cd $(HOST_SUBDIR)/byacc && \ |
4cfaf6d5 | 6719 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 NN |
6720 | fi |
6721 | ||
6bd3dfaa | 6722 | @endif byacc |
4fa63067 NN |
6723 | |
6724 | .PHONY: install-byacc maybe-install-byacc | |
6725 | maybe-install-byacc: | |
6bd3dfaa PB |
6726 | @if byacc |
6727 | maybe-install-byacc: install-byacc | |
4fa63067 NN |
6728 | |
6729 | install-byacc: installdirs | |
0aed8855 | 6730 | @: $(MAKE); $(unstage) |
4fa63067 NN |
6731 | @r=`${PWD_COMMAND}`; export r; \ |
6732 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6733 | $(HOST_EXPORTS) \ |
b00612cc | 6734 | (cd $(HOST_SUBDIR)/byacc && \ |
2da12f12 | 6735 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 6736 | |
6bd3dfaa | 6737 | @endif byacc |
4fa63067 NN |
6738 | |
6739 | # Other targets (info, dvi, etc.) | |
6740 | ||
6741 | .PHONY: maybe-info-byacc info-byacc | |
6742 | maybe-info-byacc: | |
6bd3dfaa PB |
6743 | @if byacc |
6744 | maybe-info-byacc: info-byacc | |
4fa63067 NN |
6745 | |
6746 | info-byacc: \ | |
6747 | configure-byacc | |
0aed8855 | 6748 | @: $(MAKE); $(unstage) |
4fa63067 | 6749 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6750 | r=`${PWD_COMMAND}`; export r; \ |
6751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6752 | $(HOST_EXPORTS) \ |
b813574b | 6753 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6754 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6755 | done; \ | |
4fa63067 | 6756 | echo "Doing info in byacc" ; \ |
b00612cc | 6757 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6758 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6759 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6760 | "RANLIB=$${RANLIB}" \ | |
6761 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6762 | info) \ |
2a4cbe27 NN |
6763 | || exit 1 |
6764 | ||
6bd3dfaa | 6765 | @endif byacc |
2a4cbe27 | 6766 | |
4fa63067 NN |
6767 | .PHONY: maybe-dvi-byacc dvi-byacc |
6768 | maybe-dvi-byacc: | |
6bd3dfaa PB |
6769 | @if byacc |
6770 | maybe-dvi-byacc: dvi-byacc | |
2a4cbe27 | 6771 | |
4fa63067 NN |
6772 | dvi-byacc: \ |
6773 | configure-byacc | |
0aed8855 | 6774 | @: $(MAKE); $(unstage) |
4fa63067 | 6775 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6776 | r=`${PWD_COMMAND}`; export r; \ |
6777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6778 | $(HOST_EXPORTS) \ |
b813574b | 6779 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6780 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6781 | done; \ | |
4fa63067 | 6782 | echo "Doing dvi in byacc" ; \ |
b00612cc | 6783 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6784 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6785 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6786 | "RANLIB=$${RANLIB}" \ | |
6787 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6788 | dvi) \ |
2a4cbe27 NN |
6789 | || exit 1 |
6790 | ||
6bd3dfaa | 6791 | @endif byacc |
2a4cbe27 | 6792 | |
6d389afc MS |
6793 | .PHONY: maybe-html-byacc html-byacc |
6794 | maybe-html-byacc: | |
6795 | @if byacc | |
6796 | maybe-html-byacc: html-byacc | |
6797 | ||
6798 | html-byacc: \ | |
6799 | configure-byacc | |
0aed8855 | 6800 | @: $(MAKE); $(unstage) |
6d389afc MS |
6801 | @[ -f ./byacc/Makefile ] || exit 0; \ |
6802 | r=`${PWD_COMMAND}`; export r; \ | |
6803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
6804 | $(HOST_EXPORTS) \ |
6805 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6806 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6807 | done; \ | |
6808 | echo "Doing html in byacc" ; \ | |
b00612cc | 6809 | (cd $(HOST_SUBDIR)/byacc && \ |
6d389afc MS |
6810 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6811 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6812 | "RANLIB=$${RANLIB}" \ | |
6813 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6814 | html) \ | |
6815 | || exit 1 | |
6816 | ||
6817 | @endif byacc | |
6818 | ||
4fa63067 NN |
6819 | .PHONY: maybe-TAGS-byacc TAGS-byacc |
6820 | maybe-TAGS-byacc: | |
6bd3dfaa PB |
6821 | @if byacc |
6822 | maybe-TAGS-byacc: TAGS-byacc | |
2a4cbe27 | 6823 | |
4fa63067 NN |
6824 | TAGS-byacc: \ |
6825 | configure-byacc | |
0aed8855 | 6826 | @: $(MAKE); $(unstage) |
4fa63067 | 6827 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6828 | r=`${PWD_COMMAND}`; export r; \ |
6829 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6830 | $(HOST_EXPORTS) \ |
b813574b | 6831 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6832 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6833 | done; \ | |
4fa63067 | 6834 | echo "Doing TAGS in byacc" ; \ |
b00612cc | 6835 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6836 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6837 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6838 | "RANLIB=$${RANLIB}" \ | |
6839 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6840 | TAGS) \ |
2a4cbe27 NN |
6841 | || exit 1 |
6842 | ||
6bd3dfaa | 6843 | @endif byacc |
2a4cbe27 | 6844 | |
4fa63067 NN |
6845 | .PHONY: maybe-install-info-byacc install-info-byacc |
6846 | maybe-install-info-byacc: | |
6bd3dfaa PB |
6847 | @if byacc |
6848 | maybe-install-info-byacc: install-info-byacc | |
2a4cbe27 | 6849 | |
4fa63067 NN |
6850 | install-info-byacc: \ |
6851 | configure-byacc \ | |
6852 | info-byacc | |
0aed8855 | 6853 | @: $(MAKE); $(unstage) |
4fa63067 | 6854 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6855 | r=`${PWD_COMMAND}`; export r; \ |
6856 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6857 | $(HOST_EXPORTS) \ |
b813574b | 6858 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6859 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6860 | done; \ | |
4fa63067 | 6861 | echo "Doing install-info in byacc" ; \ |
b00612cc | 6862 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6863 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6864 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6865 | "RANLIB=$${RANLIB}" \ | |
6866 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6867 | install-info) \ |
2a4cbe27 NN |
6868 | || exit 1 |
6869 | ||
6bd3dfaa | 6870 | @endif byacc |
2a4cbe27 | 6871 | |
108a6f8e CD |
6872 | .PHONY: maybe-install-html-byacc install-html-byacc |
6873 | maybe-install-html-byacc: | |
6874 | @if byacc | |
6875 | maybe-install-html-byacc: install-html-byacc | |
6876 | ||
6877 | install-html-byacc: \ | |
6878 | configure-byacc \ | |
6879 | html-byacc | |
6880 | @: $(MAKE); $(unstage) | |
6881 | @[ -f ./byacc/Makefile ] || exit 0; \ | |
6882 | r=`${PWD_COMMAND}`; export r; \ | |
6883 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6884 | $(HOST_EXPORTS) \ | |
6885 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
6886 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
6887 | done; \ | |
6888 | echo "Doing install-html in byacc" ; \ | |
6889 | (cd $(HOST_SUBDIR)/byacc && \ | |
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}" \ | |
6894 | install-html) \ | |
6895 | || exit 1 | |
6896 | ||
6897 | @endif byacc | |
6898 | ||
4fa63067 NN |
6899 | .PHONY: maybe-installcheck-byacc installcheck-byacc |
6900 | maybe-installcheck-byacc: | |
6bd3dfaa PB |
6901 | @if byacc |
6902 | maybe-installcheck-byacc: installcheck-byacc | |
2a4cbe27 | 6903 | |
4fa63067 NN |
6904 | installcheck-byacc: \ |
6905 | configure-byacc | |
0aed8855 | 6906 | @: $(MAKE); $(unstage) |
4fa63067 | 6907 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6908 | r=`${PWD_COMMAND}`; export r; \ |
6909 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6910 | $(HOST_EXPORTS) \ |
b813574b | 6911 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6912 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6913 | done; \ | |
4fa63067 | 6914 | echo "Doing installcheck in byacc" ; \ |
b00612cc | 6915 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6916 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6917 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6918 | "RANLIB=$${RANLIB}" \ | |
6919 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6920 | installcheck) \ |
2a4cbe27 NN |
6921 | || exit 1 |
6922 | ||
6bd3dfaa | 6923 | @endif byacc |
2a4cbe27 | 6924 | |
4fa63067 NN |
6925 | .PHONY: maybe-mostlyclean-byacc mostlyclean-byacc |
6926 | maybe-mostlyclean-byacc: | |
6bd3dfaa PB |
6927 | @if byacc |
6928 | maybe-mostlyclean-byacc: mostlyclean-byacc | |
2a4cbe27 | 6929 | |
4fa63067 | 6930 | mostlyclean-byacc: |
0aed8855 | 6931 | @: $(MAKE); $(unstage) |
4fa63067 | 6932 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6933 | r=`${PWD_COMMAND}`; export r; \ |
6934 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6935 | $(HOST_EXPORTS) \ |
b813574b | 6936 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6937 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6938 | done; \ | |
4fa63067 | 6939 | echo "Doing mostlyclean in byacc" ; \ |
b00612cc | 6940 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6941 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6942 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6943 | "RANLIB=$${RANLIB}" \ | |
6944 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6945 | mostlyclean) \ |
2a4cbe27 NN |
6946 | || exit 1 |
6947 | ||
6bd3dfaa | 6948 | @endif byacc |
2a4cbe27 | 6949 | |
4fa63067 NN |
6950 | .PHONY: maybe-clean-byacc clean-byacc |
6951 | maybe-clean-byacc: | |
6bd3dfaa PB |
6952 | @if byacc |
6953 | maybe-clean-byacc: clean-byacc | |
2a4cbe27 | 6954 | |
4fa63067 | 6955 | clean-byacc: |
0aed8855 | 6956 | @: $(MAKE); $(unstage) |
4fa63067 | 6957 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6958 | r=`${PWD_COMMAND}`; export r; \ |
6959 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6960 | $(HOST_EXPORTS) \ |
b813574b | 6961 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6962 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6963 | done; \ | |
4fa63067 | 6964 | echo "Doing clean in byacc" ; \ |
b00612cc | 6965 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6966 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6967 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6968 | "RANLIB=$${RANLIB}" \ | |
6969 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6970 | clean) \ |
2a4cbe27 NN |
6971 | || exit 1 |
6972 | ||
6bd3dfaa | 6973 | @endif byacc |
2a4cbe27 | 6974 | |
4fa63067 NN |
6975 | .PHONY: maybe-distclean-byacc distclean-byacc |
6976 | maybe-distclean-byacc: | |
6bd3dfaa PB |
6977 | @if byacc |
6978 | maybe-distclean-byacc: distclean-byacc | |
2a4cbe27 | 6979 | |
4fa63067 | 6980 | distclean-byacc: |
0aed8855 | 6981 | @: $(MAKE); $(unstage) |
4fa63067 | 6982 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
6983 | r=`${PWD_COMMAND}`; export r; \ |
6984 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 6985 | $(HOST_EXPORTS) \ |
b813574b | 6986 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
6987 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6988 | done; \ | |
4fa63067 | 6989 | echo "Doing distclean in byacc" ; \ |
b00612cc | 6990 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
6991 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
6992 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
6993 | "RANLIB=$${RANLIB}" \ | |
6994 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 6995 | distclean) \ |
2a4cbe27 NN |
6996 | || exit 1 |
6997 | ||
6bd3dfaa | 6998 | @endif byacc |
2a4cbe27 | 6999 | |
4fa63067 NN |
7000 | .PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc |
7001 | maybe-maintainer-clean-byacc: | |
6bd3dfaa PB |
7002 | @if byacc |
7003 | maybe-maintainer-clean-byacc: maintainer-clean-byacc | |
2a4cbe27 | 7004 | |
4fa63067 | 7005 | maintainer-clean-byacc: |
0aed8855 | 7006 | @: $(MAKE); $(unstage) |
4fa63067 | 7007 | @[ -f ./byacc/Makefile ] || exit 0; \ |
b40e3958 L |
7008 | r=`${PWD_COMMAND}`; export r; \ |
7009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7010 | $(HOST_EXPORTS) \ |
b813574b | 7011 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7012 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7013 | done; \ | |
4fa63067 | 7014 | echo "Doing maintainer-clean in byacc" ; \ |
b00612cc | 7015 | (cd $(HOST_SUBDIR)/byacc && \ |
2a4cbe27 NN |
7016 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7017 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7018 | "RANLIB=$${RANLIB}" \ | |
7019 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7020 | maintainer-clean) \ |
2a4cbe27 NN |
7021 | || exit 1 |
7022 | ||
6bd3dfaa | 7023 | @endif byacc |
2a4cbe27 | 7024 | |
2a4cbe27 | 7025 | |
a7254363 | 7026 | |
4fa63067 NN |
7027 | .PHONY: configure-bzip2 maybe-configure-bzip2 |
7028 | maybe-configure-bzip2: | |
6bd3dfaa PB |
7029 | @if bzip2 |
7030 | maybe-configure-bzip2: configure-bzip2 | |
c52c6897 | 7031 | configure-bzip2: |
0aed8855 | 7032 | @: $(MAKE); $(unstage) |
c52c6897 | 7033 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 7034 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
7035 | test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \ |
7036 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \ | |
378fce5b | 7037 | $(HOST_EXPORTS) \ |
a7254363 PB |
7038 | echo Configuring in $(HOST_SUBDIR)/bzip2; \ |
7039 | cd "$(HOST_SUBDIR)/bzip2" || exit 1; \ | |
4fa63067 | 7040 | case $(srcdir) in \ |
b00612cc PB |
7041 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7042 | *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \ | |
7043 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 7044 | esac; \ |
b00612cc PB |
7045 | srcdiroption="--srcdir=$${topdir}/bzip2"; \ |
7046 | libsrcdir="$$s/bzip2"; \ | |
4fa63067 | 7047 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 7048 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 7049 | || exit 1 |
6bd3dfaa | 7050 | @endif bzip2 |
4fa63067 | 7051 | |
a7254363 PB |
7052 | |
7053 | ||
d545f33b PB |
7054 | |
7055 | ||
4fa63067 NN |
7056 | .PHONY: all-bzip2 maybe-all-bzip2 |
7057 | maybe-all-bzip2: | |
6bd3dfaa | 7058 | @if bzip2 |
d27cc32e | 7059 | TARGET-bzip2=all |
6bd3dfaa | 7060 | maybe-all-bzip2: all-bzip2 |
4fa63067 | 7061 | all-bzip2: configure-bzip2 |
0aed8855 | 7062 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7063 | @r=`${PWD_COMMAND}`; export r; \ |
7064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7065 | $(HOST_EXPORTS) \ |
b00612cc PB |
7066 | (cd $(HOST_SUBDIR)/bzip2 && \ |
7067 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bzip2)) | |
6bd3dfaa | 7068 | @endif bzip2 |
4fa63067 | 7069 | |
a7254363 | 7070 | |
d545f33b PB |
7071 | |
7072 | ||
4fa63067 NN |
7073 | .PHONY: check-bzip2 maybe-check-bzip2 |
7074 | maybe-check-bzip2: | |
6bd3dfaa PB |
7075 | @if bzip2 |
7076 | maybe-check-bzip2: check-bzip2 | |
4fa63067 NN |
7077 | |
7078 | check-bzip2: | |
0aed8855 | 7079 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7080 | @r=`${PWD_COMMAND}`; export r; \ |
7081 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7082 | $(HOST_EXPORTS) \ |
b00612cc PB |
7083 | (cd $(HOST_SUBDIR)/bzip2 && \ |
7084 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 7085 | |
6bd3dfaa | 7086 | @endif bzip2 |
4fa63067 NN |
7087 | |
7088 | .PHONY: install-bzip2 maybe-install-bzip2 | |
7089 | maybe-install-bzip2: | |
6bd3dfaa PB |
7090 | @if bzip2 |
7091 | maybe-install-bzip2: install-bzip2 | |
4fa63067 NN |
7092 | |
7093 | install-bzip2: installdirs | |
0aed8855 | 7094 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7095 | @r=`${PWD_COMMAND}`; export r; \ |
7096 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7097 | $(HOST_EXPORTS) \ |
b00612cc | 7098 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2da12f12 | 7099 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 7100 | |
6bd3dfaa | 7101 | @endif bzip2 |
4fa63067 NN |
7102 | |
7103 | # Other targets (info, dvi, etc.) | |
7104 | ||
7105 | .PHONY: maybe-info-bzip2 info-bzip2 | |
7106 | maybe-info-bzip2: | |
6bd3dfaa PB |
7107 | @if bzip2 |
7108 | maybe-info-bzip2: info-bzip2 | |
4fa63067 NN |
7109 | |
7110 | info-bzip2: \ | |
7111 | configure-bzip2 | |
0aed8855 | 7112 | @: $(MAKE); $(unstage) |
4fa63067 | 7113 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7114 | r=`${PWD_COMMAND}`; export r; \ |
7115 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7116 | $(HOST_EXPORTS) \ |
b813574b | 7117 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7118 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7119 | done; \ | |
4fa63067 | 7120 | echo "Doing info in bzip2" ; \ |
b00612cc | 7121 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7122 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7123 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7124 | "RANLIB=$${RANLIB}" \ | |
7125 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7126 | info) \ |
2a4cbe27 NN |
7127 | || exit 1 |
7128 | ||
6bd3dfaa | 7129 | @endif bzip2 |
2a4cbe27 | 7130 | |
4fa63067 NN |
7131 | .PHONY: maybe-dvi-bzip2 dvi-bzip2 |
7132 | maybe-dvi-bzip2: | |
6bd3dfaa PB |
7133 | @if bzip2 |
7134 | maybe-dvi-bzip2: dvi-bzip2 | |
2a4cbe27 | 7135 | |
4fa63067 NN |
7136 | dvi-bzip2: \ |
7137 | configure-bzip2 | |
0aed8855 | 7138 | @: $(MAKE); $(unstage) |
4fa63067 | 7139 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7140 | r=`${PWD_COMMAND}`; export r; \ |
7141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7142 | $(HOST_EXPORTS) \ |
b813574b | 7143 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7144 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7145 | done; \ | |
4fa63067 | 7146 | echo "Doing dvi in bzip2" ; \ |
b00612cc | 7147 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7148 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7149 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7150 | "RANLIB=$${RANLIB}" \ | |
7151 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7152 | dvi) \ |
2a4cbe27 NN |
7153 | || exit 1 |
7154 | ||
6bd3dfaa | 7155 | @endif bzip2 |
2a4cbe27 | 7156 | |
6d389afc MS |
7157 | .PHONY: maybe-html-bzip2 html-bzip2 |
7158 | maybe-html-bzip2: | |
7159 | @if bzip2 | |
7160 | maybe-html-bzip2: html-bzip2 | |
7161 | ||
7162 | html-bzip2: \ | |
7163 | configure-bzip2 | |
0aed8855 | 7164 | @: $(MAKE); $(unstage) |
6d389afc MS |
7165 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
7166 | r=`${PWD_COMMAND}`; export r; \ | |
7167 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7168 | $(HOST_EXPORTS) \ |
7169 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7170 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7171 | done; \ | |
7172 | echo "Doing html in bzip2" ; \ | |
b00612cc | 7173 | (cd $(HOST_SUBDIR)/bzip2 && \ |
6d389afc MS |
7174 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7175 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7176 | "RANLIB=$${RANLIB}" \ | |
7177 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7178 | html) \ | |
7179 | || exit 1 | |
7180 | ||
7181 | @endif bzip2 | |
7182 | ||
4fa63067 NN |
7183 | .PHONY: maybe-TAGS-bzip2 TAGS-bzip2 |
7184 | maybe-TAGS-bzip2: | |
6bd3dfaa PB |
7185 | @if bzip2 |
7186 | maybe-TAGS-bzip2: TAGS-bzip2 | |
2a4cbe27 | 7187 | |
4fa63067 NN |
7188 | TAGS-bzip2: \ |
7189 | configure-bzip2 | |
0aed8855 | 7190 | @: $(MAKE); $(unstage) |
4fa63067 | 7191 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7192 | r=`${PWD_COMMAND}`; export r; \ |
7193 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7194 | $(HOST_EXPORTS) \ |
b813574b | 7195 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7196 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7197 | done; \ | |
4fa63067 | 7198 | echo "Doing TAGS in bzip2" ; \ |
b00612cc | 7199 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7200 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7201 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7202 | "RANLIB=$${RANLIB}" \ | |
7203 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7204 | TAGS) \ |
2a4cbe27 NN |
7205 | || exit 1 |
7206 | ||
6bd3dfaa | 7207 | @endif bzip2 |
2a4cbe27 | 7208 | |
4fa63067 NN |
7209 | .PHONY: maybe-install-info-bzip2 install-info-bzip2 |
7210 | maybe-install-info-bzip2: | |
6bd3dfaa PB |
7211 | @if bzip2 |
7212 | maybe-install-info-bzip2: install-info-bzip2 | |
2a4cbe27 | 7213 | |
4fa63067 NN |
7214 | install-info-bzip2: \ |
7215 | configure-bzip2 \ | |
7216 | info-bzip2 | |
0aed8855 | 7217 | @: $(MAKE); $(unstage) |
4fa63067 | 7218 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7219 | r=`${PWD_COMMAND}`; export r; \ |
7220 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7221 | $(HOST_EXPORTS) \ |
b813574b | 7222 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7223 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7224 | done; \ | |
4fa63067 | 7225 | echo "Doing install-info in bzip2" ; \ |
b00612cc | 7226 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7227 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7228 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7229 | "RANLIB=$${RANLIB}" \ | |
7230 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7231 | install-info) \ |
2a4cbe27 NN |
7232 | || exit 1 |
7233 | ||
6bd3dfaa | 7234 | @endif bzip2 |
2a4cbe27 | 7235 | |
108a6f8e CD |
7236 | .PHONY: maybe-install-html-bzip2 install-html-bzip2 |
7237 | maybe-install-html-bzip2: | |
7238 | @if bzip2 | |
7239 | maybe-install-html-bzip2: install-html-bzip2 | |
7240 | ||
7241 | install-html-bzip2: \ | |
7242 | configure-bzip2 \ | |
7243 | html-bzip2 | |
7244 | @: $(MAKE); $(unstage) | |
7245 | @[ -f ./bzip2/Makefile ] || exit 0; \ | |
7246 | r=`${PWD_COMMAND}`; export r; \ | |
7247 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7248 | $(HOST_EXPORTS) \ | |
7249 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7250 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7251 | done; \ | |
7252 | echo "Doing install-html in bzip2" ; \ | |
7253 | (cd $(HOST_SUBDIR)/bzip2 && \ | |
7254 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
7255 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7256 | "RANLIB=$${RANLIB}" \ | |
7257 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7258 | install-html) \ | |
7259 | || exit 1 | |
7260 | ||
7261 | @endif bzip2 | |
7262 | ||
4fa63067 NN |
7263 | .PHONY: maybe-installcheck-bzip2 installcheck-bzip2 |
7264 | maybe-installcheck-bzip2: | |
6bd3dfaa PB |
7265 | @if bzip2 |
7266 | maybe-installcheck-bzip2: installcheck-bzip2 | |
2a4cbe27 | 7267 | |
4fa63067 NN |
7268 | installcheck-bzip2: \ |
7269 | configure-bzip2 | |
0aed8855 | 7270 | @: $(MAKE); $(unstage) |
4fa63067 | 7271 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7272 | r=`${PWD_COMMAND}`; export r; \ |
7273 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7274 | $(HOST_EXPORTS) \ |
b813574b | 7275 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7276 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7277 | done; \ | |
4fa63067 | 7278 | echo "Doing installcheck in bzip2" ; \ |
b00612cc | 7279 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7280 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7281 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7282 | "RANLIB=$${RANLIB}" \ | |
7283 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7284 | installcheck) \ |
2a4cbe27 NN |
7285 | || exit 1 |
7286 | ||
6bd3dfaa | 7287 | @endif bzip2 |
2a4cbe27 | 7288 | |
4fa63067 NN |
7289 | .PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2 |
7290 | maybe-mostlyclean-bzip2: | |
6bd3dfaa PB |
7291 | @if bzip2 |
7292 | maybe-mostlyclean-bzip2: mostlyclean-bzip2 | |
2a4cbe27 | 7293 | |
4fa63067 | 7294 | mostlyclean-bzip2: |
0aed8855 | 7295 | @: $(MAKE); $(unstage) |
4fa63067 | 7296 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7297 | r=`${PWD_COMMAND}`; export r; \ |
7298 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7299 | $(HOST_EXPORTS) \ |
b813574b | 7300 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7301 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7302 | done; \ | |
4fa63067 | 7303 | echo "Doing mostlyclean in bzip2" ; \ |
b00612cc | 7304 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7305 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7306 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7307 | "RANLIB=$${RANLIB}" \ | |
7308 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7309 | mostlyclean) \ |
2a4cbe27 NN |
7310 | || exit 1 |
7311 | ||
6bd3dfaa | 7312 | @endif bzip2 |
2a4cbe27 | 7313 | |
4fa63067 NN |
7314 | .PHONY: maybe-clean-bzip2 clean-bzip2 |
7315 | maybe-clean-bzip2: | |
6bd3dfaa PB |
7316 | @if bzip2 |
7317 | maybe-clean-bzip2: clean-bzip2 | |
2a4cbe27 | 7318 | |
4fa63067 | 7319 | clean-bzip2: |
0aed8855 | 7320 | @: $(MAKE); $(unstage) |
4fa63067 | 7321 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7322 | r=`${PWD_COMMAND}`; export r; \ |
7323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7324 | $(HOST_EXPORTS) \ |
b813574b | 7325 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7326 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7327 | done; \ | |
4fa63067 | 7328 | echo "Doing clean in bzip2" ; \ |
b00612cc | 7329 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7330 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7331 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7332 | "RANLIB=$${RANLIB}" \ | |
7333 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7334 | clean) \ |
2a4cbe27 NN |
7335 | || exit 1 |
7336 | ||
6bd3dfaa | 7337 | @endif bzip2 |
2a4cbe27 | 7338 | |
4fa63067 NN |
7339 | .PHONY: maybe-distclean-bzip2 distclean-bzip2 |
7340 | maybe-distclean-bzip2: | |
6bd3dfaa PB |
7341 | @if bzip2 |
7342 | maybe-distclean-bzip2: distclean-bzip2 | |
2a4cbe27 | 7343 | |
4fa63067 | 7344 | distclean-bzip2: |
0aed8855 | 7345 | @: $(MAKE); $(unstage) |
4fa63067 | 7346 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7347 | r=`${PWD_COMMAND}`; export r; \ |
7348 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7349 | $(HOST_EXPORTS) \ |
b813574b | 7350 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7351 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7352 | done; \ | |
4fa63067 | 7353 | echo "Doing distclean in bzip2" ; \ |
b00612cc | 7354 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7355 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7356 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7357 | "RANLIB=$${RANLIB}" \ | |
7358 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7359 | distclean) \ |
2a4cbe27 NN |
7360 | || exit 1 |
7361 | ||
6bd3dfaa | 7362 | @endif bzip2 |
2a4cbe27 | 7363 | |
4fa63067 NN |
7364 | .PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2 |
7365 | maybe-maintainer-clean-bzip2: | |
6bd3dfaa PB |
7366 | @if bzip2 |
7367 | maybe-maintainer-clean-bzip2: maintainer-clean-bzip2 | |
2a4cbe27 | 7368 | |
4fa63067 | 7369 | maintainer-clean-bzip2: |
0aed8855 | 7370 | @: $(MAKE); $(unstage) |
4fa63067 | 7371 | @[ -f ./bzip2/Makefile ] || exit 0; \ |
b40e3958 L |
7372 | r=`${PWD_COMMAND}`; export r; \ |
7373 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7374 | $(HOST_EXPORTS) \ |
b813574b | 7375 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7376 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7377 | done; \ | |
4fa63067 | 7378 | echo "Doing maintainer-clean in bzip2" ; \ |
b00612cc | 7379 | (cd $(HOST_SUBDIR)/bzip2 && \ |
2a4cbe27 NN |
7380 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7381 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7382 | "RANLIB=$${RANLIB}" \ | |
7383 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7384 | maintainer-clean) \ |
2a4cbe27 NN |
7385 | || exit 1 |
7386 | ||
6bd3dfaa | 7387 | @endif bzip2 |
2a4cbe27 | 7388 | |
2a4cbe27 | 7389 | |
a7254363 | 7390 | |
4fa63067 NN |
7391 | .PHONY: configure-dejagnu maybe-configure-dejagnu |
7392 | maybe-configure-dejagnu: | |
6bd3dfaa PB |
7393 | @if dejagnu |
7394 | maybe-configure-dejagnu: configure-dejagnu | |
c52c6897 | 7395 | configure-dejagnu: |
0aed8855 | 7396 | @: $(MAKE); $(unstage) |
c52c6897 | 7397 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 7398 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
7399 | test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \ |
7400 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \ | |
378fce5b | 7401 | $(HOST_EXPORTS) \ |
a7254363 PB |
7402 | echo Configuring in $(HOST_SUBDIR)/dejagnu; \ |
7403 | cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \ | |
4fa63067 | 7404 | case $(srcdir) in \ |
b00612cc PB |
7405 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7406 | *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \ | |
7407 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 7408 | esac; \ |
b00612cc PB |
7409 | srcdiroption="--srcdir=$${topdir}/dejagnu"; \ |
7410 | libsrcdir="$$s/dejagnu"; \ | |
4fa63067 | 7411 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 7412 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 7413 | || exit 1 |
6bd3dfaa | 7414 | @endif dejagnu |
4fa63067 | 7415 | |
a7254363 PB |
7416 | |
7417 | ||
d545f33b PB |
7418 | |
7419 | ||
4fa63067 NN |
7420 | .PHONY: all-dejagnu maybe-all-dejagnu |
7421 | maybe-all-dejagnu: | |
6bd3dfaa | 7422 | @if dejagnu |
d27cc32e | 7423 | TARGET-dejagnu=all |
6bd3dfaa | 7424 | maybe-all-dejagnu: all-dejagnu |
4fa63067 | 7425 | all-dejagnu: configure-dejagnu |
0aed8855 | 7426 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7427 | @r=`${PWD_COMMAND}`; export r; \ |
7428 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7429 | $(HOST_EXPORTS) \ |
b00612cc PB |
7430 | (cd $(HOST_SUBDIR)/dejagnu && \ |
7431 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dejagnu)) | |
6bd3dfaa | 7432 | @endif dejagnu |
4fa63067 | 7433 | |
a7254363 | 7434 | |
d545f33b PB |
7435 | |
7436 | ||
4fa63067 NN |
7437 | .PHONY: check-dejagnu maybe-check-dejagnu |
7438 | maybe-check-dejagnu: | |
6bd3dfaa PB |
7439 | @if dejagnu |
7440 | maybe-check-dejagnu: check-dejagnu | |
4fa63067 NN |
7441 | |
7442 | check-dejagnu: | |
0aed8855 | 7443 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7444 | @r=`${PWD_COMMAND}`; export r; \ |
7445 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7446 | $(HOST_EXPORTS) \ |
b00612cc PB |
7447 | (cd $(HOST_SUBDIR)/dejagnu && \ |
7448 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 7449 | |
6bd3dfaa | 7450 | @endif dejagnu |
4fa63067 NN |
7451 | |
7452 | .PHONY: install-dejagnu maybe-install-dejagnu | |
7453 | maybe-install-dejagnu: | |
6bd3dfaa PB |
7454 | @if dejagnu |
7455 | maybe-install-dejagnu: install-dejagnu | |
4fa63067 NN |
7456 | |
7457 | install-dejagnu: installdirs | |
0aed8855 | 7458 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7459 | @r=`${PWD_COMMAND}`; export r; \ |
7460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7461 | $(HOST_EXPORTS) \ |
b00612cc | 7462 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2da12f12 | 7463 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 7464 | |
6bd3dfaa | 7465 | @endif dejagnu |
4fa63067 NN |
7466 | |
7467 | # Other targets (info, dvi, etc.) | |
7468 | ||
7469 | .PHONY: maybe-info-dejagnu info-dejagnu | |
7470 | maybe-info-dejagnu: | |
6bd3dfaa PB |
7471 | @if dejagnu |
7472 | maybe-info-dejagnu: info-dejagnu | |
4fa63067 NN |
7473 | |
7474 | info-dejagnu: \ | |
7475 | configure-dejagnu | |
0aed8855 | 7476 | @: $(MAKE); $(unstage) |
4fa63067 | 7477 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7478 | r=`${PWD_COMMAND}`; export r; \ |
7479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7480 | $(HOST_EXPORTS) \ |
b813574b | 7481 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7482 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7483 | done; \ | |
4fa63067 | 7484 | echo "Doing info in dejagnu" ; \ |
b00612cc | 7485 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7486 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7487 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7488 | "RANLIB=$${RANLIB}" \ | |
7489 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7490 | info) \ |
2a4cbe27 NN |
7491 | || exit 1 |
7492 | ||
6bd3dfaa | 7493 | @endif dejagnu |
2a4cbe27 | 7494 | |
4fa63067 NN |
7495 | .PHONY: maybe-dvi-dejagnu dvi-dejagnu |
7496 | maybe-dvi-dejagnu: | |
6bd3dfaa PB |
7497 | @if dejagnu |
7498 | maybe-dvi-dejagnu: dvi-dejagnu | |
2a4cbe27 | 7499 | |
4fa63067 NN |
7500 | dvi-dejagnu: \ |
7501 | configure-dejagnu | |
0aed8855 | 7502 | @: $(MAKE); $(unstage) |
4fa63067 | 7503 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7504 | r=`${PWD_COMMAND}`; export r; \ |
7505 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7506 | $(HOST_EXPORTS) \ |
b813574b | 7507 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7508 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7509 | done; \ | |
4fa63067 | 7510 | echo "Doing dvi in dejagnu" ; \ |
b00612cc | 7511 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7512 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7513 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7514 | "RANLIB=$${RANLIB}" \ | |
7515 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7516 | dvi) \ |
2a4cbe27 NN |
7517 | || exit 1 |
7518 | ||
6bd3dfaa | 7519 | @endif dejagnu |
2a4cbe27 | 7520 | |
6d389afc MS |
7521 | .PHONY: maybe-html-dejagnu html-dejagnu |
7522 | maybe-html-dejagnu: | |
7523 | @if dejagnu | |
7524 | maybe-html-dejagnu: html-dejagnu | |
7525 | ||
7526 | html-dejagnu: \ | |
7527 | configure-dejagnu | |
0aed8855 | 7528 | @: $(MAKE); $(unstage) |
6d389afc MS |
7529 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
7530 | r=`${PWD_COMMAND}`; export r; \ | |
7531 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7532 | $(HOST_EXPORTS) \ |
7533 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7534 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7535 | done; \ | |
7536 | echo "Doing html in dejagnu" ; \ | |
b00612cc | 7537 | (cd $(HOST_SUBDIR)/dejagnu && \ |
6d389afc MS |
7538 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7539 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7540 | "RANLIB=$${RANLIB}" \ | |
7541 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7542 | html) \ | |
7543 | || exit 1 | |
7544 | ||
7545 | @endif dejagnu | |
7546 | ||
4fa63067 NN |
7547 | .PHONY: maybe-TAGS-dejagnu TAGS-dejagnu |
7548 | maybe-TAGS-dejagnu: | |
6bd3dfaa PB |
7549 | @if dejagnu |
7550 | maybe-TAGS-dejagnu: TAGS-dejagnu | |
2a4cbe27 | 7551 | |
4fa63067 NN |
7552 | TAGS-dejagnu: \ |
7553 | configure-dejagnu | |
0aed8855 | 7554 | @: $(MAKE); $(unstage) |
4fa63067 | 7555 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7556 | r=`${PWD_COMMAND}`; export r; \ |
7557 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7558 | $(HOST_EXPORTS) \ |
b813574b | 7559 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7560 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7561 | done; \ | |
4fa63067 | 7562 | echo "Doing TAGS in dejagnu" ; \ |
b00612cc | 7563 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7564 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7565 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7566 | "RANLIB=$${RANLIB}" \ | |
7567 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7568 | TAGS) \ |
2a4cbe27 NN |
7569 | || exit 1 |
7570 | ||
6bd3dfaa | 7571 | @endif dejagnu |
2a4cbe27 | 7572 | |
4fa63067 NN |
7573 | .PHONY: maybe-install-info-dejagnu install-info-dejagnu |
7574 | maybe-install-info-dejagnu: | |
6bd3dfaa PB |
7575 | @if dejagnu |
7576 | maybe-install-info-dejagnu: install-info-dejagnu | |
2a4cbe27 | 7577 | |
4fa63067 NN |
7578 | install-info-dejagnu: \ |
7579 | configure-dejagnu \ | |
7580 | info-dejagnu | |
0aed8855 | 7581 | @: $(MAKE); $(unstage) |
4fa63067 | 7582 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7583 | r=`${PWD_COMMAND}`; export r; \ |
7584 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7585 | $(HOST_EXPORTS) \ |
b813574b | 7586 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7587 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7588 | done; \ | |
4fa63067 | 7589 | echo "Doing install-info in dejagnu" ; \ |
b00612cc | 7590 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7591 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7592 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7593 | "RANLIB=$${RANLIB}" \ | |
7594 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7595 | install-info) \ |
2a4cbe27 NN |
7596 | || exit 1 |
7597 | ||
6bd3dfaa | 7598 | @endif dejagnu |
2a4cbe27 | 7599 | |
108a6f8e CD |
7600 | .PHONY: maybe-install-html-dejagnu install-html-dejagnu |
7601 | maybe-install-html-dejagnu: | |
7602 | @if dejagnu | |
7603 | maybe-install-html-dejagnu: install-html-dejagnu | |
7604 | ||
7605 | install-html-dejagnu: \ | |
7606 | configure-dejagnu \ | |
7607 | html-dejagnu | |
7608 | @: $(MAKE); $(unstage) | |
7609 | @[ -f ./dejagnu/Makefile ] || exit 0; \ | |
7610 | r=`${PWD_COMMAND}`; export r; \ | |
7611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7612 | $(HOST_EXPORTS) \ | |
7613 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7615 | done; \ | |
7616 | echo "Doing install-html in dejagnu" ; \ | |
7617 | (cd $(HOST_SUBDIR)/dejagnu && \ | |
7618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
7619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7620 | "RANLIB=$${RANLIB}" \ | |
7621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7622 | install-html) \ | |
7623 | || exit 1 | |
7624 | ||
7625 | @endif dejagnu | |
7626 | ||
4fa63067 NN |
7627 | .PHONY: maybe-installcheck-dejagnu installcheck-dejagnu |
7628 | maybe-installcheck-dejagnu: | |
6bd3dfaa PB |
7629 | @if dejagnu |
7630 | maybe-installcheck-dejagnu: installcheck-dejagnu | |
2a4cbe27 | 7631 | |
4fa63067 NN |
7632 | installcheck-dejagnu: \ |
7633 | configure-dejagnu | |
0aed8855 | 7634 | @: $(MAKE); $(unstage) |
4fa63067 | 7635 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7636 | r=`${PWD_COMMAND}`; export r; \ |
7637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7638 | $(HOST_EXPORTS) \ |
b813574b | 7639 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7640 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7641 | done; \ | |
4fa63067 | 7642 | echo "Doing installcheck in dejagnu" ; \ |
b00612cc | 7643 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7644 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7645 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7646 | "RANLIB=$${RANLIB}" \ | |
7647 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7648 | installcheck) \ |
2a4cbe27 NN |
7649 | || exit 1 |
7650 | ||
6bd3dfaa | 7651 | @endif dejagnu |
2a4cbe27 | 7652 | |
4fa63067 NN |
7653 | .PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu |
7654 | maybe-mostlyclean-dejagnu: | |
6bd3dfaa PB |
7655 | @if dejagnu |
7656 | maybe-mostlyclean-dejagnu: mostlyclean-dejagnu | |
2a4cbe27 | 7657 | |
4fa63067 | 7658 | mostlyclean-dejagnu: |
0aed8855 | 7659 | @: $(MAKE); $(unstage) |
4fa63067 | 7660 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7661 | r=`${PWD_COMMAND}`; export r; \ |
7662 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7663 | $(HOST_EXPORTS) \ |
b813574b | 7664 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7665 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7666 | done; \ | |
4fa63067 | 7667 | echo "Doing mostlyclean in dejagnu" ; \ |
b00612cc | 7668 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7669 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7670 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7671 | "RANLIB=$${RANLIB}" \ | |
7672 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7673 | mostlyclean) \ |
2a4cbe27 NN |
7674 | || exit 1 |
7675 | ||
6bd3dfaa | 7676 | @endif dejagnu |
2a4cbe27 | 7677 | |
4fa63067 NN |
7678 | .PHONY: maybe-clean-dejagnu clean-dejagnu |
7679 | maybe-clean-dejagnu: | |
6bd3dfaa PB |
7680 | @if dejagnu |
7681 | maybe-clean-dejagnu: clean-dejagnu | |
2a4cbe27 | 7682 | |
4fa63067 | 7683 | clean-dejagnu: |
0aed8855 | 7684 | @: $(MAKE); $(unstage) |
4fa63067 | 7685 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7686 | r=`${PWD_COMMAND}`; export r; \ |
7687 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7688 | $(HOST_EXPORTS) \ |
b813574b | 7689 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7690 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7691 | done; \ | |
4fa63067 | 7692 | echo "Doing clean in dejagnu" ; \ |
b00612cc | 7693 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7694 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7695 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7696 | "RANLIB=$${RANLIB}" \ | |
7697 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7698 | clean) \ |
2a4cbe27 NN |
7699 | || exit 1 |
7700 | ||
6bd3dfaa | 7701 | @endif dejagnu |
2a4cbe27 | 7702 | |
4fa63067 NN |
7703 | .PHONY: maybe-distclean-dejagnu distclean-dejagnu |
7704 | maybe-distclean-dejagnu: | |
6bd3dfaa PB |
7705 | @if dejagnu |
7706 | maybe-distclean-dejagnu: distclean-dejagnu | |
2a4cbe27 | 7707 | |
4fa63067 | 7708 | distclean-dejagnu: |
0aed8855 | 7709 | @: $(MAKE); $(unstage) |
4fa63067 | 7710 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7711 | r=`${PWD_COMMAND}`; export r; \ |
7712 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7713 | $(HOST_EXPORTS) \ |
b813574b | 7714 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7715 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7716 | done; \ | |
4fa63067 | 7717 | echo "Doing distclean in dejagnu" ; \ |
b00612cc | 7718 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7719 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7720 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7721 | "RANLIB=$${RANLIB}" \ | |
7722 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7723 | distclean) \ |
2a4cbe27 NN |
7724 | || exit 1 |
7725 | ||
6bd3dfaa | 7726 | @endif dejagnu |
2a4cbe27 | 7727 | |
4fa63067 NN |
7728 | .PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu |
7729 | maybe-maintainer-clean-dejagnu: | |
6bd3dfaa PB |
7730 | @if dejagnu |
7731 | maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu | |
2a4cbe27 | 7732 | |
4fa63067 | 7733 | maintainer-clean-dejagnu: |
0aed8855 | 7734 | @: $(MAKE); $(unstage) |
4fa63067 | 7735 | @[ -f ./dejagnu/Makefile ] || exit 0; \ |
b40e3958 L |
7736 | r=`${PWD_COMMAND}`; export r; \ |
7737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7738 | $(HOST_EXPORTS) \ |
b813574b | 7739 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7740 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7741 | done; \ | |
4fa63067 | 7742 | echo "Doing maintainer-clean in dejagnu" ; \ |
b00612cc | 7743 | (cd $(HOST_SUBDIR)/dejagnu && \ |
2a4cbe27 NN |
7744 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7745 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7746 | "RANLIB=$${RANLIB}" \ | |
7747 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7748 | maintainer-clean) \ |
4fa63067 NN |
7749 | || exit 1 |
7750 | ||
6bd3dfaa | 7751 | @endif dejagnu |
4fa63067 NN |
7752 | |
7753 | ||
a7254363 | 7754 | |
4fa63067 NN |
7755 | .PHONY: configure-diff maybe-configure-diff |
7756 | maybe-configure-diff: | |
6bd3dfaa PB |
7757 | @if diff |
7758 | maybe-configure-diff: configure-diff | |
c52c6897 | 7759 | configure-diff: |
0aed8855 | 7760 | @: $(MAKE); $(unstage) |
c52c6897 | 7761 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 7762 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
7763 | test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \ |
7764 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \ | |
378fce5b | 7765 | $(HOST_EXPORTS) \ |
a7254363 PB |
7766 | echo Configuring in $(HOST_SUBDIR)/diff; \ |
7767 | cd "$(HOST_SUBDIR)/diff" || exit 1; \ | |
4fa63067 | 7768 | case $(srcdir) in \ |
b00612cc PB |
7769 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
7770 | *) topdir=`echo $(HOST_SUBDIR)/diff/ | \ | |
7771 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 7772 | esac; \ |
b00612cc PB |
7773 | srcdiroption="--srcdir=$${topdir}/diff"; \ |
7774 | libsrcdir="$$s/diff"; \ | |
4fa63067 | 7775 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 7776 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 7777 | || exit 1 |
6bd3dfaa | 7778 | @endif diff |
2a4cbe27 | 7779 | |
a7254363 PB |
7780 | |
7781 | ||
d545f33b PB |
7782 | |
7783 | ||
4fa63067 NN |
7784 | .PHONY: all-diff maybe-all-diff |
7785 | maybe-all-diff: | |
6bd3dfaa | 7786 | @if diff |
d27cc32e | 7787 | TARGET-diff=all |
6bd3dfaa | 7788 | maybe-all-diff: all-diff |
4fa63067 | 7789 | all-diff: configure-diff |
0aed8855 | 7790 | @: $(MAKE); $(unstage) |
4fa63067 NN |
7791 | @r=`${PWD_COMMAND}`; export r; \ |
7792 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7793 | $(HOST_EXPORTS) \ |
b00612cc PB |
7794 | (cd $(HOST_SUBDIR)/diff && \ |
7795 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-diff)) | |
6bd3dfaa | 7796 | @endif diff |
2a4cbe27 | 7797 | |
a7254363 | 7798 | |
d545f33b PB |
7799 | |
7800 | ||
4fa63067 NN |
7801 | .PHONY: check-diff maybe-check-diff |
7802 | maybe-check-diff: | |
6bd3dfaa PB |
7803 | @if diff |
7804 | maybe-check-diff: check-diff | |
2a4cbe27 | 7805 | |
4fa63067 | 7806 | check-diff: |
0aed8855 | 7807 | @: $(MAKE); $(unstage) |
4fa63067 | 7808 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 7809 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7810 | $(HOST_EXPORTS) \ |
b00612cc PB |
7811 | (cd $(HOST_SUBDIR)/diff && \ |
7812 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 7813 | |
6bd3dfaa | 7814 | @endif diff |
2a4cbe27 | 7815 | |
4fa63067 NN |
7816 | .PHONY: install-diff maybe-install-diff |
7817 | maybe-install-diff: | |
6bd3dfaa PB |
7818 | @if diff |
7819 | maybe-install-diff: install-diff | |
2a4cbe27 | 7820 | |
4fa63067 | 7821 | install-diff: installdirs |
0aed8855 | 7822 | @: $(MAKE); $(unstage) |
4fa63067 | 7823 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 7824 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 7825 | $(HOST_EXPORTS) \ |
b00612cc | 7826 | (cd $(HOST_SUBDIR)/diff && \ |
2da12f12 | 7827 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 7828 | |
6bd3dfaa | 7829 | @endif diff |
2a4cbe27 | 7830 | |
4fa63067 | 7831 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 7832 | |
4fa63067 NN |
7833 | .PHONY: maybe-info-diff info-diff |
7834 | maybe-info-diff: | |
6bd3dfaa PB |
7835 | @if diff |
7836 | maybe-info-diff: info-diff | |
2a4cbe27 | 7837 | |
4fa63067 NN |
7838 | info-diff: \ |
7839 | configure-diff | |
0aed8855 | 7840 | @: $(MAKE); $(unstage) |
4fa63067 | 7841 | @[ -f ./diff/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 info in diff" ; \ |
b00612cc | 7849 | (cd $(HOST_SUBDIR)/diff && \ |
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 | info) \ |
2a4cbe27 NN |
7855 | || exit 1 |
7856 | ||
6bd3dfaa | 7857 | @endif diff |
2a4cbe27 | 7858 | |
4fa63067 NN |
7859 | .PHONY: maybe-dvi-diff dvi-diff |
7860 | maybe-dvi-diff: | |
6bd3dfaa PB |
7861 | @if diff |
7862 | maybe-dvi-diff: dvi-diff | |
2a4cbe27 | 7863 | |
4fa63067 NN |
7864 | dvi-diff: \ |
7865 | configure-diff | |
0aed8855 | 7866 | @: $(MAKE); $(unstage) |
4fa63067 | 7867 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
7868 | r=`${PWD_COMMAND}`; export r; \ |
7869 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7870 | $(HOST_EXPORTS) \ |
b813574b | 7871 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7872 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7873 | done; \ | |
4fa63067 | 7874 | echo "Doing dvi in diff" ; \ |
b00612cc | 7875 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
7876 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7877 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7878 | "RANLIB=$${RANLIB}" \ | |
7879 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7880 | dvi) \ |
2a4cbe27 NN |
7881 | || exit 1 |
7882 | ||
6bd3dfaa | 7883 | @endif diff |
2a4cbe27 | 7884 | |
6d389afc MS |
7885 | .PHONY: maybe-html-diff html-diff |
7886 | maybe-html-diff: | |
7887 | @if diff | |
7888 | maybe-html-diff: html-diff | |
7889 | ||
7890 | html-diff: \ | |
7891 | configure-diff | |
0aed8855 | 7892 | @: $(MAKE); $(unstage) |
6d389afc MS |
7893 | @[ -f ./diff/Makefile ] || exit 0; \ |
7894 | r=`${PWD_COMMAND}`; export r; \ | |
7895 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
7896 | $(HOST_EXPORTS) \ |
7897 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7898 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7899 | done; \ | |
7900 | echo "Doing html in diff" ; \ | |
b00612cc | 7901 | (cd $(HOST_SUBDIR)/diff && \ |
6d389afc MS |
7902 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7903 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7904 | "RANLIB=$${RANLIB}" \ | |
7905 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7906 | html) \ | |
7907 | || exit 1 | |
7908 | ||
7909 | @endif diff | |
7910 | ||
4fa63067 NN |
7911 | .PHONY: maybe-TAGS-diff TAGS-diff |
7912 | maybe-TAGS-diff: | |
6bd3dfaa PB |
7913 | @if diff |
7914 | maybe-TAGS-diff: TAGS-diff | |
2a4cbe27 | 7915 | |
4fa63067 NN |
7916 | TAGS-diff: \ |
7917 | configure-diff | |
0aed8855 | 7918 | @: $(MAKE); $(unstage) |
4fa63067 | 7919 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
7920 | r=`${PWD_COMMAND}`; export r; \ |
7921 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7922 | $(HOST_EXPORTS) \ |
b813574b | 7923 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7924 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7925 | done; \ | |
4fa63067 | 7926 | echo "Doing TAGS in diff" ; \ |
b00612cc | 7927 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
7928 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7929 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7930 | "RANLIB=$${RANLIB}" \ | |
7931 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7932 | TAGS) \ |
2a4cbe27 NN |
7933 | || exit 1 |
7934 | ||
6bd3dfaa | 7935 | @endif diff |
2a4cbe27 | 7936 | |
4fa63067 NN |
7937 | .PHONY: maybe-install-info-diff install-info-diff |
7938 | maybe-install-info-diff: | |
6bd3dfaa PB |
7939 | @if diff |
7940 | maybe-install-info-diff: install-info-diff | |
2a4cbe27 | 7941 | |
4fa63067 NN |
7942 | install-info-diff: \ |
7943 | configure-diff \ | |
7944 | info-diff | |
0aed8855 | 7945 | @: $(MAKE); $(unstage) |
4fa63067 | 7946 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
7947 | r=`${PWD_COMMAND}`; export r; \ |
7948 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 7949 | $(HOST_EXPORTS) \ |
b813574b | 7950 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
7951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
7952 | done; \ | |
4fa63067 | 7953 | echo "Doing install-info in diff" ; \ |
b00612cc | 7954 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
7955 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
7956 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7957 | "RANLIB=$${RANLIB}" \ | |
7958 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 7959 | install-info) \ |
2a4cbe27 NN |
7960 | || exit 1 |
7961 | ||
6bd3dfaa | 7962 | @endif diff |
2a4cbe27 | 7963 | |
108a6f8e CD |
7964 | .PHONY: maybe-install-html-diff install-html-diff |
7965 | maybe-install-html-diff: | |
7966 | @if diff | |
7967 | maybe-install-html-diff: install-html-diff | |
7968 | ||
7969 | install-html-diff: \ | |
7970 | configure-diff \ | |
7971 | html-diff | |
7972 | @: $(MAKE); $(unstage) | |
7973 | @[ -f ./diff/Makefile ] || exit 0; \ | |
7974 | r=`${PWD_COMMAND}`; export r; \ | |
7975 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7976 | $(HOST_EXPORTS) \ | |
7977 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
7978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
7979 | done; \ | |
7980 | echo "Doing install-html in diff" ; \ | |
7981 | (cd $(HOST_SUBDIR)/diff && \ | |
7982 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
7983 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7984 | "RANLIB=$${RANLIB}" \ | |
7985 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7986 | install-html) \ | |
7987 | || exit 1 | |
7988 | ||
7989 | @endif diff | |
7990 | ||
4fa63067 NN |
7991 | .PHONY: maybe-installcheck-diff installcheck-diff |
7992 | maybe-installcheck-diff: | |
6bd3dfaa PB |
7993 | @if diff |
7994 | maybe-installcheck-diff: installcheck-diff | |
2a4cbe27 | 7995 | |
4fa63067 NN |
7996 | installcheck-diff: \ |
7997 | configure-diff | |
0aed8855 | 7998 | @: $(MAKE); $(unstage) |
4fa63067 | 7999 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
8000 | r=`${PWD_COMMAND}`; export r; \ |
8001 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8002 | $(HOST_EXPORTS) \ |
b813574b | 8003 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8005 | done; \ | |
4fa63067 | 8006 | echo "Doing installcheck in diff" ; \ |
b00612cc | 8007 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
8008 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8009 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8010 | "RANLIB=$${RANLIB}" \ | |
8011 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8012 | installcheck) \ |
2a4cbe27 NN |
8013 | || exit 1 |
8014 | ||
6bd3dfaa | 8015 | @endif diff |
2a4cbe27 | 8016 | |
4fa63067 NN |
8017 | .PHONY: maybe-mostlyclean-diff mostlyclean-diff |
8018 | maybe-mostlyclean-diff: | |
6bd3dfaa PB |
8019 | @if diff |
8020 | maybe-mostlyclean-diff: mostlyclean-diff | |
2a4cbe27 | 8021 | |
4fa63067 | 8022 | mostlyclean-diff: |
0aed8855 | 8023 | @: $(MAKE); $(unstage) |
4fa63067 | 8024 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
8025 | r=`${PWD_COMMAND}`; export r; \ |
8026 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8027 | $(HOST_EXPORTS) \ |
b813574b | 8028 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8029 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8030 | done; \ | |
4fa63067 | 8031 | echo "Doing mostlyclean in diff" ; \ |
b00612cc | 8032 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
8033 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8034 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8035 | "RANLIB=$${RANLIB}" \ | |
8036 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8037 | mostlyclean) \ |
2a4cbe27 NN |
8038 | || exit 1 |
8039 | ||
6bd3dfaa | 8040 | @endif diff |
2a4cbe27 | 8041 | |
4fa63067 NN |
8042 | .PHONY: maybe-clean-diff clean-diff |
8043 | maybe-clean-diff: | |
6bd3dfaa PB |
8044 | @if diff |
8045 | maybe-clean-diff: clean-diff | |
2a4cbe27 | 8046 | |
4fa63067 | 8047 | clean-diff: |
0aed8855 | 8048 | @: $(MAKE); $(unstage) |
4fa63067 | 8049 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
8050 | r=`${PWD_COMMAND}`; export r; \ |
8051 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8052 | $(HOST_EXPORTS) \ |
b813574b | 8053 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8054 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8055 | done; \ | |
4fa63067 | 8056 | echo "Doing clean in diff" ; \ |
b00612cc | 8057 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
8058 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8059 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8060 | "RANLIB=$${RANLIB}" \ | |
8061 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8062 | clean) \ |
2a4cbe27 NN |
8063 | || exit 1 |
8064 | ||
6bd3dfaa | 8065 | @endif diff |
2a4cbe27 | 8066 | |
4fa63067 NN |
8067 | .PHONY: maybe-distclean-diff distclean-diff |
8068 | maybe-distclean-diff: | |
6bd3dfaa PB |
8069 | @if diff |
8070 | maybe-distclean-diff: distclean-diff | |
2a4cbe27 | 8071 | |
4fa63067 | 8072 | distclean-diff: |
0aed8855 | 8073 | @: $(MAKE); $(unstage) |
4fa63067 | 8074 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
8075 | r=`${PWD_COMMAND}`; export r; \ |
8076 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8077 | $(HOST_EXPORTS) \ |
b813574b | 8078 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8079 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8080 | done; \ | |
4fa63067 | 8081 | echo "Doing distclean in diff" ; \ |
b00612cc | 8082 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
8083 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8084 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8085 | "RANLIB=$${RANLIB}" \ | |
8086 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8087 | distclean) \ |
2a4cbe27 NN |
8088 | || exit 1 |
8089 | ||
6bd3dfaa | 8090 | @endif diff |
2a4cbe27 | 8091 | |
4fa63067 NN |
8092 | .PHONY: maybe-maintainer-clean-diff maintainer-clean-diff |
8093 | maybe-maintainer-clean-diff: | |
6bd3dfaa PB |
8094 | @if diff |
8095 | maybe-maintainer-clean-diff: maintainer-clean-diff | |
2a4cbe27 | 8096 | |
4fa63067 | 8097 | maintainer-clean-diff: |
0aed8855 | 8098 | @: $(MAKE); $(unstage) |
4fa63067 | 8099 | @[ -f ./diff/Makefile ] || exit 0; \ |
b40e3958 L |
8100 | r=`${PWD_COMMAND}`; export r; \ |
8101 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8102 | $(HOST_EXPORTS) \ |
b813574b | 8103 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8104 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8105 | done; \ | |
4fa63067 | 8106 | echo "Doing maintainer-clean in diff" ; \ |
b00612cc | 8107 | (cd $(HOST_SUBDIR)/diff && \ |
2a4cbe27 NN |
8108 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8109 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8110 | "RANLIB=$${RANLIB}" \ | |
8111 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8112 | maintainer-clean) \ |
2a4cbe27 NN |
8113 | || exit 1 |
8114 | ||
6bd3dfaa | 8115 | @endif diff |
2a4cbe27 | 8116 | |
2a4cbe27 | 8117 | |
a7254363 | 8118 | |
4fa63067 NN |
8119 | .PHONY: configure-dosutils maybe-configure-dosutils |
8120 | maybe-configure-dosutils: | |
6bd3dfaa PB |
8121 | @if dosutils |
8122 | maybe-configure-dosutils: configure-dosutils | |
c52c6897 | 8123 | configure-dosutils: |
0aed8855 | 8124 | @: $(MAKE); $(unstage) |
c52c6897 | 8125 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 8126 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
8127 | test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \ |
8128 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \ | |
378fce5b | 8129 | $(HOST_EXPORTS) \ |
a7254363 PB |
8130 | echo Configuring in $(HOST_SUBDIR)/dosutils; \ |
8131 | cd "$(HOST_SUBDIR)/dosutils" || exit 1; \ | |
4fa63067 | 8132 | case $(srcdir) in \ |
b00612cc PB |
8133 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
8134 | *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \ | |
8135 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 8136 | esac; \ |
b00612cc PB |
8137 | srcdiroption="--srcdir=$${topdir}/dosutils"; \ |
8138 | libsrcdir="$$s/dosutils"; \ | |
4fa63067 | 8139 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 8140 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 8141 | || exit 1 |
6bd3dfaa | 8142 | @endif dosutils |
4fa63067 | 8143 | |
a7254363 PB |
8144 | |
8145 | ||
d545f33b PB |
8146 | |
8147 | ||
4fa63067 NN |
8148 | .PHONY: all-dosutils maybe-all-dosutils |
8149 | maybe-all-dosutils: | |
6bd3dfaa | 8150 | @if dosutils |
d27cc32e | 8151 | TARGET-dosutils=all |
6bd3dfaa | 8152 | maybe-all-dosutils: all-dosutils |
4fa63067 | 8153 | all-dosutils: configure-dosutils |
0aed8855 | 8154 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8155 | @r=`${PWD_COMMAND}`; export r; \ |
8156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8157 | $(HOST_EXPORTS) \ |
b00612cc PB |
8158 | (cd $(HOST_SUBDIR)/dosutils && \ |
8159 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dosutils)) | |
6bd3dfaa | 8160 | @endif dosutils |
4fa63067 | 8161 | |
a7254363 | 8162 | |
d545f33b PB |
8163 | |
8164 | ||
4fa63067 NN |
8165 | .PHONY: check-dosutils maybe-check-dosutils |
8166 | maybe-check-dosutils: | |
6bd3dfaa PB |
8167 | @if dosutils |
8168 | maybe-check-dosutils: check-dosutils | |
2a4cbe27 | 8169 | |
4fa63067 | 8170 | check-dosutils: |
2a4cbe27 | 8171 | |
6bd3dfaa | 8172 | @endif dosutils |
2a4cbe27 | 8173 | |
4fa63067 NN |
8174 | .PHONY: install-dosutils maybe-install-dosutils |
8175 | maybe-install-dosutils: | |
6bd3dfaa PB |
8176 | @if dosutils |
8177 | maybe-install-dosutils: install-dosutils | |
4fa63067 NN |
8178 | |
8179 | install-dosutils: installdirs | |
0aed8855 | 8180 | @: $(MAKE); $(unstage) |
4fa63067 | 8181 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 8182 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 8183 | $(HOST_EXPORTS) \ |
b00612cc | 8184 | (cd $(HOST_SUBDIR)/dosutils && \ |
2da12f12 | 8185 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 8186 | |
6bd3dfaa | 8187 | @endif dosutils |
2a4cbe27 | 8188 | |
4fa63067 | 8189 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 8190 | |
4fa63067 NN |
8191 | .PHONY: maybe-info-dosutils info-dosutils |
8192 | maybe-info-dosutils: | |
6bd3dfaa PB |
8193 | @if dosutils |
8194 | maybe-info-dosutils: info-dosutils | |
4fa63067 NN |
8195 | |
8196 | info-dosutils: \ | |
8197 | configure-dosutils | |
0aed8855 | 8198 | @: $(MAKE); $(unstage) |
4fa63067 | 8199 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8200 | r=`${PWD_COMMAND}`; export r; \ |
8201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8202 | $(HOST_EXPORTS) \ |
b813574b | 8203 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8204 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8205 | done; \ | |
4fa63067 | 8206 | echo "Doing info in dosutils" ; \ |
b00612cc | 8207 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8208 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8209 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8210 | "RANLIB=$${RANLIB}" \ | |
8211 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8212 | info) \ |
2a4cbe27 NN |
8213 | || exit 1 |
8214 | ||
6bd3dfaa | 8215 | @endif dosutils |
2a4cbe27 | 8216 | |
4fa63067 NN |
8217 | .PHONY: maybe-dvi-dosutils dvi-dosutils |
8218 | maybe-dvi-dosutils: | |
6bd3dfaa PB |
8219 | @if dosutils |
8220 | maybe-dvi-dosutils: dvi-dosutils | |
2a4cbe27 | 8221 | |
4fa63067 NN |
8222 | dvi-dosutils: \ |
8223 | configure-dosutils | |
0aed8855 | 8224 | @: $(MAKE); $(unstage) |
4fa63067 | 8225 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8226 | r=`${PWD_COMMAND}`; export r; \ |
8227 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8228 | $(HOST_EXPORTS) \ |
b813574b | 8229 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8230 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8231 | done; \ | |
4fa63067 | 8232 | echo "Doing dvi in dosutils" ; \ |
b00612cc | 8233 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8234 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8235 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8236 | "RANLIB=$${RANLIB}" \ | |
8237 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8238 | dvi) \ |
2a4cbe27 NN |
8239 | || exit 1 |
8240 | ||
6bd3dfaa | 8241 | @endif dosutils |
2a4cbe27 | 8242 | |
6d389afc MS |
8243 | .PHONY: maybe-html-dosutils html-dosutils |
8244 | maybe-html-dosutils: | |
6bd3dfaa | 8245 | @if dosutils |
6d389afc | 8246 | maybe-html-dosutils: html-dosutils |
2a4cbe27 | 8247 | |
6d389afc | 8248 | html-dosutils: \ |
4fa63067 | 8249 | configure-dosutils |
0aed8855 | 8250 | @: $(MAKE); $(unstage) |
4fa63067 | 8251 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8252 | r=`${PWD_COMMAND}`; export r; \ |
8253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8254 | $(HOST_EXPORTS) \ |
b813574b | 8255 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8256 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8257 | done; \ | |
6d389afc | 8258 | echo "Doing html in dosutils" ; \ |
b00612cc | 8259 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8260 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8261 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8262 | "RANLIB=$${RANLIB}" \ | |
8263 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 8264 | html) \ |
2a4cbe27 NN |
8265 | || exit 1 |
8266 | ||
6bd3dfaa | 8267 | @endif dosutils |
2a4cbe27 | 8268 | |
6d389afc MS |
8269 | .PHONY: maybe-TAGS-dosutils TAGS-dosutils |
8270 | maybe-TAGS-dosutils: | |
6bd3dfaa | 8271 | @if dosutils |
6d389afc | 8272 | maybe-TAGS-dosutils: TAGS-dosutils |
2a4cbe27 | 8273 | |
6d389afc MS |
8274 | TAGS-dosutils: \ |
8275 | configure-dosutils | |
0aed8855 | 8276 | @: $(MAKE); $(unstage) |
6d389afc MS |
8277 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
8278 | r=`${PWD_COMMAND}`; export r; \ | |
8279 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8280 | $(HOST_EXPORTS) \ |
8281 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8282 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8283 | done; \ | |
8284 | echo "Doing TAGS in dosutils" ; \ | |
b00612cc | 8285 | (cd $(HOST_SUBDIR)/dosutils && \ |
6d389afc MS |
8286 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8287 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8288 | "RANLIB=$${RANLIB}" \ | |
8289 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8290 | TAGS) \ | |
8291 | || exit 1 | |
8292 | ||
8293 | @endif dosutils | |
8294 | ||
8295 | .PHONY: maybe-install-info-dosutils install-info-dosutils | |
8296 | maybe-install-info-dosutils: | |
8297 | @if dosutils | |
8298 | maybe-install-info-dosutils: install-info-dosutils | |
8299 | ||
8300 | install-info-dosutils: \ | |
8301 | configure-dosutils \ | |
8302 | info-dosutils | |
0aed8855 | 8303 | @: $(MAKE); $(unstage) |
4fa63067 | 8304 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8305 | r=`${PWD_COMMAND}`; export r; \ |
8306 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8307 | $(HOST_EXPORTS) \ |
b813574b | 8308 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8309 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8310 | done; \ | |
4fa63067 | 8311 | echo "Doing install-info in dosutils" ; \ |
b00612cc | 8312 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8313 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8314 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8315 | "RANLIB=$${RANLIB}" \ | |
8316 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8317 | install-info) \ |
2a4cbe27 NN |
8318 | || exit 1 |
8319 | ||
6bd3dfaa | 8320 | @endif dosutils |
2a4cbe27 | 8321 | |
108a6f8e CD |
8322 | .PHONY: maybe-install-html-dosutils install-html-dosutils |
8323 | maybe-install-html-dosutils: | |
8324 | @if dosutils | |
8325 | maybe-install-html-dosutils: install-html-dosutils | |
8326 | ||
8327 | install-html-dosutils: \ | |
8328 | configure-dosutils \ | |
8329 | html-dosutils | |
8330 | @: $(MAKE); $(unstage) | |
8331 | @[ -f ./dosutils/Makefile ] || exit 0; \ | |
8332 | r=`${PWD_COMMAND}`; export r; \ | |
8333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8334 | $(HOST_EXPORTS) \ | |
8335 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8336 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8337 | done; \ | |
8338 | echo "Doing install-html in dosutils" ; \ | |
8339 | (cd $(HOST_SUBDIR)/dosutils && \ | |
8340 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
8341 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8342 | "RANLIB=$${RANLIB}" \ | |
8343 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8344 | install-html) \ | |
8345 | || exit 1 | |
8346 | ||
8347 | @endif dosutils | |
8348 | ||
4fa63067 NN |
8349 | .PHONY: maybe-installcheck-dosutils installcheck-dosutils |
8350 | maybe-installcheck-dosutils: | |
6bd3dfaa PB |
8351 | @if dosutils |
8352 | maybe-installcheck-dosutils: installcheck-dosutils | |
2a4cbe27 | 8353 | |
4fa63067 NN |
8354 | installcheck-dosutils: \ |
8355 | configure-dosutils | |
0aed8855 | 8356 | @: $(MAKE); $(unstage) |
4fa63067 | 8357 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8358 | r=`${PWD_COMMAND}`; export r; \ |
8359 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8360 | $(HOST_EXPORTS) \ |
b813574b | 8361 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8362 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8363 | done; \ | |
4fa63067 | 8364 | echo "Doing installcheck in dosutils" ; \ |
b00612cc | 8365 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8366 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8367 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8368 | "RANLIB=$${RANLIB}" \ | |
8369 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8370 | installcheck) \ |
2a4cbe27 NN |
8371 | || exit 1 |
8372 | ||
6bd3dfaa | 8373 | @endif dosutils |
2a4cbe27 | 8374 | |
4fa63067 NN |
8375 | .PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils |
8376 | maybe-mostlyclean-dosutils: | |
6bd3dfaa PB |
8377 | @if dosutils |
8378 | maybe-mostlyclean-dosutils: mostlyclean-dosutils | |
a2592b1b | 8379 | |
4fa63067 | 8380 | mostlyclean-dosutils: |
0aed8855 | 8381 | @: $(MAKE); $(unstage) |
4fa63067 | 8382 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
a2592b1b DD |
8383 | r=`${PWD_COMMAND}`; export r; \ |
8384 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8385 | $(HOST_EXPORTS) \ |
b813574b | 8386 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
8387 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8388 | done; \ | |
4fa63067 | 8389 | echo "Doing mostlyclean in dosutils" ; \ |
b00612cc | 8390 | (cd $(HOST_SUBDIR)/dosutils && \ |
a2592b1b DD |
8391 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8392 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8393 | "RANLIB=$${RANLIB}" \ | |
8394 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8395 | mostlyclean) \ |
a2592b1b DD |
8396 | || exit 1 |
8397 | ||
6bd3dfaa | 8398 | @endif dosutils |
a2592b1b | 8399 | |
4fa63067 NN |
8400 | .PHONY: maybe-clean-dosutils clean-dosutils |
8401 | maybe-clean-dosutils: | |
6bd3dfaa PB |
8402 | @if dosutils |
8403 | maybe-clean-dosutils: clean-dosutils | |
2a4cbe27 | 8404 | |
4fa63067 | 8405 | clean-dosutils: |
0aed8855 | 8406 | @: $(MAKE); $(unstage) |
4fa63067 | 8407 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8408 | r=`${PWD_COMMAND}`; export r; \ |
8409 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8410 | $(HOST_EXPORTS) \ |
b813574b | 8411 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8412 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8413 | done; \ | |
4fa63067 | 8414 | echo "Doing clean in dosutils" ; \ |
b00612cc | 8415 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8416 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8417 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8418 | "RANLIB=$${RANLIB}" \ | |
8419 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8420 | clean) \ |
2a4cbe27 NN |
8421 | || exit 1 |
8422 | ||
6bd3dfaa | 8423 | @endif dosutils |
2a4cbe27 | 8424 | |
4fa63067 NN |
8425 | .PHONY: maybe-distclean-dosutils distclean-dosutils |
8426 | maybe-distclean-dosutils: | |
6bd3dfaa PB |
8427 | @if dosutils |
8428 | maybe-distclean-dosutils: distclean-dosutils | |
2a4cbe27 | 8429 | |
4fa63067 | 8430 | distclean-dosutils: |
0aed8855 | 8431 | @: $(MAKE); $(unstage) |
4fa63067 | 8432 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8433 | r=`${PWD_COMMAND}`; export r; \ |
8434 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8435 | $(HOST_EXPORTS) \ |
b813574b | 8436 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8437 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8438 | done; \ | |
4fa63067 | 8439 | echo "Doing distclean in dosutils" ; \ |
b00612cc | 8440 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8441 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8442 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8443 | "RANLIB=$${RANLIB}" \ | |
8444 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8445 | distclean) \ |
2a4cbe27 NN |
8446 | || exit 1 |
8447 | ||
6bd3dfaa | 8448 | @endif dosutils |
2a4cbe27 | 8449 | |
4fa63067 NN |
8450 | .PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils |
8451 | maybe-maintainer-clean-dosutils: | |
6bd3dfaa PB |
8452 | @if dosutils |
8453 | maybe-maintainer-clean-dosutils: maintainer-clean-dosutils | |
2a4cbe27 | 8454 | |
4fa63067 | 8455 | maintainer-clean-dosutils: |
0aed8855 | 8456 | @: $(MAKE); $(unstage) |
4fa63067 | 8457 | @[ -f ./dosutils/Makefile ] || exit 0; \ |
b40e3958 L |
8458 | r=`${PWD_COMMAND}`; export r; \ |
8459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8460 | $(HOST_EXPORTS) \ |
b813574b | 8461 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8462 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8463 | done; \ | |
4fa63067 | 8464 | echo "Doing maintainer-clean in dosutils" ; \ |
b00612cc | 8465 | (cd $(HOST_SUBDIR)/dosutils && \ |
2a4cbe27 NN |
8466 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8467 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8468 | "RANLIB=$${RANLIB}" \ | |
8469 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8470 | maintainer-clean) \ |
2a4cbe27 NN |
8471 | || exit 1 |
8472 | ||
6bd3dfaa | 8473 | @endif dosutils |
2a4cbe27 | 8474 | |
2a4cbe27 | 8475 | |
a7254363 | 8476 | |
4fa63067 NN |
8477 | .PHONY: configure-etc maybe-configure-etc |
8478 | maybe-configure-etc: | |
6bd3dfaa PB |
8479 | @if etc |
8480 | maybe-configure-etc: configure-etc | |
c52c6897 | 8481 | configure-etc: |
0aed8855 | 8482 | @: $(MAKE); $(unstage) |
c52c6897 | 8483 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 8484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
8485 | test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \ |
8486 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \ | |
378fce5b | 8487 | $(HOST_EXPORTS) \ |
a7254363 PB |
8488 | echo Configuring in $(HOST_SUBDIR)/etc; \ |
8489 | cd "$(HOST_SUBDIR)/etc" || exit 1; \ | |
4fa63067 | 8490 | case $(srcdir) in \ |
b00612cc PB |
8491 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
8492 | *) topdir=`echo $(HOST_SUBDIR)/etc/ | \ | |
8493 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 8494 | esac; \ |
b00612cc PB |
8495 | srcdiroption="--srcdir=$${topdir}/etc"; \ |
8496 | libsrcdir="$$s/etc"; \ | |
4fa63067 | 8497 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 8498 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 8499 | || exit 1 |
6bd3dfaa | 8500 | @endif etc |
4fa63067 | 8501 | |
a7254363 PB |
8502 | |
8503 | ||
d545f33b PB |
8504 | |
8505 | ||
4fa63067 NN |
8506 | .PHONY: all-etc maybe-all-etc |
8507 | maybe-all-etc: | |
6bd3dfaa | 8508 | @if etc |
d27cc32e | 8509 | TARGET-etc=all |
6bd3dfaa | 8510 | maybe-all-etc: all-etc |
4fa63067 | 8511 | all-etc: configure-etc |
0aed8855 | 8512 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8513 | @r=`${PWD_COMMAND}`; export r; \ |
8514 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8515 | $(HOST_EXPORTS) \ |
b00612cc PB |
8516 | (cd $(HOST_SUBDIR)/etc && \ |
8517 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-etc)) | |
6bd3dfaa | 8518 | @endif etc |
4fa63067 | 8519 | |
a7254363 | 8520 | |
d545f33b PB |
8521 | |
8522 | ||
4fa63067 NN |
8523 | .PHONY: check-etc maybe-check-etc |
8524 | maybe-check-etc: | |
6bd3dfaa PB |
8525 | @if etc |
8526 | maybe-check-etc: check-etc | |
4fa63067 NN |
8527 | |
8528 | check-etc: | |
0aed8855 | 8529 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8530 | @r=`${PWD_COMMAND}`; export r; \ |
8531 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8532 | $(HOST_EXPORTS) \ |
b00612cc PB |
8533 | (cd $(HOST_SUBDIR)/etc && \ |
8534 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 8535 | |
6bd3dfaa | 8536 | @endif etc |
4fa63067 NN |
8537 | |
8538 | .PHONY: install-etc maybe-install-etc | |
8539 | maybe-install-etc: | |
6bd3dfaa PB |
8540 | @if etc |
8541 | maybe-install-etc: install-etc | |
4fa63067 NN |
8542 | |
8543 | install-etc: installdirs | |
0aed8855 | 8544 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8545 | @r=`${PWD_COMMAND}`; export r; \ |
8546 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8547 | $(HOST_EXPORTS) \ |
b00612cc | 8548 | (cd $(HOST_SUBDIR)/etc && \ |
2da12f12 | 8549 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 8550 | |
6bd3dfaa | 8551 | @endif etc |
4fa63067 NN |
8552 | |
8553 | # Other targets (info, dvi, etc.) | |
8554 | ||
8555 | .PHONY: maybe-info-etc info-etc | |
8556 | maybe-info-etc: | |
6bd3dfaa PB |
8557 | @if etc |
8558 | maybe-info-etc: info-etc | |
4fa63067 NN |
8559 | |
8560 | info-etc: \ | |
8561 | configure-etc | |
0aed8855 | 8562 | @: $(MAKE); $(unstage) |
4fa63067 | 8563 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8564 | r=`${PWD_COMMAND}`; export r; \ |
8565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8566 | $(HOST_EXPORTS) \ |
b813574b | 8567 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8568 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8569 | done; \ | |
4fa63067 | 8570 | echo "Doing info in etc" ; \ |
b00612cc | 8571 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8572 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8573 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8574 | "RANLIB=$${RANLIB}" \ | |
8575 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8576 | info) \ |
2a4cbe27 NN |
8577 | || exit 1 |
8578 | ||
6bd3dfaa | 8579 | @endif etc |
2a4cbe27 | 8580 | |
4fa63067 NN |
8581 | .PHONY: maybe-dvi-etc dvi-etc |
8582 | maybe-dvi-etc: | |
6bd3dfaa PB |
8583 | @if etc |
8584 | maybe-dvi-etc: dvi-etc | |
2a4cbe27 | 8585 | |
4fa63067 NN |
8586 | dvi-etc: \ |
8587 | configure-etc | |
0aed8855 | 8588 | @: $(MAKE); $(unstage) |
4fa63067 | 8589 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8590 | r=`${PWD_COMMAND}`; export r; \ |
8591 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8592 | $(HOST_EXPORTS) \ |
b813574b | 8593 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8594 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8595 | done; \ | |
4fa63067 | 8596 | echo "Doing dvi in etc" ; \ |
b00612cc | 8597 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8598 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8599 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8600 | "RANLIB=$${RANLIB}" \ | |
8601 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8602 | dvi) \ |
2a4cbe27 NN |
8603 | || exit 1 |
8604 | ||
6bd3dfaa | 8605 | @endif etc |
2a4cbe27 | 8606 | |
6d389afc MS |
8607 | .PHONY: maybe-html-etc html-etc |
8608 | maybe-html-etc: | |
8609 | @if etc | |
8610 | maybe-html-etc: html-etc | |
8611 | ||
8612 | html-etc: \ | |
8613 | configure-etc | |
0aed8855 | 8614 | @: $(MAKE); $(unstage) |
6d389afc MS |
8615 | @[ -f ./etc/Makefile ] || exit 0; \ |
8616 | r=`${PWD_COMMAND}`; export r; \ | |
8617 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8618 | $(HOST_EXPORTS) \ |
8619 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8620 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8621 | done; \ | |
8622 | echo "Doing html in etc" ; \ | |
b00612cc | 8623 | (cd $(HOST_SUBDIR)/etc && \ |
6d389afc MS |
8624 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8625 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8626 | "RANLIB=$${RANLIB}" \ | |
8627 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8628 | html) \ | |
8629 | || exit 1 | |
8630 | ||
8631 | @endif etc | |
8632 | ||
4fa63067 NN |
8633 | .PHONY: maybe-TAGS-etc TAGS-etc |
8634 | maybe-TAGS-etc: | |
6bd3dfaa PB |
8635 | @if etc |
8636 | maybe-TAGS-etc: TAGS-etc | |
2a4cbe27 | 8637 | |
4fa63067 NN |
8638 | TAGS-etc: \ |
8639 | configure-etc | |
0aed8855 | 8640 | @: $(MAKE); $(unstage) |
4fa63067 | 8641 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8642 | r=`${PWD_COMMAND}`; export r; \ |
8643 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8644 | $(HOST_EXPORTS) \ |
b813574b | 8645 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8646 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8647 | done; \ | |
4fa63067 | 8648 | echo "Doing TAGS in etc" ; \ |
b00612cc | 8649 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8650 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8651 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8652 | "RANLIB=$${RANLIB}" \ | |
8653 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8654 | TAGS) \ |
2a4cbe27 NN |
8655 | || exit 1 |
8656 | ||
6bd3dfaa | 8657 | @endif etc |
2a4cbe27 | 8658 | |
4fa63067 NN |
8659 | .PHONY: maybe-install-info-etc install-info-etc |
8660 | maybe-install-info-etc: | |
6bd3dfaa PB |
8661 | @if etc |
8662 | maybe-install-info-etc: install-info-etc | |
2a4cbe27 | 8663 | |
4fa63067 NN |
8664 | install-info-etc: \ |
8665 | configure-etc \ | |
8666 | info-etc | |
0aed8855 | 8667 | @: $(MAKE); $(unstage) |
4fa63067 | 8668 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8669 | r=`${PWD_COMMAND}`; export r; \ |
8670 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8671 | $(HOST_EXPORTS) \ |
b813574b | 8672 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8673 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8674 | done; \ | |
4fa63067 | 8675 | echo "Doing install-info in etc" ; \ |
b00612cc | 8676 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8677 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8678 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8679 | "RANLIB=$${RANLIB}" \ | |
8680 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8681 | install-info) \ |
2a4cbe27 NN |
8682 | || exit 1 |
8683 | ||
6bd3dfaa | 8684 | @endif etc |
2a4cbe27 | 8685 | |
108a6f8e CD |
8686 | .PHONY: maybe-install-html-etc install-html-etc |
8687 | maybe-install-html-etc: | |
8688 | @if etc | |
8689 | maybe-install-html-etc: install-html-etc | |
8690 | ||
8691 | install-html-etc: \ | |
8692 | configure-etc \ | |
8693 | html-etc | |
8694 | @: $(MAKE); $(unstage) | |
8695 | @[ -f ./etc/Makefile ] || exit 0; \ | |
8696 | r=`${PWD_COMMAND}`; export r; \ | |
8697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
8698 | $(HOST_EXPORTS) \ | |
8699 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8700 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8701 | done; \ | |
8702 | echo "Doing install-html in etc" ; \ | |
8703 | (cd $(HOST_SUBDIR)/etc && \ | |
8704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
8705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8706 | "RANLIB=$${RANLIB}" \ | |
8707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8708 | install-html) \ | |
8709 | || exit 1 | |
8710 | ||
8711 | @endif etc | |
8712 | ||
4fa63067 NN |
8713 | .PHONY: maybe-installcheck-etc installcheck-etc |
8714 | maybe-installcheck-etc: | |
6bd3dfaa PB |
8715 | @if etc |
8716 | maybe-installcheck-etc: installcheck-etc | |
2a4cbe27 | 8717 | |
4fa63067 NN |
8718 | installcheck-etc: \ |
8719 | configure-etc | |
0aed8855 | 8720 | @: $(MAKE); $(unstage) |
4fa63067 | 8721 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8722 | r=`${PWD_COMMAND}`; export r; \ |
8723 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8724 | $(HOST_EXPORTS) \ |
b813574b | 8725 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8726 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8727 | done; \ | |
4fa63067 | 8728 | echo "Doing installcheck in etc" ; \ |
b00612cc | 8729 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8730 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8731 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8732 | "RANLIB=$${RANLIB}" \ | |
8733 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8734 | installcheck) \ |
2a4cbe27 NN |
8735 | || exit 1 |
8736 | ||
6bd3dfaa | 8737 | @endif etc |
2a4cbe27 | 8738 | |
4fa63067 NN |
8739 | .PHONY: maybe-mostlyclean-etc mostlyclean-etc |
8740 | maybe-mostlyclean-etc: | |
6bd3dfaa PB |
8741 | @if etc |
8742 | maybe-mostlyclean-etc: mostlyclean-etc | |
2a4cbe27 | 8743 | |
4fa63067 | 8744 | mostlyclean-etc: |
0aed8855 | 8745 | @: $(MAKE); $(unstage) |
4fa63067 | 8746 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8747 | r=`${PWD_COMMAND}`; export r; \ |
8748 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8749 | $(HOST_EXPORTS) \ |
b813574b | 8750 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8751 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8752 | done; \ | |
4fa63067 | 8753 | echo "Doing mostlyclean in etc" ; \ |
b00612cc | 8754 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8755 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8756 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8757 | "RANLIB=$${RANLIB}" \ | |
8758 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8759 | mostlyclean) \ |
2a4cbe27 NN |
8760 | || exit 1 |
8761 | ||
6bd3dfaa | 8762 | @endif etc |
2a4cbe27 | 8763 | |
4fa63067 NN |
8764 | .PHONY: maybe-clean-etc clean-etc |
8765 | maybe-clean-etc: | |
6bd3dfaa PB |
8766 | @if etc |
8767 | maybe-clean-etc: clean-etc | |
2a4cbe27 | 8768 | |
4fa63067 | 8769 | clean-etc: |
0aed8855 | 8770 | @: $(MAKE); $(unstage) |
4fa63067 | 8771 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8772 | r=`${PWD_COMMAND}`; export r; \ |
8773 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8774 | $(HOST_EXPORTS) \ |
b813574b | 8775 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8776 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8777 | done; \ | |
4fa63067 | 8778 | echo "Doing clean in etc" ; \ |
b00612cc | 8779 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8780 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8781 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8782 | "RANLIB=$${RANLIB}" \ | |
8783 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8784 | clean) \ |
2a4cbe27 NN |
8785 | || exit 1 |
8786 | ||
6bd3dfaa | 8787 | @endif etc |
2a4cbe27 | 8788 | |
4fa63067 NN |
8789 | .PHONY: maybe-distclean-etc distclean-etc |
8790 | maybe-distclean-etc: | |
6bd3dfaa PB |
8791 | @if etc |
8792 | maybe-distclean-etc: distclean-etc | |
2a4cbe27 | 8793 | |
4fa63067 | 8794 | distclean-etc: |
0aed8855 | 8795 | @: $(MAKE); $(unstage) |
4fa63067 | 8796 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8797 | r=`${PWD_COMMAND}`; export r; \ |
8798 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8799 | $(HOST_EXPORTS) \ |
b813574b | 8800 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8801 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8802 | done; \ | |
4fa63067 | 8803 | echo "Doing distclean in etc" ; \ |
b00612cc | 8804 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8805 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8806 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8807 | "RANLIB=$${RANLIB}" \ | |
8808 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8809 | distclean) \ |
2a4cbe27 NN |
8810 | || exit 1 |
8811 | ||
6bd3dfaa | 8812 | @endif etc |
2a4cbe27 | 8813 | |
4fa63067 NN |
8814 | .PHONY: maybe-maintainer-clean-etc maintainer-clean-etc |
8815 | maybe-maintainer-clean-etc: | |
6bd3dfaa PB |
8816 | @if etc |
8817 | maybe-maintainer-clean-etc: maintainer-clean-etc | |
2a4cbe27 | 8818 | |
4fa63067 | 8819 | maintainer-clean-etc: |
0aed8855 | 8820 | @: $(MAKE); $(unstage) |
4fa63067 | 8821 | @[ -f ./etc/Makefile ] || exit 0; \ |
b40e3958 L |
8822 | r=`${PWD_COMMAND}`; export r; \ |
8823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8824 | $(HOST_EXPORTS) \ |
b813574b | 8825 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8826 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8827 | done; \ | |
4fa63067 | 8828 | echo "Doing maintainer-clean in etc" ; \ |
b00612cc | 8829 | (cd $(HOST_SUBDIR)/etc && \ |
2a4cbe27 NN |
8830 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8831 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8832 | "RANLIB=$${RANLIB}" \ | |
8833 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8834 | maintainer-clean) \ |
2a4cbe27 NN |
8835 | || exit 1 |
8836 | ||
6bd3dfaa | 8837 | @endif etc |
2a4cbe27 | 8838 | |
2a4cbe27 | 8839 | |
a7254363 | 8840 | |
4fa63067 NN |
8841 | .PHONY: configure-fastjar maybe-configure-fastjar |
8842 | maybe-configure-fastjar: | |
6bd3dfaa PB |
8843 | @if fastjar |
8844 | maybe-configure-fastjar: configure-fastjar | |
c52c6897 | 8845 | configure-fastjar: |
0aed8855 | 8846 | @: $(MAKE); $(unstage) |
c52c6897 | 8847 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 8848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
8849 | test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \ |
8850 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \ | |
378fce5b | 8851 | $(HOST_EXPORTS) \ |
a7254363 PB |
8852 | echo Configuring in $(HOST_SUBDIR)/fastjar; \ |
8853 | cd "$(HOST_SUBDIR)/fastjar" || exit 1; \ | |
4fa63067 | 8854 | case $(srcdir) in \ |
b00612cc PB |
8855 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
8856 | *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \ | |
8857 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 8858 | esac; \ |
b00612cc PB |
8859 | srcdiroption="--srcdir=$${topdir}/fastjar"; \ |
8860 | libsrcdir="$$s/fastjar"; \ | |
4fa63067 | 8861 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 8862 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 8863 | || exit 1 |
6bd3dfaa | 8864 | @endif fastjar |
4fa63067 | 8865 | |
a7254363 PB |
8866 | |
8867 | ||
d545f33b PB |
8868 | |
8869 | ||
4fa63067 NN |
8870 | .PHONY: all-fastjar maybe-all-fastjar |
8871 | maybe-all-fastjar: | |
6bd3dfaa | 8872 | @if fastjar |
d27cc32e | 8873 | TARGET-fastjar=all |
6bd3dfaa | 8874 | maybe-all-fastjar: all-fastjar |
4fa63067 | 8875 | all-fastjar: configure-fastjar |
0aed8855 | 8876 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8877 | @r=`${PWD_COMMAND}`; export r; \ |
8878 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8879 | $(HOST_EXPORTS) \ |
b00612cc PB |
8880 | (cd $(HOST_SUBDIR)/fastjar && \ |
8881 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fastjar)) | |
6bd3dfaa | 8882 | @endif fastjar |
2a4cbe27 | 8883 | |
a7254363 | 8884 | |
d545f33b PB |
8885 | |
8886 | ||
4fa63067 NN |
8887 | .PHONY: check-fastjar maybe-check-fastjar |
8888 | maybe-check-fastjar: | |
6bd3dfaa PB |
8889 | @if fastjar |
8890 | maybe-check-fastjar: check-fastjar | |
2a4cbe27 | 8891 | |
4fa63067 NN |
8892 | # This module is only tested in a native toolchain. |
8893 | check-fastjar: | |
0aed8855 | 8894 | @: $(MAKE); $(unstage) |
4fa63067 NN |
8895 | @if [ '$(host)' = '$(target)' ] ; then \ |
8896 | r=`${PWD_COMMAND}`; export r; \ | |
8897 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8898 | $(HOST_EXPORTS) \ |
b00612cc | 8899 | (cd $(HOST_SUBDIR)/fastjar && \ |
4cfaf6d5 | 8900 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 | 8901 | fi |
2a4cbe27 | 8902 | |
6bd3dfaa | 8903 | @endif fastjar |
4fa63067 NN |
8904 | |
8905 | .PHONY: install-fastjar maybe-install-fastjar | |
8906 | maybe-install-fastjar: | |
6bd3dfaa PB |
8907 | @if fastjar |
8908 | maybe-install-fastjar: install-fastjar | |
4fa63067 NN |
8909 | |
8910 | install-fastjar: installdirs | |
0aed8855 | 8911 | @: $(MAKE); $(unstage) |
4fa63067 | 8912 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 8913 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 8914 | $(HOST_EXPORTS) \ |
b00612cc | 8915 | (cd $(HOST_SUBDIR)/fastjar && \ |
2da12f12 | 8916 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 8917 | |
6bd3dfaa | 8918 | @endif fastjar |
2a4cbe27 | 8919 | |
4fa63067 | 8920 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 8921 | |
4fa63067 NN |
8922 | .PHONY: maybe-info-fastjar info-fastjar |
8923 | maybe-info-fastjar: | |
6bd3dfaa PB |
8924 | @if fastjar |
8925 | maybe-info-fastjar: info-fastjar | |
4fa63067 NN |
8926 | |
8927 | info-fastjar: \ | |
8928 | configure-fastjar | |
0aed8855 | 8929 | @: $(MAKE); $(unstage) |
4fa63067 | 8930 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
8931 | r=`${PWD_COMMAND}`; export r; \ |
8932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8933 | $(HOST_EXPORTS) \ |
b813574b | 8934 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8936 | done; \ | |
4fa63067 | 8937 | echo "Doing info in fastjar" ; \ |
b00612cc | 8938 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
8939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8941 | "RANLIB=$${RANLIB}" \ | |
8942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8943 | info) \ |
2a4cbe27 NN |
8944 | || exit 1 |
8945 | ||
6bd3dfaa | 8946 | @endif fastjar |
2a4cbe27 | 8947 | |
4fa63067 NN |
8948 | .PHONY: maybe-dvi-fastjar dvi-fastjar |
8949 | maybe-dvi-fastjar: | |
6bd3dfaa PB |
8950 | @if fastjar |
8951 | maybe-dvi-fastjar: dvi-fastjar | |
2a4cbe27 | 8952 | |
4fa63067 NN |
8953 | dvi-fastjar: \ |
8954 | configure-fastjar | |
0aed8855 | 8955 | @: $(MAKE); $(unstage) |
2a4cbe27 | 8956 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
8957 | r=`${PWD_COMMAND}`; export r; \ |
8958 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 8959 | $(HOST_EXPORTS) \ |
b813574b | 8960 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
8961 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
8962 | done; \ | |
4fa63067 | 8963 | echo "Doing dvi in fastjar" ; \ |
b00612cc | 8964 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
8965 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8966 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8967 | "RANLIB=$${RANLIB}" \ | |
8968 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 8969 | dvi) \ |
2a4cbe27 NN |
8970 | || exit 1 |
8971 | ||
6bd3dfaa | 8972 | @endif fastjar |
2a4cbe27 | 8973 | |
6d389afc MS |
8974 | .PHONY: maybe-html-fastjar html-fastjar |
8975 | maybe-html-fastjar: | |
8976 | @if fastjar | |
8977 | maybe-html-fastjar: html-fastjar | |
8978 | ||
8979 | html-fastjar: \ | |
8980 | configure-fastjar | |
0aed8855 | 8981 | @: $(MAKE); $(unstage) |
6d389afc MS |
8982 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
8983 | r=`${PWD_COMMAND}`; export r; \ | |
8984 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
8985 | $(HOST_EXPORTS) \ |
8986 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
8987 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
8988 | done; \ | |
8989 | echo "Doing html in fastjar" ; \ | |
b00612cc | 8990 | (cd $(HOST_SUBDIR)/fastjar && \ |
6d389afc MS |
8991 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
8992 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
8993 | "RANLIB=$${RANLIB}" \ | |
8994 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
8995 | html) \ | |
8996 | || exit 1 | |
8997 | ||
8998 | @endif fastjar | |
8999 | ||
4fa63067 NN |
9000 | .PHONY: maybe-TAGS-fastjar TAGS-fastjar |
9001 | maybe-TAGS-fastjar: | |
6bd3dfaa PB |
9002 | @if fastjar |
9003 | maybe-TAGS-fastjar: TAGS-fastjar | |
2a4cbe27 | 9004 | |
4fa63067 NN |
9005 | TAGS-fastjar: \ |
9006 | configure-fastjar | |
0aed8855 | 9007 | @: $(MAKE); $(unstage) |
4fa63067 | 9008 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9009 | r=`${PWD_COMMAND}`; export r; \ |
9010 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9011 | $(HOST_EXPORTS) \ |
b813574b | 9012 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9013 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9014 | done; \ | |
4fa63067 | 9015 | echo "Doing TAGS in fastjar" ; \ |
b00612cc | 9016 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9017 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9018 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9019 | "RANLIB=$${RANLIB}" \ | |
9020 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9021 | TAGS) \ |
2a4cbe27 NN |
9022 | || exit 1 |
9023 | ||
6bd3dfaa | 9024 | @endif fastjar |
2a4cbe27 | 9025 | |
4fa63067 NN |
9026 | .PHONY: maybe-install-info-fastjar install-info-fastjar |
9027 | maybe-install-info-fastjar: | |
6bd3dfaa PB |
9028 | @if fastjar |
9029 | maybe-install-info-fastjar: install-info-fastjar | |
2a4cbe27 | 9030 | |
4fa63067 NN |
9031 | install-info-fastjar: \ |
9032 | configure-fastjar \ | |
9033 | info-fastjar | |
0aed8855 | 9034 | @: $(MAKE); $(unstage) |
4fa63067 | 9035 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9036 | r=`${PWD_COMMAND}`; export r; \ |
9037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9038 | $(HOST_EXPORTS) \ |
b813574b | 9039 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9040 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9041 | done; \ | |
4fa63067 | 9042 | echo "Doing install-info in fastjar" ; \ |
b00612cc | 9043 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9044 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9045 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9046 | "RANLIB=$${RANLIB}" \ | |
9047 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9048 | install-info) \ |
2a4cbe27 NN |
9049 | || exit 1 |
9050 | ||
6bd3dfaa | 9051 | @endif fastjar |
2a4cbe27 | 9052 | |
108a6f8e CD |
9053 | .PHONY: maybe-install-html-fastjar install-html-fastjar |
9054 | maybe-install-html-fastjar: | |
9055 | @if fastjar | |
9056 | maybe-install-html-fastjar: install-html-fastjar | |
9057 | ||
9058 | install-html-fastjar: \ | |
9059 | configure-fastjar \ | |
9060 | html-fastjar | |
9061 | @: $(MAKE); $(unstage) | |
9062 | @[ -f ./fastjar/Makefile ] || exit 0; \ | |
9063 | r=`${PWD_COMMAND}`; export r; \ | |
9064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9065 | $(HOST_EXPORTS) \ | |
9066 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9067 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9068 | done; \ | |
9069 | echo "Doing install-html in fastjar" ; \ | |
9070 | (cd $(HOST_SUBDIR)/fastjar && \ | |
9071 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
9072 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9073 | "RANLIB=$${RANLIB}" \ | |
9074 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9075 | install-html) \ | |
9076 | || exit 1 | |
9077 | ||
9078 | @endif fastjar | |
9079 | ||
4fa63067 NN |
9080 | .PHONY: maybe-installcheck-fastjar installcheck-fastjar |
9081 | maybe-installcheck-fastjar: | |
6bd3dfaa PB |
9082 | @if fastjar |
9083 | maybe-installcheck-fastjar: installcheck-fastjar | |
2a4cbe27 | 9084 | |
4fa63067 NN |
9085 | installcheck-fastjar: \ |
9086 | configure-fastjar | |
0aed8855 | 9087 | @: $(MAKE); $(unstage) |
4fa63067 | 9088 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9089 | r=`${PWD_COMMAND}`; export r; \ |
9090 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9091 | $(HOST_EXPORTS) \ |
b813574b | 9092 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9093 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9094 | done; \ | |
4fa63067 | 9095 | echo "Doing installcheck in fastjar" ; \ |
b00612cc | 9096 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9097 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9098 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9099 | "RANLIB=$${RANLIB}" \ | |
9100 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9101 | installcheck) \ |
2a4cbe27 NN |
9102 | || exit 1 |
9103 | ||
6bd3dfaa | 9104 | @endif fastjar |
2a4cbe27 | 9105 | |
4fa63067 NN |
9106 | .PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar |
9107 | maybe-mostlyclean-fastjar: | |
6bd3dfaa PB |
9108 | @if fastjar |
9109 | maybe-mostlyclean-fastjar: mostlyclean-fastjar | |
2a4cbe27 | 9110 | |
4fa63067 | 9111 | mostlyclean-fastjar: |
0aed8855 | 9112 | @: $(MAKE); $(unstage) |
4fa63067 | 9113 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9114 | r=`${PWD_COMMAND}`; export r; \ |
9115 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9116 | $(HOST_EXPORTS) \ |
b813574b | 9117 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9118 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9119 | done; \ | |
4fa63067 | 9120 | echo "Doing mostlyclean in fastjar" ; \ |
b00612cc | 9121 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9122 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9123 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9124 | "RANLIB=$${RANLIB}" \ | |
9125 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9126 | mostlyclean) \ |
2a4cbe27 NN |
9127 | || exit 1 |
9128 | ||
6bd3dfaa | 9129 | @endif fastjar |
2a4cbe27 | 9130 | |
4fa63067 NN |
9131 | .PHONY: maybe-clean-fastjar clean-fastjar |
9132 | maybe-clean-fastjar: | |
6bd3dfaa PB |
9133 | @if fastjar |
9134 | maybe-clean-fastjar: clean-fastjar | |
2a4cbe27 | 9135 | |
4fa63067 | 9136 | clean-fastjar: |
0aed8855 | 9137 | @: $(MAKE); $(unstage) |
4fa63067 | 9138 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9139 | r=`${PWD_COMMAND}`; export r; \ |
9140 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9141 | $(HOST_EXPORTS) \ |
b813574b | 9142 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9143 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9144 | done; \ | |
4fa63067 | 9145 | echo "Doing clean in fastjar" ; \ |
b00612cc | 9146 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9147 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9148 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9149 | "RANLIB=$${RANLIB}" \ | |
9150 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9151 | clean) \ |
2a4cbe27 NN |
9152 | || exit 1 |
9153 | ||
6bd3dfaa | 9154 | @endif fastjar |
2a4cbe27 | 9155 | |
4fa63067 NN |
9156 | .PHONY: maybe-distclean-fastjar distclean-fastjar |
9157 | maybe-distclean-fastjar: | |
6bd3dfaa PB |
9158 | @if fastjar |
9159 | maybe-distclean-fastjar: distclean-fastjar | |
2a4cbe27 | 9160 | |
4fa63067 | 9161 | distclean-fastjar: |
0aed8855 | 9162 | @: $(MAKE); $(unstage) |
4fa63067 | 9163 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9164 | r=`${PWD_COMMAND}`; export r; \ |
9165 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9166 | $(HOST_EXPORTS) \ |
b813574b | 9167 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9168 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9169 | done; \ | |
4fa63067 | 9170 | echo "Doing distclean in fastjar" ; \ |
b00612cc | 9171 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9172 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9173 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9174 | "RANLIB=$${RANLIB}" \ | |
9175 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9176 | distclean) \ |
2a4cbe27 NN |
9177 | || exit 1 |
9178 | ||
6bd3dfaa | 9179 | @endif fastjar |
2a4cbe27 | 9180 | |
4fa63067 NN |
9181 | .PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar |
9182 | maybe-maintainer-clean-fastjar: | |
6bd3dfaa PB |
9183 | @if fastjar |
9184 | maybe-maintainer-clean-fastjar: maintainer-clean-fastjar | |
2a4cbe27 | 9185 | |
4fa63067 | 9186 | maintainer-clean-fastjar: |
0aed8855 | 9187 | @: $(MAKE); $(unstage) |
4fa63067 | 9188 | @[ -f ./fastjar/Makefile ] || exit 0; \ |
b40e3958 L |
9189 | r=`${PWD_COMMAND}`; export r; \ |
9190 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9191 | $(HOST_EXPORTS) \ |
b813574b | 9192 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9193 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9194 | done; \ | |
4fa63067 | 9195 | echo "Doing maintainer-clean in fastjar" ; \ |
b00612cc | 9196 | (cd $(HOST_SUBDIR)/fastjar && \ |
2a4cbe27 NN |
9197 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9198 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9199 | "RANLIB=$${RANLIB}" \ | |
9200 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9201 | maintainer-clean) \ |
2a4cbe27 NN |
9202 | || exit 1 |
9203 | ||
6bd3dfaa | 9204 | @endif fastjar |
2a4cbe27 | 9205 | |
2a4cbe27 | 9206 | |
a7254363 | 9207 | |
4fa63067 NN |
9208 | .PHONY: configure-fileutils maybe-configure-fileutils |
9209 | maybe-configure-fileutils: | |
6bd3dfaa PB |
9210 | @if fileutils |
9211 | maybe-configure-fileutils: configure-fileutils | |
c52c6897 | 9212 | configure-fileutils: |
0aed8855 | 9213 | @: $(MAKE); $(unstage) |
c52c6897 | 9214 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9215 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
9216 | test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \ |
9217 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \ | |
378fce5b | 9218 | $(HOST_EXPORTS) \ |
a7254363 PB |
9219 | echo Configuring in $(HOST_SUBDIR)/fileutils; \ |
9220 | cd "$(HOST_SUBDIR)/fileutils" || exit 1; \ | |
4fa63067 | 9221 | case $(srcdir) in \ |
b00612cc PB |
9222 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
9223 | *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \ | |
9224 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 9225 | esac; \ |
b00612cc PB |
9226 | srcdiroption="--srcdir=$${topdir}/fileutils"; \ |
9227 | libsrcdir="$$s/fileutils"; \ | |
4fa63067 | 9228 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 9229 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 9230 | || exit 1 |
6bd3dfaa | 9231 | @endif fileutils |
2a4cbe27 | 9232 | |
a7254363 PB |
9233 | |
9234 | ||
d545f33b PB |
9235 | |
9236 | ||
4fa63067 NN |
9237 | .PHONY: all-fileutils maybe-all-fileutils |
9238 | maybe-all-fileutils: | |
6bd3dfaa | 9239 | @if fileutils |
d27cc32e | 9240 | TARGET-fileutils=all |
6bd3dfaa | 9241 | maybe-all-fileutils: all-fileutils |
4fa63067 | 9242 | all-fileutils: configure-fileutils |
0aed8855 | 9243 | @: $(MAKE); $(unstage) |
4fa63067 | 9244 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9245 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9246 | $(HOST_EXPORTS) \ |
b00612cc PB |
9247 | (cd $(HOST_SUBDIR)/fileutils && \ |
9248 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fileutils)) | |
6bd3dfaa | 9249 | @endif fileutils |
4fa63067 | 9250 | |
a7254363 | 9251 | |
d545f33b PB |
9252 | |
9253 | ||
4fa63067 NN |
9254 | .PHONY: check-fileutils maybe-check-fileutils |
9255 | maybe-check-fileutils: | |
6bd3dfaa PB |
9256 | @if fileutils |
9257 | maybe-check-fileutils: check-fileutils | |
4fa63067 NN |
9258 | |
9259 | check-fileutils: | |
0aed8855 | 9260 | @: $(MAKE); $(unstage) |
4fa63067 NN |
9261 | @r=`${PWD_COMMAND}`; export r; \ |
9262 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9263 | $(HOST_EXPORTS) \ |
b00612cc PB |
9264 | (cd $(HOST_SUBDIR)/fileutils && \ |
9265 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 9266 | |
6bd3dfaa | 9267 | @endif fileutils |
2a4cbe27 | 9268 | |
4fa63067 NN |
9269 | .PHONY: install-fileutils maybe-install-fileutils |
9270 | maybe-install-fileutils: | |
6bd3dfaa PB |
9271 | @if fileutils |
9272 | maybe-install-fileutils: install-fileutils | |
2a4cbe27 | 9273 | |
4fa63067 | 9274 | install-fileutils: installdirs |
0aed8855 | 9275 | @: $(MAKE); $(unstage) |
4fa63067 | 9276 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9277 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9278 | $(HOST_EXPORTS) \ |
b00612cc | 9279 | (cd $(HOST_SUBDIR)/fileutils && \ |
2da12f12 | 9280 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 9281 | |
6bd3dfaa | 9282 | @endif fileutils |
2a4cbe27 | 9283 | |
4fa63067 | 9284 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 9285 | |
4fa63067 NN |
9286 | .PHONY: maybe-info-fileutils info-fileutils |
9287 | maybe-info-fileutils: | |
6bd3dfaa PB |
9288 | @if fileutils |
9289 | maybe-info-fileutils: info-fileutils | |
4fa63067 NN |
9290 | |
9291 | info-fileutils: \ | |
9292 | configure-fileutils | |
0aed8855 | 9293 | @: $(MAKE); $(unstage) |
4fa63067 | 9294 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9295 | r=`${PWD_COMMAND}`; export r; \ |
9296 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9297 | $(HOST_EXPORTS) \ |
b813574b | 9298 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9299 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9300 | done; \ | |
4fa63067 | 9301 | echo "Doing info in fileutils" ; \ |
b00612cc | 9302 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9303 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9304 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9305 | "RANLIB=$${RANLIB}" \ | |
9306 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9307 | info) \ |
2a4cbe27 NN |
9308 | || exit 1 |
9309 | ||
6bd3dfaa | 9310 | @endif fileutils |
2a4cbe27 | 9311 | |
4fa63067 NN |
9312 | .PHONY: maybe-dvi-fileutils dvi-fileutils |
9313 | maybe-dvi-fileutils: | |
6bd3dfaa PB |
9314 | @if fileutils |
9315 | maybe-dvi-fileutils: dvi-fileutils | |
2a4cbe27 | 9316 | |
4fa63067 NN |
9317 | dvi-fileutils: \ |
9318 | configure-fileutils | |
0aed8855 | 9319 | @: $(MAKE); $(unstage) |
4fa63067 | 9320 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9321 | r=`${PWD_COMMAND}`; export r; \ |
9322 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9323 | $(HOST_EXPORTS) \ |
b813574b | 9324 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9325 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9326 | done; \ | |
4fa63067 | 9327 | echo "Doing dvi in fileutils" ; \ |
b00612cc | 9328 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9329 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9330 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9331 | "RANLIB=$${RANLIB}" \ | |
9332 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9333 | dvi) \ |
2a4cbe27 NN |
9334 | || exit 1 |
9335 | ||
6bd3dfaa | 9336 | @endif fileutils |
2a4cbe27 | 9337 | |
6d389afc MS |
9338 | .PHONY: maybe-html-fileutils html-fileutils |
9339 | maybe-html-fileutils: | |
9340 | @if fileutils | |
9341 | maybe-html-fileutils: html-fileutils | |
9342 | ||
9343 | html-fileutils: \ | |
9344 | configure-fileutils | |
0aed8855 | 9345 | @: $(MAKE); $(unstage) |
6d389afc MS |
9346 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
9347 | r=`${PWD_COMMAND}`; export r; \ | |
9348 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
9349 | $(HOST_EXPORTS) \ |
9350 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9351 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9352 | done; \ | |
9353 | echo "Doing html in fileutils" ; \ | |
b00612cc | 9354 | (cd $(HOST_SUBDIR)/fileutils && \ |
6d389afc MS |
9355 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9356 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9357 | "RANLIB=$${RANLIB}" \ | |
9358 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9359 | html) \ | |
9360 | || exit 1 | |
9361 | ||
9362 | @endif fileutils | |
9363 | ||
4fa63067 NN |
9364 | .PHONY: maybe-TAGS-fileutils TAGS-fileutils |
9365 | maybe-TAGS-fileutils: | |
6bd3dfaa PB |
9366 | @if fileutils |
9367 | maybe-TAGS-fileutils: TAGS-fileutils | |
2a4cbe27 | 9368 | |
4fa63067 NN |
9369 | TAGS-fileutils: \ |
9370 | configure-fileutils | |
0aed8855 | 9371 | @: $(MAKE); $(unstage) |
4fa63067 | 9372 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9373 | r=`${PWD_COMMAND}`; export r; \ |
9374 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9375 | $(HOST_EXPORTS) \ |
b813574b | 9376 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9377 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9378 | done; \ | |
4fa63067 | 9379 | echo "Doing TAGS in fileutils" ; \ |
b00612cc | 9380 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9381 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9382 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9383 | "RANLIB=$${RANLIB}" \ | |
9384 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9385 | TAGS) \ |
2a4cbe27 NN |
9386 | || exit 1 |
9387 | ||
6bd3dfaa | 9388 | @endif fileutils |
2a4cbe27 | 9389 | |
4fa63067 NN |
9390 | .PHONY: maybe-install-info-fileutils install-info-fileutils |
9391 | maybe-install-info-fileutils: | |
6bd3dfaa PB |
9392 | @if fileutils |
9393 | maybe-install-info-fileutils: install-info-fileutils | |
2a4cbe27 | 9394 | |
4fa63067 NN |
9395 | install-info-fileutils: \ |
9396 | configure-fileutils \ | |
9397 | info-fileutils | |
0aed8855 | 9398 | @: $(MAKE); $(unstage) |
4fa63067 | 9399 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9400 | r=`${PWD_COMMAND}`; export r; \ |
9401 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9402 | $(HOST_EXPORTS) \ |
b813574b | 9403 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9404 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9405 | done; \ | |
4fa63067 | 9406 | echo "Doing install-info in fileutils" ; \ |
b00612cc | 9407 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9408 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9409 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9410 | "RANLIB=$${RANLIB}" \ | |
9411 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9412 | install-info) \ |
2a4cbe27 NN |
9413 | || exit 1 |
9414 | ||
6bd3dfaa | 9415 | @endif fileutils |
2a4cbe27 | 9416 | |
108a6f8e CD |
9417 | .PHONY: maybe-install-html-fileutils install-html-fileutils |
9418 | maybe-install-html-fileutils: | |
9419 | @if fileutils | |
9420 | maybe-install-html-fileutils: install-html-fileutils | |
9421 | ||
9422 | install-html-fileutils: \ | |
9423 | configure-fileutils \ | |
9424 | html-fileutils | |
9425 | @: $(MAKE); $(unstage) | |
9426 | @[ -f ./fileutils/Makefile ] || exit 0; \ | |
9427 | r=`${PWD_COMMAND}`; export r; \ | |
9428 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9429 | $(HOST_EXPORTS) \ | |
9430 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9431 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9432 | done; \ | |
9433 | echo "Doing install-html in fileutils" ; \ | |
9434 | (cd $(HOST_SUBDIR)/fileutils && \ | |
9435 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
9436 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9437 | "RANLIB=$${RANLIB}" \ | |
9438 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9439 | install-html) \ | |
9440 | || exit 1 | |
9441 | ||
9442 | @endif fileutils | |
9443 | ||
4fa63067 NN |
9444 | .PHONY: maybe-installcheck-fileutils installcheck-fileutils |
9445 | maybe-installcheck-fileutils: | |
6bd3dfaa PB |
9446 | @if fileutils |
9447 | maybe-installcheck-fileutils: installcheck-fileutils | |
2a4cbe27 | 9448 | |
4fa63067 NN |
9449 | installcheck-fileutils: \ |
9450 | configure-fileutils | |
0aed8855 | 9451 | @: $(MAKE); $(unstage) |
4fa63067 | 9452 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9453 | r=`${PWD_COMMAND}`; export r; \ |
9454 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9455 | $(HOST_EXPORTS) \ |
b813574b | 9456 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9457 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9458 | done; \ | |
4fa63067 | 9459 | echo "Doing installcheck in fileutils" ; \ |
b00612cc | 9460 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9461 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9462 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9463 | "RANLIB=$${RANLIB}" \ | |
9464 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9465 | installcheck) \ |
2a4cbe27 NN |
9466 | || exit 1 |
9467 | ||
6bd3dfaa | 9468 | @endif fileutils |
2a4cbe27 | 9469 | |
4fa63067 NN |
9470 | .PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils |
9471 | maybe-mostlyclean-fileutils: | |
6bd3dfaa PB |
9472 | @if fileutils |
9473 | maybe-mostlyclean-fileutils: mostlyclean-fileutils | |
2a4cbe27 | 9474 | |
4fa63067 | 9475 | mostlyclean-fileutils: |
0aed8855 | 9476 | @: $(MAKE); $(unstage) |
4fa63067 | 9477 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9478 | r=`${PWD_COMMAND}`; export r; \ |
9479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9480 | $(HOST_EXPORTS) \ |
b813574b | 9481 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9482 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9483 | done; \ | |
4fa63067 | 9484 | echo "Doing mostlyclean in fileutils" ; \ |
b00612cc | 9485 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9486 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9487 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9488 | "RANLIB=$${RANLIB}" \ | |
9489 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9490 | mostlyclean) \ |
2a4cbe27 NN |
9491 | || exit 1 |
9492 | ||
6bd3dfaa | 9493 | @endif fileutils |
2a4cbe27 | 9494 | |
4fa63067 NN |
9495 | .PHONY: maybe-clean-fileutils clean-fileutils |
9496 | maybe-clean-fileutils: | |
6bd3dfaa PB |
9497 | @if fileutils |
9498 | maybe-clean-fileutils: clean-fileutils | |
2a4cbe27 | 9499 | |
4fa63067 | 9500 | clean-fileutils: |
0aed8855 | 9501 | @: $(MAKE); $(unstage) |
4fa63067 | 9502 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9503 | r=`${PWD_COMMAND}`; export r; \ |
9504 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9505 | $(HOST_EXPORTS) \ |
b813574b | 9506 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9507 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9508 | done; \ | |
4fa63067 | 9509 | echo "Doing clean in fileutils" ; \ |
b00612cc | 9510 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9511 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9512 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9513 | "RANLIB=$${RANLIB}" \ | |
9514 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9515 | clean) \ |
2a4cbe27 NN |
9516 | || exit 1 |
9517 | ||
6bd3dfaa | 9518 | @endif fileutils |
2a4cbe27 | 9519 | |
4fa63067 NN |
9520 | .PHONY: maybe-distclean-fileutils distclean-fileutils |
9521 | maybe-distclean-fileutils: | |
6bd3dfaa PB |
9522 | @if fileutils |
9523 | maybe-distclean-fileutils: distclean-fileutils | |
2a4cbe27 | 9524 | |
4fa63067 | 9525 | distclean-fileutils: |
0aed8855 | 9526 | @: $(MAKE); $(unstage) |
4fa63067 | 9527 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9528 | r=`${PWD_COMMAND}`; export r; \ |
9529 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9530 | $(HOST_EXPORTS) \ |
b813574b | 9531 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9532 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9533 | done; \ | |
4fa63067 | 9534 | echo "Doing distclean in fileutils" ; \ |
b00612cc | 9535 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9536 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9537 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9538 | "RANLIB=$${RANLIB}" \ | |
9539 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9540 | distclean) \ |
2a4cbe27 NN |
9541 | || exit 1 |
9542 | ||
6bd3dfaa | 9543 | @endif fileutils |
2a4cbe27 | 9544 | |
4fa63067 NN |
9545 | .PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils |
9546 | maybe-maintainer-clean-fileutils: | |
6bd3dfaa PB |
9547 | @if fileutils |
9548 | maybe-maintainer-clean-fileutils: maintainer-clean-fileutils | |
2a4cbe27 | 9549 | |
4fa63067 | 9550 | maintainer-clean-fileutils: |
0aed8855 | 9551 | @: $(MAKE); $(unstage) |
4fa63067 | 9552 | @[ -f ./fileutils/Makefile ] || exit 0; \ |
b40e3958 L |
9553 | r=`${PWD_COMMAND}`; export r; \ |
9554 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9555 | $(HOST_EXPORTS) \ |
b813574b | 9556 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9557 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9558 | done; \ | |
4fa63067 | 9559 | echo "Doing maintainer-clean in fileutils" ; \ |
b00612cc | 9560 | (cd $(HOST_SUBDIR)/fileutils && \ |
2a4cbe27 NN |
9561 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9562 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9563 | "RANLIB=$${RANLIB}" \ | |
9564 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9565 | maintainer-clean) \ |
2a4cbe27 NN |
9566 | || exit 1 |
9567 | ||
6bd3dfaa | 9568 | @endif fileutils |
2a4cbe27 | 9569 | |
2a4cbe27 | 9570 | |
a7254363 | 9571 | |
4fa63067 NN |
9572 | .PHONY: configure-findutils maybe-configure-findutils |
9573 | maybe-configure-findutils: | |
6bd3dfaa PB |
9574 | @if findutils |
9575 | maybe-configure-findutils: configure-findutils | |
c52c6897 | 9576 | configure-findutils: |
0aed8855 | 9577 | @: $(MAKE); $(unstage) |
c52c6897 | 9578 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9579 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
9580 | test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \ |
9581 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \ | |
378fce5b | 9582 | $(HOST_EXPORTS) \ |
a7254363 PB |
9583 | echo Configuring in $(HOST_SUBDIR)/findutils; \ |
9584 | cd "$(HOST_SUBDIR)/findutils" || exit 1; \ | |
4fa63067 | 9585 | case $(srcdir) in \ |
b00612cc PB |
9586 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
9587 | *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \ | |
9588 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 9589 | esac; \ |
b00612cc PB |
9590 | srcdiroption="--srcdir=$${topdir}/findutils"; \ |
9591 | libsrcdir="$$s/findutils"; \ | |
4fa63067 | 9592 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 9593 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 9594 | || exit 1 |
6bd3dfaa | 9595 | @endif findutils |
2a4cbe27 | 9596 | |
a7254363 PB |
9597 | |
9598 | ||
d545f33b PB |
9599 | |
9600 | ||
4fa63067 NN |
9601 | .PHONY: all-findutils maybe-all-findutils |
9602 | maybe-all-findutils: | |
6bd3dfaa | 9603 | @if findutils |
d27cc32e | 9604 | TARGET-findutils=all |
6bd3dfaa | 9605 | maybe-all-findutils: all-findutils |
4fa63067 | 9606 | all-findutils: configure-findutils |
0aed8855 | 9607 | @: $(MAKE); $(unstage) |
4fa63067 NN |
9608 | @r=`${PWD_COMMAND}`; export r; \ |
9609 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9610 | $(HOST_EXPORTS) \ |
b00612cc PB |
9611 | (cd $(HOST_SUBDIR)/findutils && \ |
9612 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-findutils)) | |
6bd3dfaa | 9613 | @endif findutils |
2a4cbe27 | 9614 | |
a7254363 | 9615 | |
d545f33b PB |
9616 | |
9617 | ||
4fa63067 NN |
9618 | .PHONY: check-findutils maybe-check-findutils |
9619 | maybe-check-findutils: | |
6bd3dfaa PB |
9620 | @if findutils |
9621 | maybe-check-findutils: check-findutils | |
2a4cbe27 | 9622 | |
4fa63067 | 9623 | check-findutils: |
0aed8855 | 9624 | @: $(MAKE); $(unstage) |
4fa63067 | 9625 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9626 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9627 | $(HOST_EXPORTS) \ |
b00612cc PB |
9628 | (cd $(HOST_SUBDIR)/findutils && \ |
9629 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 9630 | |
6bd3dfaa | 9631 | @endif findutils |
2a4cbe27 | 9632 | |
4fa63067 NN |
9633 | .PHONY: install-findutils maybe-install-findutils |
9634 | maybe-install-findutils: | |
6bd3dfaa PB |
9635 | @if findutils |
9636 | maybe-install-findutils: install-findutils | |
2a4cbe27 | 9637 | |
4fa63067 | 9638 | install-findutils: installdirs |
0aed8855 | 9639 | @: $(MAKE); $(unstage) |
4fa63067 | 9640 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9641 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9642 | $(HOST_EXPORTS) \ |
b00612cc | 9643 | (cd $(HOST_SUBDIR)/findutils && \ |
2da12f12 | 9644 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 9645 | |
6bd3dfaa | 9646 | @endif findutils |
2a4cbe27 | 9647 | |
4fa63067 | 9648 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 9649 | |
4fa63067 NN |
9650 | .PHONY: maybe-info-findutils info-findutils |
9651 | maybe-info-findutils: | |
6bd3dfaa PB |
9652 | @if findutils |
9653 | maybe-info-findutils: info-findutils | |
2a4cbe27 | 9654 | |
4fa63067 NN |
9655 | info-findutils: \ |
9656 | configure-findutils | |
0aed8855 | 9657 | @: $(MAKE); $(unstage) |
4fa63067 | 9658 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9659 | r=`${PWD_COMMAND}`; export r; \ |
9660 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9661 | $(HOST_EXPORTS) \ |
b813574b | 9662 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9663 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9664 | done; \ | |
4fa63067 | 9665 | echo "Doing info in findutils" ; \ |
b00612cc | 9666 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9667 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9668 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9669 | "RANLIB=$${RANLIB}" \ | |
9670 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9671 | info) \ |
2a4cbe27 NN |
9672 | || exit 1 |
9673 | ||
6bd3dfaa | 9674 | @endif findutils |
2a4cbe27 | 9675 | |
4fa63067 NN |
9676 | .PHONY: maybe-dvi-findutils dvi-findutils |
9677 | maybe-dvi-findutils: | |
6bd3dfaa PB |
9678 | @if findutils |
9679 | maybe-dvi-findutils: dvi-findutils | |
2a4cbe27 | 9680 | |
4fa63067 NN |
9681 | dvi-findutils: \ |
9682 | configure-findutils | |
0aed8855 | 9683 | @: $(MAKE); $(unstage) |
4fa63067 | 9684 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9685 | r=`${PWD_COMMAND}`; export r; \ |
9686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9687 | $(HOST_EXPORTS) \ |
b813574b | 9688 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9689 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9690 | done; \ | |
4fa63067 | 9691 | echo "Doing dvi in findutils" ; \ |
b00612cc | 9692 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9693 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9694 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9695 | "RANLIB=$${RANLIB}" \ | |
9696 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9697 | dvi) \ |
2a4cbe27 NN |
9698 | || exit 1 |
9699 | ||
6bd3dfaa | 9700 | @endif findutils |
2a4cbe27 | 9701 | |
6d389afc MS |
9702 | .PHONY: maybe-html-findutils html-findutils |
9703 | maybe-html-findutils: | |
9704 | @if findutils | |
9705 | maybe-html-findutils: html-findutils | |
9706 | ||
9707 | html-findutils: \ | |
9708 | configure-findutils | |
0aed8855 | 9709 | @: $(MAKE); $(unstage) |
6d389afc MS |
9710 | @[ -f ./findutils/Makefile ] || exit 0; \ |
9711 | r=`${PWD_COMMAND}`; export r; \ | |
9712 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
9713 | $(HOST_EXPORTS) \ |
9714 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9715 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9716 | done; \ | |
9717 | echo "Doing html in findutils" ; \ | |
b00612cc | 9718 | (cd $(HOST_SUBDIR)/findutils && \ |
6d389afc MS |
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}" \ | |
9723 | html) \ | |
9724 | || exit 1 | |
9725 | ||
9726 | @endif findutils | |
9727 | ||
4fa63067 NN |
9728 | .PHONY: maybe-TAGS-findutils TAGS-findutils |
9729 | maybe-TAGS-findutils: | |
6bd3dfaa PB |
9730 | @if findutils |
9731 | maybe-TAGS-findutils: TAGS-findutils | |
2a4cbe27 | 9732 | |
4fa63067 NN |
9733 | TAGS-findutils: \ |
9734 | configure-findutils | |
0aed8855 | 9735 | @: $(MAKE); $(unstage) |
4fa63067 | 9736 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9737 | r=`${PWD_COMMAND}`; export r; \ |
9738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9739 | $(HOST_EXPORTS) \ |
b813574b | 9740 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9741 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9742 | done; \ | |
4fa63067 | 9743 | echo "Doing TAGS in findutils" ; \ |
b00612cc | 9744 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9745 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9746 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9747 | "RANLIB=$${RANLIB}" \ | |
9748 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9749 | TAGS) \ |
2a4cbe27 NN |
9750 | || exit 1 |
9751 | ||
6bd3dfaa | 9752 | @endif findutils |
2a4cbe27 | 9753 | |
4fa63067 NN |
9754 | .PHONY: maybe-install-info-findutils install-info-findutils |
9755 | maybe-install-info-findutils: | |
6bd3dfaa PB |
9756 | @if findutils |
9757 | maybe-install-info-findutils: install-info-findutils | |
2a4cbe27 | 9758 | |
4fa63067 NN |
9759 | install-info-findutils: \ |
9760 | configure-findutils \ | |
9761 | info-findutils | |
0aed8855 | 9762 | @: $(MAKE); $(unstage) |
4fa63067 | 9763 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9764 | r=`${PWD_COMMAND}`; export r; \ |
9765 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9766 | $(HOST_EXPORTS) \ |
b813574b | 9767 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9768 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9769 | done; \ | |
4fa63067 | 9770 | echo "Doing install-info in findutils" ; \ |
b00612cc | 9771 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9772 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9773 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9774 | "RANLIB=$${RANLIB}" \ | |
9775 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9776 | install-info) \ |
2a4cbe27 NN |
9777 | || exit 1 |
9778 | ||
6bd3dfaa | 9779 | @endif findutils |
2a4cbe27 | 9780 | |
108a6f8e CD |
9781 | .PHONY: maybe-install-html-findutils install-html-findutils |
9782 | maybe-install-html-findutils: | |
9783 | @if findutils | |
9784 | maybe-install-html-findutils: install-html-findutils | |
9785 | ||
9786 | install-html-findutils: \ | |
9787 | configure-findutils \ | |
9788 | html-findutils | |
9789 | @: $(MAKE); $(unstage) | |
9790 | @[ -f ./findutils/Makefile ] || exit 0; \ | |
9791 | r=`${PWD_COMMAND}`; export r; \ | |
9792 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
9793 | $(HOST_EXPORTS) \ | |
9794 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
9795 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
9796 | done; \ | |
9797 | echo "Doing install-html in findutils" ; \ | |
9798 | (cd $(HOST_SUBDIR)/findutils && \ | |
9799 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
9800 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9801 | "RANLIB=$${RANLIB}" \ | |
9802 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
9803 | install-html) \ | |
9804 | || exit 1 | |
9805 | ||
9806 | @endif findutils | |
9807 | ||
4fa63067 NN |
9808 | .PHONY: maybe-installcheck-findutils installcheck-findutils |
9809 | maybe-installcheck-findutils: | |
6bd3dfaa PB |
9810 | @if findutils |
9811 | maybe-installcheck-findutils: installcheck-findutils | |
2a4cbe27 | 9812 | |
4fa63067 NN |
9813 | installcheck-findutils: \ |
9814 | configure-findutils | |
0aed8855 | 9815 | @: $(MAKE); $(unstage) |
4fa63067 | 9816 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9817 | r=`${PWD_COMMAND}`; export r; \ |
9818 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9819 | $(HOST_EXPORTS) \ |
b813574b | 9820 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9821 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9822 | done; \ | |
4fa63067 | 9823 | echo "Doing installcheck in findutils" ; \ |
b00612cc | 9824 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9825 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9826 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9827 | "RANLIB=$${RANLIB}" \ | |
9828 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9829 | installcheck) \ |
2a4cbe27 NN |
9830 | || exit 1 |
9831 | ||
6bd3dfaa | 9832 | @endif findutils |
2a4cbe27 | 9833 | |
4fa63067 NN |
9834 | .PHONY: maybe-mostlyclean-findutils mostlyclean-findutils |
9835 | maybe-mostlyclean-findutils: | |
6bd3dfaa PB |
9836 | @if findutils |
9837 | maybe-mostlyclean-findutils: mostlyclean-findutils | |
2a4cbe27 | 9838 | |
4fa63067 | 9839 | mostlyclean-findutils: |
0aed8855 | 9840 | @: $(MAKE); $(unstage) |
4fa63067 | 9841 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9842 | r=`${PWD_COMMAND}`; export r; \ |
9843 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9844 | $(HOST_EXPORTS) \ |
b813574b | 9845 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9846 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9847 | done; \ | |
4fa63067 | 9848 | echo "Doing mostlyclean in findutils" ; \ |
b00612cc | 9849 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9850 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9851 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9852 | "RANLIB=$${RANLIB}" \ | |
9853 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9854 | mostlyclean) \ |
2a4cbe27 NN |
9855 | || exit 1 |
9856 | ||
6bd3dfaa | 9857 | @endif findutils |
2a4cbe27 | 9858 | |
4fa63067 NN |
9859 | .PHONY: maybe-clean-findutils clean-findutils |
9860 | maybe-clean-findutils: | |
6bd3dfaa PB |
9861 | @if findutils |
9862 | maybe-clean-findutils: clean-findutils | |
2a4cbe27 | 9863 | |
4fa63067 | 9864 | clean-findutils: |
0aed8855 | 9865 | @: $(MAKE); $(unstage) |
4fa63067 | 9866 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9867 | r=`${PWD_COMMAND}`; export r; \ |
9868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9869 | $(HOST_EXPORTS) \ |
b813574b | 9870 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9871 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9872 | done; \ | |
4fa63067 | 9873 | echo "Doing clean in findutils" ; \ |
b00612cc | 9874 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9875 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9876 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9877 | "RANLIB=$${RANLIB}" \ | |
9878 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9879 | clean) \ |
2a4cbe27 NN |
9880 | || exit 1 |
9881 | ||
6bd3dfaa | 9882 | @endif findutils |
2a4cbe27 | 9883 | |
4fa63067 NN |
9884 | .PHONY: maybe-distclean-findutils distclean-findutils |
9885 | maybe-distclean-findutils: | |
6bd3dfaa PB |
9886 | @if findutils |
9887 | maybe-distclean-findutils: distclean-findutils | |
2a4cbe27 | 9888 | |
4fa63067 | 9889 | distclean-findutils: |
0aed8855 | 9890 | @: $(MAKE); $(unstage) |
4fa63067 | 9891 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9892 | r=`${PWD_COMMAND}`; export r; \ |
9893 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9894 | $(HOST_EXPORTS) \ |
b813574b | 9895 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9896 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9897 | done; \ | |
4fa63067 | 9898 | echo "Doing distclean in findutils" ; \ |
b00612cc | 9899 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9900 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9901 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9902 | "RANLIB=$${RANLIB}" \ | |
9903 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9904 | distclean) \ |
2a4cbe27 NN |
9905 | || exit 1 |
9906 | ||
6bd3dfaa | 9907 | @endif findutils |
2a4cbe27 | 9908 | |
4fa63067 NN |
9909 | .PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils |
9910 | maybe-maintainer-clean-findutils: | |
6bd3dfaa PB |
9911 | @if findutils |
9912 | maybe-maintainer-clean-findutils: maintainer-clean-findutils | |
2a4cbe27 | 9913 | |
4fa63067 | 9914 | maintainer-clean-findutils: |
0aed8855 | 9915 | @: $(MAKE); $(unstage) |
4fa63067 | 9916 | @[ -f ./findutils/Makefile ] || exit 0; \ |
b40e3958 L |
9917 | r=`${PWD_COMMAND}`; export r; \ |
9918 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9919 | $(HOST_EXPORTS) \ |
b813574b | 9920 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
9921 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
9922 | done; \ | |
4fa63067 | 9923 | echo "Doing maintainer-clean in findutils" ; \ |
b00612cc | 9924 | (cd $(HOST_SUBDIR)/findutils && \ |
2a4cbe27 NN |
9925 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
9926 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
9927 | "RANLIB=$${RANLIB}" \ | |
9928 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 9929 | maintainer-clean) \ |
2a4cbe27 NN |
9930 | || exit 1 |
9931 | ||
6bd3dfaa | 9932 | @endif findutils |
2a4cbe27 | 9933 | |
2a4cbe27 | 9934 | |
a7254363 | 9935 | |
4fa63067 NN |
9936 | .PHONY: configure-find maybe-configure-find |
9937 | maybe-configure-find: | |
6bd3dfaa PB |
9938 | @if find |
9939 | maybe-configure-find: configure-find | |
c52c6897 | 9940 | configure-find: |
0aed8855 | 9941 | @: $(MAKE); $(unstage) |
c52c6897 | 9942 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9943 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
9944 | test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \ |
9945 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \ | |
378fce5b | 9946 | $(HOST_EXPORTS) \ |
a7254363 PB |
9947 | echo Configuring in $(HOST_SUBDIR)/find; \ |
9948 | cd "$(HOST_SUBDIR)/find" || exit 1; \ | |
4fa63067 | 9949 | case $(srcdir) in \ |
b00612cc PB |
9950 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
9951 | *) topdir=`echo $(HOST_SUBDIR)/find/ | \ | |
9952 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 9953 | esac; \ |
b00612cc PB |
9954 | srcdiroption="--srcdir=$${topdir}/find"; \ |
9955 | libsrcdir="$$s/find"; \ | |
4fa63067 | 9956 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 9957 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 9958 | || exit 1 |
6bd3dfaa | 9959 | @endif find |
2a4cbe27 | 9960 | |
a7254363 PB |
9961 | |
9962 | ||
d545f33b PB |
9963 | |
9964 | ||
4fa63067 NN |
9965 | .PHONY: all-find maybe-all-find |
9966 | maybe-all-find: | |
6bd3dfaa | 9967 | @if find |
d27cc32e | 9968 | TARGET-find=all |
6bd3dfaa | 9969 | maybe-all-find: all-find |
4fa63067 | 9970 | all-find: configure-find |
0aed8855 | 9971 | @: $(MAKE); $(unstage) |
4fa63067 NN |
9972 | @r=`${PWD_COMMAND}`; export r; \ |
9973 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 9974 | $(HOST_EXPORTS) \ |
b00612cc PB |
9975 | (cd $(HOST_SUBDIR)/find && \ |
9976 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-find)) | |
6bd3dfaa | 9977 | @endif find |
2a4cbe27 | 9978 | |
a7254363 | 9979 | |
d545f33b PB |
9980 | |
9981 | ||
4fa63067 NN |
9982 | .PHONY: check-find maybe-check-find |
9983 | maybe-check-find: | |
6bd3dfaa PB |
9984 | @if find |
9985 | maybe-check-find: check-find | |
2a4cbe27 | 9986 | |
4fa63067 | 9987 | check-find: |
0aed8855 | 9988 | @: $(MAKE); $(unstage) |
4fa63067 | 9989 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 9990 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 9991 | $(HOST_EXPORTS) \ |
b00612cc PB |
9992 | (cd $(HOST_SUBDIR)/find && \ |
9993 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 9994 | |
6bd3dfaa | 9995 | @endif find |
2a4cbe27 | 9996 | |
4fa63067 NN |
9997 | .PHONY: install-find maybe-install-find |
9998 | maybe-install-find: | |
6bd3dfaa PB |
9999 | @if find |
10000 | maybe-install-find: install-find | |
2a4cbe27 | 10001 | |
4fa63067 | 10002 | install-find: installdirs |
0aed8855 | 10003 | @: $(MAKE); $(unstage) |
4fa63067 NN |
10004 | @r=`${PWD_COMMAND}`; export r; \ |
10005 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10006 | $(HOST_EXPORTS) \ |
b00612cc | 10007 | (cd $(HOST_SUBDIR)/find && \ |
2da12f12 | 10008 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 10009 | |
6bd3dfaa | 10010 | @endif find |
4fa63067 NN |
10011 | |
10012 | # Other targets (info, dvi, etc.) | |
10013 | ||
10014 | .PHONY: maybe-info-find info-find | |
10015 | maybe-info-find: | |
6bd3dfaa PB |
10016 | @if find |
10017 | maybe-info-find: info-find | |
4fa63067 NN |
10018 | |
10019 | info-find: \ | |
10020 | configure-find | |
0aed8855 | 10021 | @: $(MAKE); $(unstage) |
4fa63067 | 10022 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10023 | r=`${PWD_COMMAND}`; export r; \ |
10024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10025 | $(HOST_EXPORTS) \ |
b813574b | 10026 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10027 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10028 | done; \ | |
4fa63067 | 10029 | echo "Doing info in find" ; \ |
b00612cc | 10030 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10031 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10032 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10033 | "RANLIB=$${RANLIB}" \ | |
10034 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10035 | info) \ |
2a4cbe27 NN |
10036 | || exit 1 |
10037 | ||
6bd3dfaa | 10038 | @endif find |
2a4cbe27 | 10039 | |
4fa63067 NN |
10040 | .PHONY: maybe-dvi-find dvi-find |
10041 | maybe-dvi-find: | |
6bd3dfaa PB |
10042 | @if find |
10043 | maybe-dvi-find: dvi-find | |
2a4cbe27 | 10044 | |
4fa63067 NN |
10045 | dvi-find: \ |
10046 | configure-find | |
0aed8855 | 10047 | @: $(MAKE); $(unstage) |
4fa63067 | 10048 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10049 | r=`${PWD_COMMAND}`; export r; \ |
10050 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10051 | $(HOST_EXPORTS) \ |
b813574b | 10052 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10053 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10054 | done; \ | |
4fa63067 | 10055 | echo "Doing dvi in find" ; \ |
b00612cc | 10056 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10057 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10058 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10059 | "RANLIB=$${RANLIB}" \ | |
10060 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10061 | dvi) \ |
2a4cbe27 NN |
10062 | || exit 1 |
10063 | ||
6bd3dfaa | 10064 | @endif find |
2a4cbe27 | 10065 | |
6d389afc MS |
10066 | .PHONY: maybe-html-find html-find |
10067 | maybe-html-find: | |
10068 | @if find | |
10069 | maybe-html-find: html-find | |
10070 | ||
10071 | html-find: \ | |
10072 | configure-find | |
0aed8855 | 10073 | @: $(MAKE); $(unstage) |
6d389afc MS |
10074 | @[ -f ./find/Makefile ] || exit 0; \ |
10075 | r=`${PWD_COMMAND}`; export r; \ | |
10076 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
10077 | $(HOST_EXPORTS) \ |
10078 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10079 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10080 | done; \ | |
10081 | echo "Doing html in find" ; \ | |
b00612cc | 10082 | (cd $(HOST_SUBDIR)/find && \ |
6d389afc MS |
10083 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10084 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10085 | "RANLIB=$${RANLIB}" \ | |
10086 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10087 | html) \ | |
10088 | || exit 1 | |
10089 | ||
10090 | @endif find | |
10091 | ||
4fa63067 NN |
10092 | .PHONY: maybe-TAGS-find TAGS-find |
10093 | maybe-TAGS-find: | |
6bd3dfaa PB |
10094 | @if find |
10095 | maybe-TAGS-find: TAGS-find | |
4fa63067 NN |
10096 | |
10097 | TAGS-find: \ | |
10098 | configure-find | |
0aed8855 | 10099 | @: $(MAKE); $(unstage) |
4fa63067 | 10100 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10101 | r=`${PWD_COMMAND}`; export r; \ |
10102 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10103 | $(HOST_EXPORTS) \ |
b813574b | 10104 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10105 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10106 | done; \ | |
4fa63067 | 10107 | echo "Doing TAGS in find" ; \ |
b00612cc | 10108 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10109 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10110 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10111 | "RANLIB=$${RANLIB}" \ | |
10112 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10113 | TAGS) \ |
2a4cbe27 NN |
10114 | || exit 1 |
10115 | ||
6bd3dfaa | 10116 | @endif find |
2a4cbe27 | 10117 | |
4fa63067 NN |
10118 | .PHONY: maybe-install-info-find install-info-find |
10119 | maybe-install-info-find: | |
6bd3dfaa PB |
10120 | @if find |
10121 | maybe-install-info-find: install-info-find | |
2a4cbe27 | 10122 | |
4fa63067 NN |
10123 | install-info-find: \ |
10124 | configure-find \ | |
10125 | info-find | |
0aed8855 | 10126 | @: $(MAKE); $(unstage) |
4fa63067 | 10127 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10128 | r=`${PWD_COMMAND}`; export r; \ |
10129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10130 | $(HOST_EXPORTS) \ |
b813574b | 10131 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10132 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10133 | done; \ | |
4fa63067 | 10134 | echo "Doing install-info in find" ; \ |
b00612cc | 10135 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10136 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10137 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10138 | "RANLIB=$${RANLIB}" \ | |
10139 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10140 | install-info) \ |
2a4cbe27 NN |
10141 | || exit 1 |
10142 | ||
6bd3dfaa | 10143 | @endif find |
2a4cbe27 | 10144 | |
108a6f8e CD |
10145 | .PHONY: maybe-install-html-find install-html-find |
10146 | maybe-install-html-find: | |
10147 | @if find | |
10148 | maybe-install-html-find: install-html-find | |
10149 | ||
10150 | install-html-find: \ | |
10151 | configure-find \ | |
10152 | html-find | |
10153 | @: $(MAKE); $(unstage) | |
10154 | @[ -f ./find/Makefile ] || exit 0; \ | |
10155 | r=`${PWD_COMMAND}`; export r; \ | |
10156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10157 | $(HOST_EXPORTS) \ | |
10158 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10159 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10160 | done; \ | |
10161 | echo "Doing install-html in find" ; \ | |
10162 | (cd $(HOST_SUBDIR)/find && \ | |
10163 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
10164 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10165 | "RANLIB=$${RANLIB}" \ | |
10166 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10167 | install-html) \ | |
10168 | || exit 1 | |
10169 | ||
10170 | @endif find | |
10171 | ||
4fa63067 NN |
10172 | .PHONY: maybe-installcheck-find installcheck-find |
10173 | maybe-installcheck-find: | |
6bd3dfaa PB |
10174 | @if find |
10175 | maybe-installcheck-find: installcheck-find | |
2a4cbe27 | 10176 | |
4fa63067 NN |
10177 | installcheck-find: \ |
10178 | configure-find | |
0aed8855 | 10179 | @: $(MAKE); $(unstage) |
4fa63067 | 10180 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10181 | r=`${PWD_COMMAND}`; export r; \ |
10182 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10183 | $(HOST_EXPORTS) \ |
b813574b | 10184 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10185 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10186 | done; \ | |
4fa63067 | 10187 | echo "Doing installcheck in find" ; \ |
b00612cc | 10188 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10189 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10190 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10191 | "RANLIB=$${RANLIB}" \ | |
10192 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10193 | installcheck) \ |
2a4cbe27 NN |
10194 | || exit 1 |
10195 | ||
6bd3dfaa | 10196 | @endif find |
2a4cbe27 | 10197 | |
4fa63067 NN |
10198 | .PHONY: maybe-mostlyclean-find mostlyclean-find |
10199 | maybe-mostlyclean-find: | |
6bd3dfaa PB |
10200 | @if find |
10201 | maybe-mostlyclean-find: mostlyclean-find | |
2a4cbe27 | 10202 | |
4fa63067 | 10203 | mostlyclean-find: |
0aed8855 | 10204 | @: $(MAKE); $(unstage) |
4fa63067 | 10205 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10206 | r=`${PWD_COMMAND}`; export r; \ |
10207 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10208 | $(HOST_EXPORTS) \ |
b813574b | 10209 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10210 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10211 | done; \ | |
4fa63067 | 10212 | echo "Doing mostlyclean in find" ; \ |
b00612cc | 10213 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10214 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10215 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10216 | "RANLIB=$${RANLIB}" \ | |
10217 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10218 | mostlyclean) \ |
2a4cbe27 NN |
10219 | || exit 1 |
10220 | ||
6bd3dfaa | 10221 | @endif find |
2a4cbe27 | 10222 | |
4fa63067 NN |
10223 | .PHONY: maybe-clean-find clean-find |
10224 | maybe-clean-find: | |
6bd3dfaa PB |
10225 | @if find |
10226 | maybe-clean-find: clean-find | |
2a4cbe27 | 10227 | |
4fa63067 | 10228 | clean-find: |
0aed8855 | 10229 | @: $(MAKE); $(unstage) |
4fa63067 | 10230 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10231 | r=`${PWD_COMMAND}`; export r; \ |
10232 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10233 | $(HOST_EXPORTS) \ |
b813574b | 10234 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10235 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10236 | done; \ | |
4fa63067 | 10237 | echo "Doing clean in find" ; \ |
b00612cc | 10238 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10239 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10240 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10241 | "RANLIB=$${RANLIB}" \ | |
10242 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10243 | clean) \ |
2a4cbe27 NN |
10244 | || exit 1 |
10245 | ||
6bd3dfaa | 10246 | @endif find |
2a4cbe27 | 10247 | |
4fa63067 NN |
10248 | .PHONY: maybe-distclean-find distclean-find |
10249 | maybe-distclean-find: | |
6bd3dfaa PB |
10250 | @if find |
10251 | maybe-distclean-find: distclean-find | |
2a4cbe27 | 10252 | |
4fa63067 | 10253 | distclean-find: |
0aed8855 | 10254 | @: $(MAKE); $(unstage) |
4fa63067 | 10255 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10256 | r=`${PWD_COMMAND}`; export r; \ |
10257 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10258 | $(HOST_EXPORTS) \ |
b813574b | 10259 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10260 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10261 | done; \ | |
4fa63067 | 10262 | echo "Doing distclean in find" ; \ |
b00612cc | 10263 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10264 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10265 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10266 | "RANLIB=$${RANLIB}" \ | |
10267 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10268 | distclean) \ |
2a4cbe27 NN |
10269 | || exit 1 |
10270 | ||
6bd3dfaa | 10271 | @endif find |
2a4cbe27 | 10272 | |
4fa63067 NN |
10273 | .PHONY: maybe-maintainer-clean-find maintainer-clean-find |
10274 | maybe-maintainer-clean-find: | |
6bd3dfaa PB |
10275 | @if find |
10276 | maybe-maintainer-clean-find: maintainer-clean-find | |
2a4cbe27 | 10277 | |
4fa63067 | 10278 | maintainer-clean-find: |
0aed8855 | 10279 | @: $(MAKE); $(unstage) |
4fa63067 | 10280 | @[ -f ./find/Makefile ] || exit 0; \ |
b40e3958 L |
10281 | r=`${PWD_COMMAND}`; export r; \ |
10282 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10283 | $(HOST_EXPORTS) \ |
b813574b | 10284 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10285 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10286 | done; \ | |
4fa63067 | 10287 | echo "Doing maintainer-clean in find" ; \ |
b00612cc | 10288 | (cd $(HOST_SUBDIR)/find && \ |
2a4cbe27 NN |
10289 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10290 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10291 | "RANLIB=$${RANLIB}" \ | |
10292 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10293 | maintainer-clean) \ |
2a4cbe27 NN |
10294 | || exit 1 |
10295 | ||
6bd3dfaa | 10296 | @endif find |
2a4cbe27 | 10297 | |
2a4cbe27 | 10298 | |
a7254363 | 10299 | |
d3ed111c GK |
10300 | .PHONY: configure-fixincludes maybe-configure-fixincludes |
10301 | maybe-configure-fixincludes: | |
10302 | @if fixincludes | |
10303 | maybe-configure-fixincludes: configure-fixincludes | |
c52c6897 | 10304 | configure-fixincludes: |
0aed8855 | 10305 | @: $(MAKE); $(unstage) |
c52c6897 | 10306 | @r=`${PWD_COMMAND}`; export r; \ |
d3ed111c | 10307 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
10308 | test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \ |
10309 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \ | |
d3ed111c | 10310 | $(HOST_EXPORTS) \ |
a7254363 PB |
10311 | echo Configuring in $(HOST_SUBDIR)/fixincludes; \ |
10312 | cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \ | |
d3ed111c | 10313 | case $(srcdir) in \ |
b00612cc PB |
10314 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
10315 | *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \ | |
10316 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
d3ed111c | 10317 | esac; \ |
b00612cc PB |
10318 | srcdiroption="--srcdir=$${topdir}/fixincludes"; \ |
10319 | libsrcdir="$$s/fixincludes"; \ | |
d3ed111c GK |
10320 | $(SHELL) $${libsrcdir}/configure \ |
10321 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
10322 | || exit 1 | |
10323 | @endif fixincludes | |
10324 | ||
a7254363 PB |
10325 | |
10326 | ||
d545f33b PB |
10327 | |
10328 | ||
d3ed111c GK |
10329 | .PHONY: all-fixincludes maybe-all-fixincludes |
10330 | maybe-all-fixincludes: | |
10331 | @if fixincludes | |
10332 | TARGET-fixincludes=all | |
10333 | maybe-all-fixincludes: all-fixincludes | |
10334 | all-fixincludes: configure-fixincludes | |
0aed8855 | 10335 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10336 | @r=`${PWD_COMMAND}`; export r; \ |
10337 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c | 10338 | $(HOST_EXPORTS) \ |
b00612cc PB |
10339 | (cd $(HOST_SUBDIR)/fixincludes && \ |
10340 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fixincludes)) | |
d3ed111c GK |
10341 | @endif fixincludes |
10342 | ||
a7254363 | 10343 | |
d545f33b PB |
10344 | |
10345 | ||
d3ed111c GK |
10346 | .PHONY: check-fixincludes maybe-check-fixincludes |
10347 | maybe-check-fixincludes: | |
10348 | @if fixincludes | |
10349 | maybe-check-fixincludes: check-fixincludes | |
10350 | ||
10351 | check-fixincludes: | |
0aed8855 | 10352 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10353 | @r=`${PWD_COMMAND}`; export r; \ |
10354 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c | 10355 | $(HOST_EXPORTS) \ |
b00612cc PB |
10356 | (cd $(HOST_SUBDIR)/fixincludes && \ |
10357 | $(MAKE) $(FLAGS_TO_PASS) check) | |
d3ed111c GK |
10358 | |
10359 | @endif fixincludes | |
10360 | ||
10361 | .PHONY: install-fixincludes maybe-install-fixincludes | |
10362 | maybe-install-fixincludes: | |
10363 | @if fixincludes | |
10364 | maybe-install-fixincludes: install-fixincludes | |
10365 | ||
10366 | install-fixincludes: installdirs | |
0aed8855 | 10367 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10368 | @r=`${PWD_COMMAND}`; export r; \ |
10369 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c | 10370 | $(HOST_EXPORTS) \ |
b00612cc | 10371 | (cd $(HOST_SUBDIR)/fixincludes && \ |
2da12f12 | 10372 | $(MAKE) $(FLAGS_TO_PASS) install) |
d3ed111c GK |
10373 | |
10374 | @endif fixincludes | |
10375 | ||
10376 | # Other targets (info, dvi, etc.) | |
10377 | ||
10378 | .PHONY: maybe-info-fixincludes info-fixincludes | |
10379 | maybe-info-fixincludes: | |
10380 | @if fixincludes | |
10381 | maybe-info-fixincludes: info-fixincludes | |
10382 | ||
1eefd493 PB |
10383 | # fixincludes doesn't support info. |
10384 | info-fixincludes: | |
d3ed111c GK |
10385 | |
10386 | @endif fixincludes | |
10387 | ||
10388 | .PHONY: maybe-dvi-fixincludes dvi-fixincludes | |
10389 | maybe-dvi-fixincludes: | |
10390 | @if fixincludes | |
10391 | maybe-dvi-fixincludes: dvi-fixincludes | |
10392 | ||
1eefd493 PB |
10393 | # fixincludes doesn't support dvi. |
10394 | dvi-fixincludes: | |
d3ed111c GK |
10395 | |
10396 | @endif fixincludes | |
10397 | ||
6d389afc MS |
10398 | .PHONY: maybe-html-fixincludes html-fixincludes |
10399 | maybe-html-fixincludes: | |
10400 | @if fixincludes | |
10401 | maybe-html-fixincludes: html-fixincludes | |
10402 | ||
10403 | html-fixincludes: \ | |
10404 | configure-fixincludes | |
0aed8855 | 10405 | @: $(MAKE); $(unstage) |
6d389afc MS |
10406 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
10407 | r=`${PWD_COMMAND}`; export r; \ | |
10408 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
10409 | $(HOST_EXPORTS) \ |
10410 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10412 | done; \ | |
10413 | echo "Doing html in fixincludes" ; \ | |
b00612cc | 10414 | (cd $(HOST_SUBDIR)/fixincludes && \ |
6d389afc MS |
10415 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10416 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10417 | "RANLIB=$${RANLIB}" \ | |
10418 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10419 | html) \ | |
10420 | || exit 1 | |
10421 | ||
10422 | @endif fixincludes | |
10423 | ||
d3ed111c GK |
10424 | .PHONY: maybe-TAGS-fixincludes TAGS-fixincludes |
10425 | maybe-TAGS-fixincludes: | |
10426 | @if fixincludes | |
10427 | maybe-TAGS-fixincludes: TAGS-fixincludes | |
10428 | ||
1eefd493 PB |
10429 | # fixincludes doesn't support TAGS. |
10430 | TAGS-fixincludes: | |
d3ed111c GK |
10431 | |
10432 | @endif fixincludes | |
10433 | ||
10434 | .PHONY: maybe-install-info-fixincludes install-info-fixincludes | |
10435 | maybe-install-info-fixincludes: | |
10436 | @if fixincludes | |
10437 | maybe-install-info-fixincludes: install-info-fixincludes | |
10438 | ||
1eefd493 PB |
10439 | # fixincludes doesn't support install-info. |
10440 | install-info-fixincludes: | |
d3ed111c GK |
10441 | |
10442 | @endif fixincludes | |
10443 | ||
108a6f8e CD |
10444 | .PHONY: maybe-install-html-fixincludes install-html-fixincludes |
10445 | maybe-install-html-fixincludes: | |
10446 | @if fixincludes | |
10447 | maybe-install-html-fixincludes: install-html-fixincludes | |
10448 | ||
10449 | install-html-fixincludes: \ | |
10450 | configure-fixincludes \ | |
10451 | html-fixincludes | |
10452 | @: $(MAKE); $(unstage) | |
10453 | @[ -f ./fixincludes/Makefile ] || exit 0; \ | |
10454 | r=`${PWD_COMMAND}`; export r; \ | |
10455 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10456 | $(HOST_EXPORTS) \ | |
10457 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10458 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10459 | done; \ | |
10460 | echo "Doing install-html in fixincludes" ; \ | |
10461 | (cd $(HOST_SUBDIR)/fixincludes && \ | |
10462 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
10463 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10464 | "RANLIB=$${RANLIB}" \ | |
10465 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10466 | install-html) \ | |
10467 | || exit 1 | |
10468 | ||
10469 | @endif fixincludes | |
10470 | ||
d3ed111c GK |
10471 | .PHONY: maybe-installcheck-fixincludes installcheck-fixincludes |
10472 | maybe-installcheck-fixincludes: | |
10473 | @if fixincludes | |
10474 | maybe-installcheck-fixincludes: installcheck-fixincludes | |
10475 | ||
1eefd493 PB |
10476 | # fixincludes doesn't support installcheck. |
10477 | installcheck-fixincludes: | |
d3ed111c GK |
10478 | |
10479 | @endif fixincludes | |
10480 | ||
10481 | .PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes | |
10482 | maybe-mostlyclean-fixincludes: | |
10483 | @if fixincludes | |
10484 | maybe-mostlyclean-fixincludes: mostlyclean-fixincludes | |
10485 | ||
10486 | mostlyclean-fixincludes: | |
0aed8855 | 10487 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10488 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
10489 | r=`${PWD_COMMAND}`; export r; \ | |
10490 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
10491 | $(HOST_EXPORTS) \ |
10492 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10493 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10494 | done; \ | |
10495 | echo "Doing mostlyclean in fixincludes" ; \ | |
b00612cc | 10496 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
10497 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10498 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10499 | "RANLIB=$${RANLIB}" \ | |
10500 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10501 | mostlyclean) \ | |
10502 | || exit 1 | |
10503 | ||
10504 | @endif fixincludes | |
10505 | ||
10506 | .PHONY: maybe-clean-fixincludes clean-fixincludes | |
10507 | maybe-clean-fixincludes: | |
10508 | @if fixincludes | |
10509 | maybe-clean-fixincludes: clean-fixincludes | |
10510 | ||
10511 | clean-fixincludes: | |
0aed8855 | 10512 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10513 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
10514 | r=`${PWD_COMMAND}`; export r; \ | |
10515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
10516 | $(HOST_EXPORTS) \ |
10517 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10518 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10519 | done; \ | |
10520 | echo "Doing clean in fixincludes" ; \ | |
b00612cc | 10521 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
10522 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10523 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10524 | "RANLIB=$${RANLIB}" \ | |
10525 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10526 | clean) \ | |
10527 | || exit 1 | |
10528 | ||
10529 | @endif fixincludes | |
10530 | ||
10531 | .PHONY: maybe-distclean-fixincludes distclean-fixincludes | |
10532 | maybe-distclean-fixincludes: | |
10533 | @if fixincludes | |
10534 | maybe-distclean-fixincludes: distclean-fixincludes | |
10535 | ||
10536 | distclean-fixincludes: | |
0aed8855 | 10537 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10538 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
10539 | r=`${PWD_COMMAND}`; export r; \ | |
10540 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
10541 | $(HOST_EXPORTS) \ |
10542 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10543 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10544 | done; \ | |
10545 | echo "Doing distclean in fixincludes" ; \ | |
b00612cc | 10546 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
10547 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10548 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10549 | "RANLIB=$${RANLIB}" \ | |
10550 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10551 | distclean) \ | |
10552 | || exit 1 | |
10553 | ||
10554 | @endif fixincludes | |
10555 | ||
10556 | .PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes | |
10557 | maybe-maintainer-clean-fixincludes: | |
10558 | @if fixincludes | |
10559 | maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes | |
10560 | ||
10561 | maintainer-clean-fixincludes: | |
0aed8855 | 10562 | @: $(MAKE); $(unstage) |
d3ed111c GK |
10563 | @[ -f ./fixincludes/Makefile ] || exit 0; \ |
10564 | r=`${PWD_COMMAND}`; export r; \ | |
10565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
d3ed111c GK |
10566 | $(HOST_EXPORTS) \ |
10567 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10568 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10569 | done; \ | |
10570 | echo "Doing maintainer-clean in fixincludes" ; \ | |
b00612cc | 10571 | (cd $(HOST_SUBDIR)/fixincludes && \ |
d3ed111c GK |
10572 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10573 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10574 | "RANLIB=$${RANLIB}" \ | |
10575 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10576 | maintainer-clean) \ | |
10577 | || exit 1 | |
10578 | ||
10579 | @endif fixincludes | |
10580 | ||
10581 | ||
a7254363 | 10582 | |
4fa63067 NN |
10583 | .PHONY: configure-flex maybe-configure-flex |
10584 | maybe-configure-flex: | |
6bd3dfaa PB |
10585 | @if flex |
10586 | maybe-configure-flex: configure-flex | |
c52c6897 | 10587 | configure-flex: |
0aed8855 | 10588 | @: $(MAKE); $(unstage) |
c52c6897 | 10589 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 10590 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
10591 | test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \ |
10592 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \ | |
378fce5b | 10593 | $(HOST_EXPORTS) \ |
a7254363 PB |
10594 | echo Configuring in $(HOST_SUBDIR)/flex; \ |
10595 | cd "$(HOST_SUBDIR)/flex" || exit 1; \ | |
4fa63067 | 10596 | case $(srcdir) in \ |
b00612cc PB |
10597 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
10598 | *) topdir=`echo $(HOST_SUBDIR)/flex/ | \ | |
10599 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 10600 | esac; \ |
b00612cc PB |
10601 | srcdiroption="--srcdir=$${topdir}/flex"; \ |
10602 | libsrcdir="$$s/flex"; \ | |
4fa63067 | 10603 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 10604 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 10605 | || exit 1 |
6bd3dfaa | 10606 | @endif flex |
4fa63067 | 10607 | |
a7254363 PB |
10608 | |
10609 | ||
d545f33b PB |
10610 | |
10611 | ||
4fa63067 NN |
10612 | .PHONY: all-flex maybe-all-flex |
10613 | maybe-all-flex: | |
6bd3dfaa | 10614 | @if flex |
d27cc32e | 10615 | TARGET-flex=all |
6bd3dfaa | 10616 | maybe-all-flex: all-flex |
4fa63067 | 10617 | all-flex: configure-flex |
0aed8855 | 10618 | @: $(MAKE); $(unstage) |
4fa63067 NN |
10619 | @r=`${PWD_COMMAND}`; export r; \ |
10620 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10621 | $(HOST_EXPORTS) \ |
b00612cc PB |
10622 | (cd $(HOST_SUBDIR)/flex && \ |
10623 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-flex)) | |
6bd3dfaa | 10624 | @endif flex |
4fa63067 | 10625 | |
a7254363 | 10626 | |
d545f33b PB |
10627 | |
10628 | ||
4fa63067 NN |
10629 | .PHONY: check-flex maybe-check-flex |
10630 | maybe-check-flex: | |
6bd3dfaa PB |
10631 | @if flex |
10632 | maybe-check-flex: check-flex | |
4fa63067 NN |
10633 | |
10634 | # This module is only tested in a native toolchain. | |
10635 | check-flex: | |
0aed8855 | 10636 | @: $(MAKE); $(unstage) |
4fa63067 NN |
10637 | @if [ '$(host)' = '$(target)' ] ; then \ |
10638 | r=`${PWD_COMMAND}`; export r; \ | |
10639 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10640 | $(HOST_EXPORTS) \ |
b00612cc | 10641 | (cd $(HOST_SUBDIR)/flex && \ |
4cfaf6d5 | 10642 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
4fa63067 NN |
10643 | fi |
10644 | ||
6bd3dfaa | 10645 | @endif flex |
4fa63067 NN |
10646 | |
10647 | .PHONY: install-flex maybe-install-flex | |
10648 | maybe-install-flex: | |
6bd3dfaa PB |
10649 | @if flex |
10650 | maybe-install-flex: install-flex | |
4fa63067 NN |
10651 | |
10652 | install-flex: installdirs | |
0aed8855 | 10653 | @: $(MAKE); $(unstage) |
4fa63067 NN |
10654 | @r=`${PWD_COMMAND}`; export r; \ |
10655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10656 | $(HOST_EXPORTS) \ |
b00612cc | 10657 | (cd $(HOST_SUBDIR)/flex && \ |
2da12f12 | 10658 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 10659 | |
6bd3dfaa | 10660 | @endif flex |
4fa63067 NN |
10661 | |
10662 | # Other targets (info, dvi, etc.) | |
10663 | ||
10664 | .PHONY: maybe-info-flex info-flex | |
10665 | maybe-info-flex: | |
6bd3dfaa PB |
10666 | @if flex |
10667 | maybe-info-flex: info-flex | |
4fa63067 NN |
10668 | |
10669 | info-flex: \ | |
10670 | configure-flex | |
0aed8855 | 10671 | @: $(MAKE); $(unstage) |
4fa63067 | 10672 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10673 | r=`${PWD_COMMAND}`; export r; \ |
10674 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10675 | $(HOST_EXPORTS) \ |
b813574b | 10676 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10677 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10678 | done; \ | |
4fa63067 | 10679 | echo "Doing info in flex" ; \ |
b00612cc | 10680 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10681 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10682 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10683 | "RANLIB=$${RANLIB}" \ | |
10684 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10685 | info) \ |
2a4cbe27 NN |
10686 | || exit 1 |
10687 | ||
6bd3dfaa | 10688 | @endif flex |
2a4cbe27 | 10689 | |
4fa63067 NN |
10690 | .PHONY: maybe-dvi-flex dvi-flex |
10691 | maybe-dvi-flex: | |
6bd3dfaa PB |
10692 | @if flex |
10693 | maybe-dvi-flex: dvi-flex | |
2a4cbe27 | 10694 | |
4fa63067 NN |
10695 | dvi-flex: \ |
10696 | configure-flex | |
0aed8855 | 10697 | @: $(MAKE); $(unstage) |
4fa63067 | 10698 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10699 | r=`${PWD_COMMAND}`; export r; \ |
10700 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10701 | $(HOST_EXPORTS) \ |
b813574b | 10702 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10703 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10704 | done; \ | |
4fa63067 | 10705 | echo "Doing dvi in flex" ; \ |
b00612cc | 10706 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10707 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10708 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10709 | "RANLIB=$${RANLIB}" \ | |
10710 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10711 | dvi) \ |
2a4cbe27 NN |
10712 | || exit 1 |
10713 | ||
6bd3dfaa | 10714 | @endif flex |
2a4cbe27 | 10715 | |
6d389afc MS |
10716 | .PHONY: maybe-html-flex html-flex |
10717 | maybe-html-flex: | |
10718 | @if flex | |
10719 | maybe-html-flex: html-flex | |
10720 | ||
10721 | html-flex: \ | |
10722 | configure-flex | |
0aed8855 | 10723 | @: $(MAKE); $(unstage) |
6d389afc MS |
10724 | @[ -f ./flex/Makefile ] || exit 0; \ |
10725 | r=`${PWD_COMMAND}`; export r; \ | |
10726 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
10727 | $(HOST_EXPORTS) \ |
10728 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10729 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10730 | done; \ | |
10731 | echo "Doing html in flex" ; \ | |
b00612cc | 10732 | (cd $(HOST_SUBDIR)/flex && \ |
6d389afc MS |
10733 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10734 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10735 | "RANLIB=$${RANLIB}" \ | |
10736 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10737 | html) \ | |
10738 | || exit 1 | |
10739 | ||
10740 | @endif flex | |
10741 | ||
4fa63067 NN |
10742 | .PHONY: maybe-TAGS-flex TAGS-flex |
10743 | maybe-TAGS-flex: | |
6bd3dfaa PB |
10744 | @if flex |
10745 | maybe-TAGS-flex: TAGS-flex | |
2a4cbe27 | 10746 | |
4fa63067 NN |
10747 | TAGS-flex: \ |
10748 | configure-flex | |
0aed8855 | 10749 | @: $(MAKE); $(unstage) |
4fa63067 | 10750 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10751 | r=`${PWD_COMMAND}`; export r; \ |
10752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10753 | $(HOST_EXPORTS) \ |
b813574b | 10754 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10755 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10756 | done; \ | |
4fa63067 | 10757 | echo "Doing TAGS in flex" ; \ |
b00612cc | 10758 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10759 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10760 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10761 | "RANLIB=$${RANLIB}" \ | |
10762 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10763 | TAGS) \ |
2a4cbe27 NN |
10764 | || exit 1 |
10765 | ||
6bd3dfaa | 10766 | @endif flex |
2a4cbe27 | 10767 | |
4fa63067 NN |
10768 | .PHONY: maybe-install-info-flex install-info-flex |
10769 | maybe-install-info-flex: | |
6bd3dfaa PB |
10770 | @if flex |
10771 | maybe-install-info-flex: install-info-flex | |
2a4cbe27 | 10772 | |
4fa63067 NN |
10773 | install-info-flex: \ |
10774 | configure-flex \ | |
10775 | info-flex | |
0aed8855 | 10776 | @: $(MAKE); $(unstage) |
4fa63067 | 10777 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10778 | r=`${PWD_COMMAND}`; export r; \ |
10779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10780 | $(HOST_EXPORTS) \ |
b813574b | 10781 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10782 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10783 | done; \ | |
4fa63067 | 10784 | echo "Doing install-info in flex" ; \ |
b00612cc | 10785 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10786 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10787 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10788 | "RANLIB=$${RANLIB}" \ | |
10789 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10790 | install-info) \ |
2a4cbe27 NN |
10791 | || exit 1 |
10792 | ||
6bd3dfaa | 10793 | @endif flex |
2a4cbe27 | 10794 | |
108a6f8e CD |
10795 | .PHONY: maybe-install-html-flex install-html-flex |
10796 | maybe-install-html-flex: | |
10797 | @if flex | |
10798 | maybe-install-html-flex: install-html-flex | |
10799 | ||
10800 | install-html-flex: \ | |
10801 | configure-flex \ | |
10802 | html-flex | |
10803 | @: $(MAKE); $(unstage) | |
10804 | @[ -f ./flex/Makefile ] || exit 0; \ | |
10805 | r=`${PWD_COMMAND}`; export r; \ | |
10806 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
10807 | $(HOST_EXPORTS) \ | |
10808 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
10809 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
10810 | done; \ | |
10811 | echo "Doing install-html in flex" ; \ | |
10812 | (cd $(HOST_SUBDIR)/flex && \ | |
10813 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
10814 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10815 | "RANLIB=$${RANLIB}" \ | |
10816 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
10817 | install-html) \ | |
10818 | || exit 1 | |
10819 | ||
10820 | @endif flex | |
10821 | ||
4fa63067 NN |
10822 | .PHONY: maybe-installcheck-flex installcheck-flex |
10823 | maybe-installcheck-flex: | |
6bd3dfaa PB |
10824 | @if flex |
10825 | maybe-installcheck-flex: installcheck-flex | |
2a4cbe27 | 10826 | |
4fa63067 NN |
10827 | installcheck-flex: \ |
10828 | configure-flex | |
0aed8855 | 10829 | @: $(MAKE); $(unstage) |
4fa63067 | 10830 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10831 | r=`${PWD_COMMAND}`; export r; \ |
10832 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10833 | $(HOST_EXPORTS) \ |
b813574b | 10834 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10835 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10836 | done; \ | |
4fa63067 | 10837 | echo "Doing installcheck in flex" ; \ |
b00612cc | 10838 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10839 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10840 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10841 | "RANLIB=$${RANLIB}" \ | |
10842 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10843 | installcheck) \ |
2a4cbe27 NN |
10844 | || exit 1 |
10845 | ||
6bd3dfaa | 10846 | @endif flex |
2a4cbe27 | 10847 | |
4fa63067 NN |
10848 | .PHONY: maybe-mostlyclean-flex mostlyclean-flex |
10849 | maybe-mostlyclean-flex: | |
6bd3dfaa PB |
10850 | @if flex |
10851 | maybe-mostlyclean-flex: mostlyclean-flex | |
2a4cbe27 | 10852 | |
4fa63067 | 10853 | mostlyclean-flex: |
0aed8855 | 10854 | @: $(MAKE); $(unstage) |
4fa63067 | 10855 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10856 | r=`${PWD_COMMAND}`; export r; \ |
10857 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10858 | $(HOST_EXPORTS) \ |
b813574b | 10859 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10860 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10861 | done; \ | |
4fa63067 | 10862 | echo "Doing mostlyclean in flex" ; \ |
b00612cc | 10863 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10864 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10865 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10866 | "RANLIB=$${RANLIB}" \ | |
10867 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10868 | mostlyclean) \ |
2a4cbe27 NN |
10869 | || exit 1 |
10870 | ||
6bd3dfaa | 10871 | @endif flex |
2a4cbe27 | 10872 | |
4fa63067 NN |
10873 | .PHONY: maybe-clean-flex clean-flex |
10874 | maybe-clean-flex: | |
6bd3dfaa PB |
10875 | @if flex |
10876 | maybe-clean-flex: clean-flex | |
2a4cbe27 | 10877 | |
4fa63067 | 10878 | clean-flex: |
0aed8855 | 10879 | @: $(MAKE); $(unstage) |
4fa63067 | 10880 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10881 | r=`${PWD_COMMAND}`; export r; \ |
10882 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10883 | $(HOST_EXPORTS) \ |
b813574b | 10884 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10886 | done; \ | |
4fa63067 | 10887 | echo "Doing clean in flex" ; \ |
b00612cc | 10888 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10889 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10890 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10891 | "RANLIB=$${RANLIB}" \ | |
10892 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10893 | clean) \ |
2a4cbe27 NN |
10894 | || exit 1 |
10895 | ||
6bd3dfaa | 10896 | @endif flex |
2a4cbe27 | 10897 | |
4fa63067 NN |
10898 | .PHONY: maybe-distclean-flex distclean-flex |
10899 | maybe-distclean-flex: | |
6bd3dfaa PB |
10900 | @if flex |
10901 | maybe-distclean-flex: distclean-flex | |
2a4cbe27 | 10902 | |
4fa63067 | 10903 | distclean-flex: |
0aed8855 | 10904 | @: $(MAKE); $(unstage) |
4fa63067 | 10905 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10906 | r=`${PWD_COMMAND}`; export r; \ |
10907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10908 | $(HOST_EXPORTS) \ |
b813574b | 10909 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10911 | done; \ | |
4fa63067 | 10912 | echo "Doing distclean in flex" ; \ |
b00612cc | 10913 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10914 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10915 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10916 | "RANLIB=$${RANLIB}" \ | |
10917 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10918 | distclean) \ |
2a4cbe27 NN |
10919 | || exit 1 |
10920 | ||
6bd3dfaa | 10921 | @endif flex |
2a4cbe27 | 10922 | |
4fa63067 NN |
10923 | .PHONY: maybe-maintainer-clean-flex maintainer-clean-flex |
10924 | maybe-maintainer-clean-flex: | |
6bd3dfaa PB |
10925 | @if flex |
10926 | maybe-maintainer-clean-flex: maintainer-clean-flex | |
2a4cbe27 | 10927 | |
4fa63067 | 10928 | maintainer-clean-flex: |
0aed8855 | 10929 | @: $(MAKE); $(unstage) |
4fa63067 | 10930 | @[ -f ./flex/Makefile ] || exit 0; \ |
b40e3958 L |
10931 | r=`${PWD_COMMAND}`; export r; \ |
10932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 10933 | $(HOST_EXPORTS) \ |
b813574b | 10934 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
10935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
10936 | done; \ | |
4fa63067 | 10937 | echo "Doing maintainer-clean in flex" ; \ |
b00612cc | 10938 | (cd $(HOST_SUBDIR)/flex && \ |
2a4cbe27 NN |
10939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
10940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
10941 | "RANLIB=$${RANLIB}" \ | |
10942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 10943 | maintainer-clean) \ |
2a4cbe27 NN |
10944 | || exit 1 |
10945 | ||
6bd3dfaa | 10946 | @endif flex |
2a4cbe27 | 10947 | |
2a4cbe27 | 10948 | |
a7254363 | 10949 | |
4fa63067 NN |
10950 | .PHONY: configure-gas maybe-configure-gas |
10951 | maybe-configure-gas: | |
6bd3dfaa PB |
10952 | @if gas |
10953 | maybe-configure-gas: configure-gas | |
c52c6897 PB |
10954 | configure-gas: |
10955 | @endif gas | |
10956 | @if gas-bootstrap | |
10957 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
10958 | @endif gas-bootstrap | |
10959 | @if gas | |
10960 | @r=`${PWD_COMMAND}`; export r; \ | |
10961 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
10962 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
10963 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ | |
378fce5b | 10964 | $(HOST_EXPORTS) \ |
a7254363 PB |
10965 | echo Configuring in $(HOST_SUBDIR)/gas; \ |
10966 | cd "$(HOST_SUBDIR)/gas" || exit 1; \ | |
4fa63067 | 10967 | case $(srcdir) in \ |
b00612cc PB |
10968 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
10969 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
10970 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 10971 | esac; \ |
b00612cc PB |
10972 | srcdiroption="--srcdir=$${topdir}/gas"; \ |
10973 | libsrcdir="$$s/gas"; \ | |
4fa63067 | 10974 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 10975 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 10976 | || exit 1 |
6bd3dfaa | 10977 | @endif gas |
4fa63067 | 10978 | |
a7254363 PB |
10979 | |
10980 | ||
d545f33b PB |
10981 | .PHONY: configure-stage1-gas maybe-configure-stage1-gas |
10982 | maybe-configure-stage1-gas: | |
10983 | @if gas-bootstrap | |
10984 | maybe-configure-stage1-gas: configure-stage1-gas | |
0aed8855 | 10985 | configure-stage1-gas: |
c52c6897 | 10986 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 10987 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas |
c52c6897 PB |
10988 | @r=`${PWD_COMMAND}`; export r; \ |
10989 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 10990 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
d545f33b PB |
10991 | $(HOST_EXPORTS) \ |
10992 | echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \ | |
0aed8855 | 10993 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ |
d545f33b PB |
10994 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
10995 | case $(srcdir) in \ | |
10996 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
10997 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
10998 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
10999 | esac; \ | |
11000 | srcdiroption="--srcdir=$${topdir}/gas"; \ | |
11001 | libsrcdir="$$s/gas"; \ | |
11002 | $(SHELL) $${libsrcdir}/configure \ | |
11003 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11004 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
11005 | @endif gas-bootstrap | |
11006 | ||
11007 | .PHONY: configure-stage2-gas maybe-configure-stage2-gas | |
11008 | maybe-configure-stage2-gas: | |
11009 | @if gas-bootstrap | |
11010 | maybe-configure-stage2-gas: configure-stage2-gas | |
0aed8855 | 11011 | configure-stage2-gas: |
c52c6897 | 11012 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 11013 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas |
c52c6897 PB |
11014 | @r=`${PWD_COMMAND}`; export r; \ |
11015 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11016 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
d545f33b PB |
11017 | $(HOST_EXPORTS) \ |
11018 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11019 | echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \ | |
0aed8855 | 11020 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ |
d545f33b PB |
11021 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
11022 | case $(srcdir) in \ | |
11023 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11024 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
11025 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11026 | esac; \ | |
11027 | srcdiroption="--srcdir=$${topdir}/gas"; \ | |
11028 | libsrcdir="$$s/gas"; \ | |
11029 | $(SHELL) $${libsrcdir}/configure \ | |
11030 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11031 | @stage2_werror_flag@ | |
11032 | @endif gas-bootstrap | |
11033 | ||
11034 | .PHONY: configure-stage3-gas maybe-configure-stage3-gas | |
11035 | maybe-configure-stage3-gas: | |
11036 | @if gas-bootstrap | |
11037 | maybe-configure-stage3-gas: configure-stage3-gas | |
0aed8855 | 11038 | configure-stage3-gas: |
c52c6897 | 11039 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 11040 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas |
c52c6897 PB |
11041 | @r=`${PWD_COMMAND}`; export r; \ |
11042 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11043 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
d545f33b PB |
11044 | $(HOST_EXPORTS) \ |
11045 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11046 | echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \ | |
0aed8855 | 11047 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ |
d545f33b PB |
11048 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
11049 | case $(srcdir) in \ | |
11050 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11051 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
11052 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11053 | esac; \ | |
11054 | srcdiroption="--srcdir=$${topdir}/gas"; \ | |
11055 | libsrcdir="$$s/gas"; \ | |
11056 | $(SHELL) $${libsrcdir}/configure \ | |
11057 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11058 | @stage2_werror_flag@ | |
11059 | @endif gas-bootstrap | |
11060 | ||
11061 | .PHONY: configure-stage4-gas maybe-configure-stage4-gas | |
11062 | maybe-configure-stage4-gas: | |
11063 | @if gas-bootstrap | |
11064 | maybe-configure-stage4-gas: configure-stage4-gas | |
0aed8855 | 11065 | configure-stage4-gas: |
c52c6897 | 11066 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 11067 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas |
c52c6897 PB |
11068 | @r=`${PWD_COMMAND}`; export r; \ |
11069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11070 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
d545f33b PB |
11071 | $(HOST_EXPORTS) \ |
11072 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11073 | echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \ | |
0aed8855 | 11074 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ |
d545f33b PB |
11075 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
11076 | case $(srcdir) in \ | |
11077 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11078 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
11079 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11080 | esac; \ | |
11081 | srcdiroption="--srcdir=$${topdir}/gas"; \ | |
11082 | libsrcdir="$$s/gas"; \ | |
11083 | $(SHELL) $${libsrcdir}/configure \ | |
11084 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11085 | @stage2_werror_flag@ | |
11086 | @endif gas-bootstrap | |
11087 | ||
11088 | .PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas | |
11089 | maybe-configure-stageprofile-gas: | |
11090 | @if gas-bootstrap | |
11091 | maybe-configure-stageprofile-gas: configure-stageprofile-gas | |
0aed8855 | 11092 | configure-stageprofile-gas: |
c52c6897 | 11093 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 11094 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas |
c52c6897 PB |
11095 | @r=`${PWD_COMMAND}`; export r; \ |
11096 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11097 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
d545f33b PB |
11098 | $(HOST_EXPORTS) \ |
11099 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11100 | echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \ | |
0aed8855 | 11101 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ |
d545f33b PB |
11102 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
11103 | case $(srcdir) in \ | |
11104 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11105 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
11106 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11107 | esac; \ | |
11108 | srcdiroption="--srcdir=$${topdir}/gas"; \ | |
11109 | libsrcdir="$$s/gas"; \ | |
11110 | $(SHELL) $${libsrcdir}/configure \ | |
11111 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11112 | @stage2_werror_flag@ | |
11113 | @endif gas-bootstrap | |
11114 | ||
11115 | .PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas | |
11116 | maybe-configure-stagefeedback-gas: | |
11117 | @if gas-bootstrap | |
11118 | maybe-configure-stagefeedback-gas: configure-stagefeedback-gas | |
0aed8855 | 11119 | configure-stagefeedback-gas: |
c52c6897 | 11120 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 11121 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas |
c52c6897 PB |
11122 | @r=`${PWD_COMMAND}`; export r; \ |
11123 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11124 | test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \ |
d545f33b PB |
11125 | $(HOST_EXPORTS) \ |
11126 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11127 | echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \ | |
0aed8855 | 11128 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \ |
d545f33b PB |
11129 | cd $(HOST_SUBDIR)/gas || exit 1; \ |
11130 | case $(srcdir) in \ | |
11131 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11132 | *) topdir=`echo $(HOST_SUBDIR)/gas/ | \ | |
11133 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11134 | esac; \ | |
11135 | srcdiroption="--srcdir=$${topdir}/gas"; \ | |
11136 | libsrcdir="$$s/gas"; \ | |
11137 | $(SHELL) $${libsrcdir}/configure \ | |
11138 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11139 | @stage2_werror_flag@ | |
11140 | @endif gas-bootstrap | |
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
4fa63067 NN |
11146 | .PHONY: all-gas maybe-all-gas |
11147 | maybe-all-gas: | |
6bd3dfaa | 11148 | @if gas |
d27cc32e | 11149 | TARGET-gas=all |
6bd3dfaa | 11150 | maybe-all-gas: all-gas |
4fa63067 | 11151 | all-gas: configure-gas |
c52c6897 PB |
11152 | @endif gas |
11153 | @if gas-bootstrap | |
11154 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
11155 | @endif gas-bootstrap | |
11156 | @if gas | |
11157 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 11158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11159 | $(HOST_EXPORTS) \ |
b00612cc PB |
11160 | (cd $(HOST_SUBDIR)/gas && \ |
11161 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gas)) | |
6bd3dfaa | 11162 | @endif gas |
4fa63067 | 11163 | |
a7254363 | 11164 | |
d545f33b PB |
11165 | |
11166 | .PHONY: all-stage1-gas maybe-all-stage1-gas | |
11167 | .PHONY: clean-stage1-gas maybe-clean-stage1-gas | |
11168 | maybe-all-stage1-gas: | |
11169 | maybe-clean-stage1-gas: | |
11170 | @if gas-bootstrap | |
11171 | maybe-all-stage1-gas: all-stage1-gas | |
11172 | all-stage1: all-stage1-gas | |
f70224b5 | 11173 | TARGET-stage1-gas = $(TARGET-gas) |
d545f33b | 11174 | all-stage1-gas: configure-stage1-gas |
c52c6897 | 11175 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
11176 | @r=`${PWD_COMMAND}`; export r; \ |
11177 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11178 | $(HOST_EXPORTS) \ | |
11179 | cd $(HOST_SUBDIR)/gas && \ | |
c52c6897 | 11180 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 11181 | $(TARGET-stage1-gas) |
d545f33b PB |
11182 | |
11183 | maybe-clean-stage1-gas: clean-stage1-gas | |
11184 | clean-stage1: clean-stage1-gas | |
11185 | clean-stage1-gas: | |
11186 | @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] \ | |
11187 | || exit 0 ; \ | |
c52c6897 | 11188 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
11189 | cd $(HOST_SUBDIR)/gas && \ |
11190 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 11191 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
11192 | @endif gas-bootstrap |
11193 | ||
11194 | ||
11195 | .PHONY: all-stage2-gas maybe-all-stage2-gas | |
11196 | .PHONY: clean-stage2-gas maybe-clean-stage2-gas | |
11197 | maybe-all-stage2-gas: | |
11198 | maybe-clean-stage2-gas: | |
11199 | @if gas-bootstrap | |
11200 | maybe-all-stage2-gas: all-stage2-gas | |
11201 | all-stage2: all-stage2-gas | |
f70224b5 | 11202 | TARGET-stage2-gas = $(TARGET-gas) |
d545f33b | 11203 | all-stage2-gas: configure-stage2-gas |
c52c6897 | 11204 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
11205 | @r=`${PWD_COMMAND}`; export r; \ |
11206 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11207 | $(HOST_EXPORTS) \ | |
11208 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11209 | cd $(HOST_SUBDIR)/gas && \ | |
f70224b5 PB |
11210 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
11211 | $(TARGET-stage2-gas) | |
d545f33b PB |
11212 | |
11213 | maybe-clean-stage2-gas: clean-stage2-gas | |
11214 | clean-stage2: clean-stage2-gas | |
11215 | clean-stage2-gas: | |
11216 | @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] \ | |
11217 | || exit 0 ; \ | |
c52c6897 | 11218 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
11219 | cd $(HOST_SUBDIR)/gas && \ |
11220 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11221 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11222 | clean | |
11223 | @endif gas-bootstrap | |
11224 | ||
11225 | ||
11226 | .PHONY: all-stage3-gas maybe-all-stage3-gas | |
11227 | .PHONY: clean-stage3-gas maybe-clean-stage3-gas | |
11228 | maybe-all-stage3-gas: | |
11229 | maybe-clean-stage3-gas: | |
11230 | @if gas-bootstrap | |
11231 | maybe-all-stage3-gas: all-stage3-gas | |
11232 | all-stage3: all-stage3-gas | |
f70224b5 | 11233 | TARGET-stage3-gas = $(TARGET-gas) |
d545f33b | 11234 | all-stage3-gas: configure-stage3-gas |
c52c6897 | 11235 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
11236 | @r=`${PWD_COMMAND}`; export r; \ |
11237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11238 | $(HOST_EXPORTS) \ | |
11239 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11240 | cd $(HOST_SUBDIR)/gas && \ | |
f70224b5 PB |
11241 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
11242 | $(TARGET-stage3-gas) | |
d545f33b PB |
11243 | |
11244 | maybe-clean-stage3-gas: clean-stage3-gas | |
11245 | clean-stage3: clean-stage3-gas | |
11246 | clean-stage3-gas: | |
11247 | @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] \ | |
11248 | || exit 0 ; \ | |
c52c6897 | 11249 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
11250 | cd $(HOST_SUBDIR)/gas && \ |
11251 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11252 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11253 | clean | |
11254 | @endif gas-bootstrap | |
11255 | ||
11256 | ||
11257 | .PHONY: all-stage4-gas maybe-all-stage4-gas | |
11258 | .PHONY: clean-stage4-gas maybe-clean-stage4-gas | |
11259 | maybe-all-stage4-gas: | |
11260 | maybe-clean-stage4-gas: | |
11261 | @if gas-bootstrap | |
11262 | maybe-all-stage4-gas: all-stage4-gas | |
11263 | all-stage4: all-stage4-gas | |
f70224b5 | 11264 | TARGET-stage4-gas = $(TARGET-gas) |
d545f33b | 11265 | all-stage4-gas: configure-stage4-gas |
c52c6897 | 11266 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
11267 | @r=`${PWD_COMMAND}`; export r; \ |
11268 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11269 | $(HOST_EXPORTS) \ | |
11270 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11271 | cd $(HOST_SUBDIR)/gas && \ | |
f70224b5 PB |
11272 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
11273 | $(TARGET-stage4-gas) | |
d545f33b PB |
11274 | |
11275 | maybe-clean-stage4-gas: clean-stage4-gas | |
11276 | clean-stage4: clean-stage4-gas | |
11277 | clean-stage4-gas: | |
11278 | @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] \ | |
11279 | || exit 0 ; \ | |
c52c6897 | 11280 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
11281 | cd $(HOST_SUBDIR)/gas && \ |
11282 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11283 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11284 | clean | |
11285 | @endif gas-bootstrap | |
11286 | ||
11287 | ||
11288 | .PHONY: all-stageprofile-gas maybe-all-stageprofile-gas | |
11289 | .PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas | |
11290 | maybe-all-stageprofile-gas: | |
11291 | maybe-clean-stageprofile-gas: | |
11292 | @if gas-bootstrap | |
11293 | maybe-all-stageprofile-gas: all-stageprofile-gas | |
11294 | all-stageprofile: all-stageprofile-gas | |
f70224b5 | 11295 | TARGET-stageprofile-gas = $(TARGET-gas) |
d545f33b | 11296 | all-stageprofile-gas: configure-stageprofile-gas |
c52c6897 | 11297 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
11298 | @r=`${PWD_COMMAND}`; export r; \ |
11299 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11300 | $(HOST_EXPORTS) \ | |
11301 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11302 | cd $(HOST_SUBDIR)/gas && \ | |
f70224b5 PB |
11303 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
11304 | $(TARGET-stageprofile-gas) | |
d545f33b PB |
11305 | |
11306 | maybe-clean-stageprofile-gas: clean-stageprofile-gas | |
11307 | clean-stageprofile: clean-stageprofile-gas | |
11308 | clean-stageprofile-gas: | |
11309 | @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] \ | |
11310 | || exit 0 ; \ | |
c52c6897 | 11311 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
11312 | cd $(HOST_SUBDIR)/gas && \ |
11313 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11314 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11315 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
11316 | @endif gas-bootstrap | |
11317 | ||
11318 | ||
11319 | .PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas | |
11320 | .PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas | |
11321 | maybe-all-stagefeedback-gas: | |
11322 | maybe-clean-stagefeedback-gas: | |
11323 | @if gas-bootstrap | |
11324 | maybe-all-stagefeedback-gas: all-stagefeedback-gas | |
11325 | all-stagefeedback: all-stagefeedback-gas | |
f70224b5 | 11326 | TARGET-stagefeedback-gas = $(TARGET-gas) |
d545f33b | 11327 | all-stagefeedback-gas: configure-stagefeedback-gas |
c52c6897 | 11328 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
11329 | @r=`${PWD_COMMAND}`; export r; \ |
11330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11331 | $(HOST_EXPORTS) \ | |
11332 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11333 | cd $(HOST_SUBDIR)/gas && \ | |
f70224b5 PB |
11334 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
11335 | $(TARGET-stagefeedback-gas) | |
d545f33b PB |
11336 | |
11337 | maybe-clean-stagefeedback-gas: clean-stagefeedback-gas | |
11338 | clean-stagefeedback: clean-stagefeedback-gas | |
11339 | clean-stagefeedback-gas: | |
11340 | @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] \ | |
11341 | || exit 0 ; \ | |
c52c6897 | 11342 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
11343 | cd $(HOST_SUBDIR)/gas && \ |
11344 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11345 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11346 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
11347 | @endif gas-bootstrap | |
11348 | ||
11349 | ||
11350 | ||
11351 | ||
11352 | ||
4fa63067 NN |
11353 | .PHONY: check-gas maybe-check-gas |
11354 | maybe-check-gas: | |
6bd3dfaa PB |
11355 | @if gas |
11356 | maybe-check-gas: check-gas | |
4fa63067 NN |
11357 | |
11358 | check-gas: | |
0aed8855 | 11359 | @: $(MAKE); $(unstage) |
4fa63067 NN |
11360 | @r=`${PWD_COMMAND}`; export r; \ |
11361 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11362 | $(HOST_EXPORTS) \ |
b00612cc PB |
11363 | (cd $(HOST_SUBDIR)/gas && \ |
11364 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 11365 | |
6bd3dfaa | 11366 | @endif gas |
4fa63067 NN |
11367 | |
11368 | .PHONY: install-gas maybe-install-gas | |
11369 | maybe-install-gas: | |
6bd3dfaa PB |
11370 | @if gas |
11371 | maybe-install-gas: install-gas | |
4fa63067 NN |
11372 | |
11373 | install-gas: installdirs | |
0aed8855 | 11374 | @: $(MAKE); $(unstage) |
4fa63067 NN |
11375 | @r=`${PWD_COMMAND}`; export r; \ |
11376 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11377 | $(HOST_EXPORTS) \ |
b00612cc | 11378 | (cd $(HOST_SUBDIR)/gas && \ |
2da12f12 | 11379 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 11380 | |
6bd3dfaa | 11381 | @endif gas |
4fa63067 NN |
11382 | |
11383 | # Other targets (info, dvi, etc.) | |
11384 | ||
11385 | .PHONY: maybe-info-gas info-gas | |
11386 | maybe-info-gas: | |
6bd3dfaa PB |
11387 | @if gas |
11388 | maybe-info-gas: info-gas | |
4fa63067 NN |
11389 | |
11390 | info-gas: \ | |
11391 | configure-gas | |
11392 | @[ -f ./gas/Makefile ] || exit 0; \ | |
11393 | r=`${PWD_COMMAND}`; export r; \ | |
11394 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11395 | $(HOST_EXPORTS) \ |
b813574b | 11396 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11397 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11398 | done; \ | |
4fa63067 | 11399 | echo "Doing info in gas" ; \ |
b00612cc | 11400 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11401 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11402 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11403 | "RANLIB=$${RANLIB}" \ | |
11404 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11405 | info) \ |
2a4cbe27 NN |
11406 | || exit 1 |
11407 | ||
6bd3dfaa | 11408 | @endif gas |
2a4cbe27 | 11409 | |
4fa63067 NN |
11410 | .PHONY: maybe-dvi-gas dvi-gas |
11411 | maybe-dvi-gas: | |
6bd3dfaa PB |
11412 | @if gas |
11413 | maybe-dvi-gas: dvi-gas | |
2a4cbe27 | 11414 | |
4fa63067 NN |
11415 | dvi-gas: \ |
11416 | configure-gas | |
11417 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11418 | r=`${PWD_COMMAND}`; export r; \ |
11419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11420 | $(HOST_EXPORTS) \ |
b813574b | 11421 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11422 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11423 | done; \ | |
4fa63067 | 11424 | echo "Doing dvi in gas" ; \ |
b00612cc | 11425 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11426 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11427 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11428 | "RANLIB=$${RANLIB}" \ | |
11429 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11430 | dvi) \ |
2a4cbe27 NN |
11431 | || exit 1 |
11432 | ||
6bd3dfaa | 11433 | @endif gas |
2a4cbe27 | 11434 | |
6d389afc MS |
11435 | .PHONY: maybe-html-gas html-gas |
11436 | maybe-html-gas: | |
11437 | @if gas | |
11438 | maybe-html-gas: html-gas | |
11439 | ||
11440 | html-gas: \ | |
11441 | configure-gas | |
11442 | @[ -f ./gas/Makefile ] || exit 0; \ | |
11443 | r=`${PWD_COMMAND}`; export r; \ | |
11444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
11445 | $(HOST_EXPORTS) \ |
11446 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
11447 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
11448 | done; \ | |
11449 | echo "Doing html in gas" ; \ | |
b00612cc | 11450 | (cd $(HOST_SUBDIR)/gas && \ |
6d389afc MS |
11451 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11452 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11453 | "RANLIB=$${RANLIB}" \ | |
11454 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
11455 | html) \ | |
11456 | || exit 1 | |
11457 | ||
11458 | @endif gas | |
11459 | ||
4fa63067 NN |
11460 | .PHONY: maybe-TAGS-gas TAGS-gas |
11461 | maybe-TAGS-gas: | |
6bd3dfaa PB |
11462 | @if gas |
11463 | maybe-TAGS-gas: TAGS-gas | |
2a4cbe27 | 11464 | |
4fa63067 NN |
11465 | TAGS-gas: \ |
11466 | configure-gas | |
11467 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11468 | r=`${PWD_COMMAND}`; export r; \ |
11469 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11470 | $(HOST_EXPORTS) \ |
b813574b | 11471 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11472 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11473 | done; \ | |
4fa63067 | 11474 | echo "Doing TAGS in gas" ; \ |
b00612cc | 11475 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11476 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11477 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11478 | "RANLIB=$${RANLIB}" \ | |
11479 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11480 | TAGS) \ |
2a4cbe27 NN |
11481 | || exit 1 |
11482 | ||
6bd3dfaa | 11483 | @endif gas |
2a4cbe27 | 11484 | |
4fa63067 NN |
11485 | .PHONY: maybe-install-info-gas install-info-gas |
11486 | maybe-install-info-gas: | |
6bd3dfaa PB |
11487 | @if gas |
11488 | maybe-install-info-gas: install-info-gas | |
2a4cbe27 | 11489 | |
4fa63067 NN |
11490 | install-info-gas: \ |
11491 | configure-gas \ | |
11492 | info-gas | |
11493 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11494 | r=`${PWD_COMMAND}`; export r; \ |
11495 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11496 | $(HOST_EXPORTS) \ |
b813574b | 11497 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11498 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11499 | done; \ | |
4fa63067 | 11500 | echo "Doing install-info in gas" ; \ |
b00612cc | 11501 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11502 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11503 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11504 | "RANLIB=$${RANLIB}" \ | |
11505 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11506 | install-info) \ |
2a4cbe27 NN |
11507 | || exit 1 |
11508 | ||
6bd3dfaa | 11509 | @endif gas |
2a4cbe27 | 11510 | |
108a6f8e CD |
11511 | .PHONY: maybe-install-html-gas install-html-gas |
11512 | maybe-install-html-gas: | |
11513 | @if gas | |
11514 | maybe-install-html-gas: install-html-gas | |
11515 | ||
11516 | install-html-gas: \ | |
11517 | configure-gas \ | |
11518 | html-gas | |
11519 | @[ -f ./gas/Makefile ] || exit 0; \ | |
11520 | r=`${PWD_COMMAND}`; export r; \ | |
11521 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11522 | $(HOST_EXPORTS) \ | |
11523 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
11524 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
11525 | done; \ | |
11526 | echo "Doing install-html in gas" ; \ | |
11527 | (cd $(HOST_SUBDIR)/gas && \ | |
11528 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
11529 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11530 | "RANLIB=$${RANLIB}" \ | |
11531 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
11532 | install-html) \ | |
11533 | || exit 1 | |
11534 | ||
11535 | @endif gas | |
11536 | ||
4fa63067 NN |
11537 | .PHONY: maybe-installcheck-gas installcheck-gas |
11538 | maybe-installcheck-gas: | |
6bd3dfaa PB |
11539 | @if gas |
11540 | maybe-installcheck-gas: installcheck-gas | |
2a4cbe27 | 11541 | |
4fa63067 NN |
11542 | installcheck-gas: \ |
11543 | configure-gas | |
11544 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11545 | r=`${PWD_COMMAND}`; export r; \ |
11546 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11547 | $(HOST_EXPORTS) \ |
b813574b | 11548 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11549 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11550 | done; \ | |
4fa63067 | 11551 | echo "Doing installcheck in gas" ; \ |
b00612cc | 11552 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11553 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11554 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11555 | "RANLIB=$${RANLIB}" \ | |
11556 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11557 | installcheck) \ |
2a4cbe27 NN |
11558 | || exit 1 |
11559 | ||
6bd3dfaa | 11560 | @endif gas |
2a4cbe27 | 11561 | |
4fa63067 NN |
11562 | .PHONY: maybe-mostlyclean-gas mostlyclean-gas |
11563 | maybe-mostlyclean-gas: | |
6bd3dfaa PB |
11564 | @if gas |
11565 | maybe-mostlyclean-gas: mostlyclean-gas | |
2a4cbe27 | 11566 | |
4fa63067 NN |
11567 | mostlyclean-gas: |
11568 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11569 | r=`${PWD_COMMAND}`; export r; \ |
11570 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11571 | $(HOST_EXPORTS) \ |
b813574b | 11572 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11573 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11574 | done; \ | |
4fa63067 | 11575 | echo "Doing mostlyclean in gas" ; \ |
b00612cc | 11576 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11577 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11578 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11579 | "RANLIB=$${RANLIB}" \ | |
11580 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11581 | mostlyclean) \ |
2a4cbe27 NN |
11582 | || exit 1 |
11583 | ||
6bd3dfaa | 11584 | @endif gas |
2a4cbe27 | 11585 | |
4fa63067 NN |
11586 | .PHONY: maybe-clean-gas clean-gas |
11587 | maybe-clean-gas: | |
6bd3dfaa PB |
11588 | @if gas |
11589 | maybe-clean-gas: clean-gas | |
2a4cbe27 | 11590 | |
4fa63067 NN |
11591 | clean-gas: |
11592 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11593 | r=`${PWD_COMMAND}`; export r; \ |
11594 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11595 | $(HOST_EXPORTS) \ |
b813574b | 11596 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11597 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11598 | done; \ | |
4fa63067 | 11599 | echo "Doing clean in gas" ; \ |
b00612cc | 11600 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11601 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11602 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11603 | "RANLIB=$${RANLIB}" \ | |
11604 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11605 | clean) \ |
2a4cbe27 NN |
11606 | || exit 1 |
11607 | ||
6bd3dfaa | 11608 | @endif gas |
2a4cbe27 | 11609 | |
4fa63067 NN |
11610 | .PHONY: maybe-distclean-gas distclean-gas |
11611 | maybe-distclean-gas: | |
6bd3dfaa PB |
11612 | @if gas |
11613 | maybe-distclean-gas: distclean-gas | |
2a4cbe27 | 11614 | |
4fa63067 NN |
11615 | distclean-gas: |
11616 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11617 | r=`${PWD_COMMAND}`; export r; \ |
11618 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11619 | $(HOST_EXPORTS) \ |
b813574b | 11620 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11621 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11622 | done; \ | |
4fa63067 | 11623 | echo "Doing distclean in gas" ; \ |
b00612cc | 11624 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11625 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11626 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11627 | "RANLIB=$${RANLIB}" \ | |
11628 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11629 | distclean) \ |
2a4cbe27 NN |
11630 | || exit 1 |
11631 | ||
6bd3dfaa | 11632 | @endif gas |
2a4cbe27 | 11633 | |
4fa63067 NN |
11634 | .PHONY: maybe-maintainer-clean-gas maintainer-clean-gas |
11635 | maybe-maintainer-clean-gas: | |
6bd3dfaa PB |
11636 | @if gas |
11637 | maybe-maintainer-clean-gas: maintainer-clean-gas | |
2a4cbe27 | 11638 | |
4fa63067 NN |
11639 | maintainer-clean-gas: |
11640 | @[ -f ./gas/Makefile ] || exit 0; \ | |
b40e3958 L |
11641 | r=`${PWD_COMMAND}`; export r; \ |
11642 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 11643 | $(HOST_EXPORTS) \ |
b813574b | 11644 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
11645 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
11646 | done; \ | |
4fa63067 | 11647 | echo "Doing maintainer-clean in gas" ; \ |
b00612cc | 11648 | (cd $(HOST_SUBDIR)/gas && \ |
2a4cbe27 NN |
11649 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
11650 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
11651 | "RANLIB=$${RANLIB}" \ | |
11652 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 11653 | maintainer-clean) \ |
2a4cbe27 NN |
11654 | || exit 1 |
11655 | ||
6bd3dfaa | 11656 | @endif gas |
2a4cbe27 | 11657 | |
2a4cbe27 | 11658 | |
a7254363 | 11659 | |
b813574b PB |
11660 | .PHONY: configure-gcc maybe-configure-gcc |
11661 | maybe-configure-gcc: | |
11662 | @if gcc | |
11663 | maybe-configure-gcc: configure-gcc | |
c52c6897 PB |
11664 | configure-gcc: |
11665 | @endif gcc | |
11666 | @if gcc-bootstrap | |
11667 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
11668 | @endif gcc-bootstrap | |
11669 | @if gcc | |
11670 | @r=`${PWD_COMMAND}`; export r; \ | |
11671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
11672 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
11673 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ | |
378fce5b | 11674 | $(HOST_EXPORTS) \ |
a7254363 PB |
11675 | echo Configuring in $(HOST_SUBDIR)/gcc; \ |
11676 | cd "$(HOST_SUBDIR)/gcc" || exit 1; \ | |
4fa63067 | 11677 | case $(srcdir) in \ |
b00612cc PB |
11678 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
11679 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11680 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 11681 | esac; \ |
b00612cc PB |
11682 | srcdiroption="--srcdir=$${topdir}/gcc"; \ |
11683 | libsrcdir="$$s/gcc"; \ | |
4fa63067 | 11684 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 11685 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 11686 | || exit 1 |
b813574b | 11687 | @endif gcc |
4fa63067 | 11688 | |
a7254363 PB |
11689 | |
11690 | ||
d545f33b PB |
11691 | .PHONY: configure-stage1-gcc maybe-configure-stage1-gcc |
11692 | maybe-configure-stage1-gcc: | |
11693 | @if gcc-bootstrap | |
11694 | maybe-configure-stage1-gcc: configure-stage1-gcc | |
0aed8855 | 11695 | configure-stage1-gcc: |
c52c6897 | 11696 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 11697 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc |
c52c6897 PB |
11698 | @r=`${PWD_COMMAND}`; export r; \ |
11699 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11700 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
d545f33b PB |
11701 | $(HOST_EXPORTS) \ |
11702 | echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \ | |
0aed8855 | 11703 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ |
d545f33b PB |
11704 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
11705 | case $(srcdir) in \ | |
11706 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11707 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11708 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11709 | esac; \ | |
11710 | srcdiroption="--srcdir=$${topdir}/gcc"; \ | |
11711 | libsrcdir="$$s/gcc"; \ | |
11712 | $(SHELL) $${libsrcdir}/configure \ | |
11713 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11714 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
11715 | @endif gcc-bootstrap | |
11716 | ||
11717 | .PHONY: configure-stage2-gcc maybe-configure-stage2-gcc | |
11718 | maybe-configure-stage2-gcc: | |
11719 | @if gcc-bootstrap | |
11720 | maybe-configure-stage2-gcc: configure-stage2-gcc | |
0aed8855 | 11721 | configure-stage2-gcc: |
c52c6897 | 11722 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 11723 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc |
c52c6897 PB |
11724 | @r=`${PWD_COMMAND}`; export r; \ |
11725 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11726 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
d545f33b PB |
11727 | $(HOST_EXPORTS) \ |
11728 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11729 | echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \ | |
0aed8855 | 11730 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ |
d545f33b PB |
11731 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
11732 | case $(srcdir) in \ | |
11733 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11734 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11735 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11736 | esac; \ | |
11737 | srcdiroption="--srcdir=$${topdir}/gcc"; \ | |
11738 | libsrcdir="$$s/gcc"; \ | |
11739 | $(SHELL) $${libsrcdir}/configure \ | |
11740 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11741 | @stage2_werror_flag@ | |
11742 | @endif gcc-bootstrap | |
11743 | ||
11744 | .PHONY: configure-stage3-gcc maybe-configure-stage3-gcc | |
11745 | maybe-configure-stage3-gcc: | |
11746 | @if gcc-bootstrap | |
11747 | maybe-configure-stage3-gcc: configure-stage3-gcc | |
0aed8855 | 11748 | configure-stage3-gcc: |
c52c6897 | 11749 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 11750 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc |
c52c6897 PB |
11751 | @r=`${PWD_COMMAND}`; export r; \ |
11752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11753 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
d545f33b PB |
11754 | $(HOST_EXPORTS) \ |
11755 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11756 | echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \ | |
0aed8855 | 11757 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ |
d545f33b PB |
11758 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
11759 | case $(srcdir) in \ | |
11760 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11761 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11762 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11763 | esac; \ | |
11764 | srcdiroption="--srcdir=$${topdir}/gcc"; \ | |
11765 | libsrcdir="$$s/gcc"; \ | |
11766 | $(SHELL) $${libsrcdir}/configure \ | |
11767 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11768 | @stage2_werror_flag@ | |
11769 | @endif gcc-bootstrap | |
11770 | ||
11771 | .PHONY: configure-stage4-gcc maybe-configure-stage4-gcc | |
11772 | maybe-configure-stage4-gcc: | |
11773 | @if gcc-bootstrap | |
11774 | maybe-configure-stage4-gcc: configure-stage4-gcc | |
0aed8855 | 11775 | configure-stage4-gcc: |
c52c6897 | 11776 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 11777 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc |
c52c6897 PB |
11778 | @r=`${PWD_COMMAND}`; export r; \ |
11779 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11780 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
d545f33b PB |
11781 | $(HOST_EXPORTS) \ |
11782 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11783 | echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \ | |
0aed8855 | 11784 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ |
d545f33b PB |
11785 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
11786 | case $(srcdir) in \ | |
11787 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11788 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11789 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11790 | esac; \ | |
11791 | srcdiroption="--srcdir=$${topdir}/gcc"; \ | |
11792 | libsrcdir="$$s/gcc"; \ | |
11793 | $(SHELL) $${libsrcdir}/configure \ | |
11794 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11795 | @stage2_werror_flag@ | |
11796 | @endif gcc-bootstrap | |
11797 | ||
11798 | .PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc | |
11799 | maybe-configure-stageprofile-gcc: | |
11800 | @if gcc-bootstrap | |
11801 | maybe-configure-stageprofile-gcc: configure-stageprofile-gcc | |
0aed8855 | 11802 | configure-stageprofile-gcc: |
c52c6897 | 11803 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 11804 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc |
c52c6897 PB |
11805 | @r=`${PWD_COMMAND}`; export r; \ |
11806 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11807 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
d545f33b PB |
11808 | $(HOST_EXPORTS) \ |
11809 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11810 | echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \ | |
0aed8855 | 11811 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ |
d545f33b PB |
11812 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
11813 | case $(srcdir) in \ | |
11814 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11815 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11816 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11817 | esac; \ | |
11818 | srcdiroption="--srcdir=$${topdir}/gcc"; \ | |
11819 | libsrcdir="$$s/gcc"; \ | |
11820 | $(SHELL) $${libsrcdir}/configure \ | |
11821 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11822 | @stage2_werror_flag@ | |
11823 | @endif gcc-bootstrap | |
11824 | ||
11825 | .PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc | |
11826 | maybe-configure-stagefeedback-gcc: | |
11827 | @if gcc-bootstrap | |
11828 | maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc | |
0aed8855 | 11829 | configure-stagefeedback-gcc: |
c52c6897 | 11830 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 11831 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc |
c52c6897 PB |
11832 | @r=`${PWD_COMMAND}`; export r; \ |
11833 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 11834 | test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \ |
d545f33b PB |
11835 | $(HOST_EXPORTS) \ |
11836 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11837 | echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \ | |
0aed8855 | 11838 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \ |
d545f33b PB |
11839 | cd $(HOST_SUBDIR)/gcc || exit 1; \ |
11840 | case $(srcdir) in \ | |
11841 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
11842 | *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \ | |
11843 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
11844 | esac; \ | |
11845 | srcdiroption="--srcdir=$${topdir}/gcc"; \ | |
11846 | libsrcdir="$$s/gcc"; \ | |
11847 | $(SHELL) $${libsrcdir}/configure \ | |
11848 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
11849 | @stage2_werror_flag@ | |
11850 | @endif gcc-bootstrap | |
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
b813574b PB |
11856 | .PHONY: all-gcc maybe-all-gcc |
11857 | maybe-all-gcc: | |
11858 | @if gcc | |
45d5eb0a | 11859 | TARGET-gcc=`if [ -f stage_last ]; then echo quickstrap ; else echo all; fi` |
b813574b PB |
11860 | maybe-all-gcc: all-gcc |
11861 | all-gcc: configure-gcc | |
c52c6897 PB |
11862 | @endif gcc |
11863 | @if gcc-bootstrap | |
11864 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
11865 | @endif gcc-bootstrap | |
11866 | @if gcc | |
11867 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 11868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 11869 | $(HOST_EXPORTS) \ |
b00612cc PB |
11870 | (cd $(HOST_SUBDIR)/gcc && \ |
11871 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(TARGET-gcc)) | |
b813574b | 11872 | @endif gcc |
4fa63067 | 11873 | |
a7254363 | 11874 | |
d545f33b PB |
11875 | |
11876 | .PHONY: all-stage1-gcc maybe-all-stage1-gcc | |
11877 | .PHONY: clean-stage1-gcc maybe-clean-stage1-gcc | |
11878 | maybe-all-stage1-gcc: | |
11879 | maybe-clean-stage1-gcc: | |
11880 | @if gcc-bootstrap | |
11881 | maybe-all-stage1-gcc: all-stage1-gcc | |
11882 | all-stage1: all-stage1-gcc | |
f70224b5 | 11883 | TARGET-stage1-gcc = $(TARGET-gcc) |
d545f33b | 11884 | all-stage1-gcc: configure-stage1-gcc |
c52c6897 | 11885 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
11886 | @r=`${PWD_COMMAND}`; export r; \ |
11887 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11888 | $(HOST_EXPORTS) \ | |
11889 | cd $(HOST_SUBDIR)/gcc && \ | |
c52c6897 | 11890 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) \ |
f70224b5 | 11891 | $(TARGET-stage1-gcc) |
d545f33b PB |
11892 | |
11893 | maybe-clean-stage1-gcc: clean-stage1-gcc | |
11894 | clean-stage1: clean-stage1-gcc | |
11895 | clean-stage1-gcc: | |
11896 | @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] \ | |
11897 | || exit 0 ; \ | |
c52c6897 | 11898 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
11899 | cd $(HOST_SUBDIR)/gcc && \ |
11900 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 11901 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean |
d545f33b PB |
11902 | @endif gcc-bootstrap |
11903 | ||
11904 | ||
11905 | .PHONY: all-stage2-gcc maybe-all-stage2-gcc | |
11906 | .PHONY: clean-stage2-gcc maybe-clean-stage2-gcc | |
11907 | maybe-all-stage2-gcc: | |
11908 | maybe-clean-stage2-gcc: | |
11909 | @if gcc-bootstrap | |
11910 | maybe-all-stage2-gcc: all-stage2-gcc | |
11911 | all-stage2: all-stage2-gcc | |
f70224b5 | 11912 | TARGET-stage2-gcc = $(TARGET-gcc) |
d545f33b | 11913 | all-stage2-gcc: configure-stage2-gcc |
c52c6897 | 11914 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
11915 | @r=`${PWD_COMMAND}`; export r; \ |
11916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11917 | $(HOST_EXPORTS) \ | |
11918 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11919 | cd $(HOST_SUBDIR)/gcc && \ | |
f70224b5 PB |
11920 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ |
11921 | $(TARGET-stage2-gcc) | |
d545f33b PB |
11922 | |
11923 | maybe-clean-stage2-gcc: clean-stage2-gcc | |
11924 | clean-stage2: clean-stage2-gcc | |
11925 | clean-stage2-gcc: | |
11926 | @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] \ | |
11927 | || exit 0 ; \ | |
c52c6897 | 11928 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
11929 | cd $(HOST_SUBDIR)/gcc && \ |
11930 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11931 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11932 | $(EXTRA_GCC_FLAGS) clean | |
11933 | @endif gcc-bootstrap | |
11934 | ||
11935 | ||
11936 | .PHONY: all-stage3-gcc maybe-all-stage3-gcc | |
11937 | .PHONY: clean-stage3-gcc maybe-clean-stage3-gcc | |
11938 | maybe-all-stage3-gcc: | |
11939 | maybe-clean-stage3-gcc: | |
11940 | @if gcc-bootstrap | |
11941 | maybe-all-stage3-gcc: all-stage3-gcc | |
11942 | all-stage3: all-stage3-gcc | |
f70224b5 | 11943 | TARGET-stage3-gcc = $(TARGET-gcc) |
d545f33b | 11944 | all-stage3-gcc: configure-stage3-gcc |
c52c6897 | 11945 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
11946 | @r=`${PWD_COMMAND}`; export r; \ |
11947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11948 | $(HOST_EXPORTS) \ | |
11949 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11950 | cd $(HOST_SUBDIR)/gcc && \ | |
f70224b5 PB |
11951 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ |
11952 | $(TARGET-stage3-gcc) | |
d545f33b PB |
11953 | |
11954 | maybe-clean-stage3-gcc: clean-stage3-gcc | |
11955 | clean-stage3: clean-stage3-gcc | |
11956 | clean-stage3-gcc: | |
11957 | @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] \ | |
11958 | || exit 0 ; \ | |
c52c6897 | 11959 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
11960 | cd $(HOST_SUBDIR)/gcc && \ |
11961 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11962 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11963 | $(EXTRA_GCC_FLAGS) clean | |
11964 | @endif gcc-bootstrap | |
11965 | ||
11966 | ||
11967 | .PHONY: all-stage4-gcc maybe-all-stage4-gcc | |
11968 | .PHONY: clean-stage4-gcc maybe-clean-stage4-gcc | |
11969 | maybe-all-stage4-gcc: | |
11970 | maybe-clean-stage4-gcc: | |
11971 | @if gcc-bootstrap | |
11972 | maybe-all-stage4-gcc: all-stage4-gcc | |
11973 | all-stage4: all-stage4-gcc | |
f70224b5 | 11974 | TARGET-stage4-gcc = $(TARGET-gcc) |
d545f33b | 11975 | all-stage4-gcc: configure-stage4-gcc |
c52c6897 | 11976 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
11977 | @r=`${PWD_COMMAND}`; export r; \ |
11978 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
11979 | $(HOST_EXPORTS) \ | |
11980 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
11981 | cd $(HOST_SUBDIR)/gcc && \ | |
f70224b5 PB |
11982 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \ |
11983 | $(TARGET-stage4-gcc) | |
d545f33b PB |
11984 | |
11985 | maybe-clean-stage4-gcc: clean-stage4-gcc | |
11986 | clean-stage4: clean-stage4-gcc | |
11987 | clean-stage4-gcc: | |
11988 | @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] \ | |
11989 | || exit 0 ; \ | |
c52c6897 | 11990 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
11991 | cd $(HOST_SUBDIR)/gcc && \ |
11992 | $(MAKE) $(FLAGS_TO_PASS) \ | |
11993 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
11994 | $(EXTRA_GCC_FLAGS) clean | |
11995 | @endif gcc-bootstrap | |
11996 | ||
11997 | ||
11998 | .PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc | |
11999 | .PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc | |
12000 | maybe-all-stageprofile-gcc: | |
12001 | maybe-clean-stageprofile-gcc: | |
12002 | @if gcc-bootstrap | |
12003 | maybe-all-stageprofile-gcc: all-stageprofile-gcc | |
12004 | all-stageprofile: all-stageprofile-gcc | |
f70224b5 | 12005 | TARGET-stageprofile-gcc = $(TARGET-gcc) |
d545f33b | 12006 | all-stageprofile-gcc: configure-stageprofile-gcc |
c52c6897 | 12007 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
12008 | @r=`${PWD_COMMAND}`; export r; \ |
12009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12010 | $(HOST_EXPORTS) \ | |
12011 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
12012 | cd $(HOST_SUBDIR)/gcc && \ | |
f70224b5 PB |
12013 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) \ |
12014 | $(TARGET-stageprofile-gcc) | |
d545f33b PB |
12015 | |
12016 | maybe-clean-stageprofile-gcc: clean-stageprofile-gcc | |
12017 | clean-stageprofile: clean-stageprofile-gcc | |
12018 | clean-stageprofile-gcc: | |
12019 | @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] \ | |
12020 | || exit 0 ; \ | |
c52c6897 | 12021 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
12022 | cd $(HOST_SUBDIR)/gcc && \ |
12023 | $(MAKE) $(FLAGS_TO_PASS) \ | |
12024 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
12025 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean | |
12026 | @endif gcc-bootstrap | |
12027 | ||
12028 | ||
12029 | .PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc | |
12030 | .PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc | |
12031 | maybe-all-stagefeedback-gcc: | |
12032 | maybe-clean-stagefeedback-gcc: | |
12033 | @if gcc-bootstrap | |
12034 | maybe-all-stagefeedback-gcc: all-stagefeedback-gcc | |
12035 | all-stagefeedback: all-stagefeedback-gcc | |
f70224b5 | 12036 | TARGET-stagefeedback-gcc = $(TARGET-gcc) |
d545f33b | 12037 | all-stagefeedback-gcc: configure-stagefeedback-gcc |
c52c6897 | 12038 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
12039 | @r=`${PWD_COMMAND}`; export r; \ |
12040 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12041 | $(HOST_EXPORTS) \ | |
12042 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
12043 | cd $(HOST_SUBDIR)/gcc && \ | |
f70224b5 PB |
12044 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) \ |
12045 | $(TARGET-stagefeedback-gcc) | |
d545f33b PB |
12046 | |
12047 | maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc | |
12048 | clean-stagefeedback: clean-stagefeedback-gcc | |
12049 | clean-stagefeedback-gcc: | |
12050 | @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] \ | |
12051 | || exit 0 ; \ | |
c52c6897 | 12052 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
12053 | cd $(HOST_SUBDIR)/gcc && \ |
12054 | $(MAKE) $(FLAGS_TO_PASS) \ | |
12055 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
12056 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean | |
12057 | @endif gcc-bootstrap | |
12058 | ||
12059 | ||
12060 | ||
12061 | ||
12062 | ||
b813574b PB |
12063 | .PHONY: check-gcc maybe-check-gcc |
12064 | maybe-check-gcc: | |
12065 | @if gcc | |
12066 | maybe-check-gcc: check-gcc | |
4fa63067 | 12067 | |
b813574b | 12068 | check-gcc: |
0aed8855 | 12069 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12070 | @r=`${PWD_COMMAND}`; export r; \ |
12071 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12072 | $(HOST_EXPORTS) \ |
b00612cc PB |
12073 | (cd $(HOST_SUBDIR)/gcc && \ |
12074 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check) | |
4fa63067 | 12075 | |
b813574b | 12076 | @endif gcc |
4fa63067 | 12077 | |
b813574b PB |
12078 | .PHONY: install-gcc maybe-install-gcc |
12079 | maybe-install-gcc: | |
12080 | @if gcc | |
12081 | maybe-install-gcc: install-gcc | |
4fa63067 | 12082 | |
b813574b | 12083 | install-gcc: installdirs |
0aed8855 | 12084 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12085 | @r=`${PWD_COMMAND}`; export r; \ |
12086 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12087 | $(HOST_EXPORTS) \ |
b00612cc | 12088 | (cd $(HOST_SUBDIR)/gcc && \ |
2da12f12 | 12089 | $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install) |
4fa63067 | 12090 | |
b813574b | 12091 | @endif gcc |
4fa63067 NN |
12092 | |
12093 | # Other targets (info, dvi, etc.) | |
12094 | ||
b813574b PB |
12095 | .PHONY: maybe-info-gcc info-gcc |
12096 | maybe-info-gcc: | |
12097 | @if gcc | |
12098 | maybe-info-gcc: info-gcc | |
4fa63067 | 12099 | |
b813574b PB |
12100 | info-gcc: \ |
12101 | configure-gcc | |
12102 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12103 | r=`${PWD_COMMAND}`; export r; \ |
12104 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12105 | $(HOST_EXPORTS) \ |
b813574b | 12106 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12107 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12108 | done; \ | |
b813574b | 12109 | echo "Doing info in gcc" ; \ |
b00612cc | 12110 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12111 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12112 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12113 | "RANLIB=$${RANLIB}" \ | |
12114 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12115 | info) \ |
2a4cbe27 NN |
12116 | || exit 1 |
12117 | ||
b813574b | 12118 | @endif gcc |
2a4cbe27 | 12119 | |
b813574b PB |
12120 | .PHONY: maybe-dvi-gcc dvi-gcc |
12121 | maybe-dvi-gcc: | |
12122 | @if gcc | |
12123 | maybe-dvi-gcc: dvi-gcc | |
2a4cbe27 | 12124 | |
b813574b PB |
12125 | dvi-gcc: \ |
12126 | configure-gcc | |
12127 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12128 | r=`${PWD_COMMAND}`; export r; \ |
12129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12130 | $(HOST_EXPORTS) \ |
b813574b | 12131 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12132 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12133 | done; \ | |
b813574b | 12134 | echo "Doing dvi in gcc" ; \ |
b00612cc | 12135 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12136 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12137 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12138 | "RANLIB=$${RANLIB}" \ | |
12139 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12140 | dvi) \ |
2a4cbe27 NN |
12141 | || exit 1 |
12142 | ||
b813574b | 12143 | @endif gcc |
2a4cbe27 | 12144 | |
6d389afc MS |
12145 | .PHONY: maybe-html-gcc html-gcc |
12146 | maybe-html-gcc: | |
12147 | @if gcc | |
12148 | maybe-html-gcc: html-gcc | |
12149 | ||
12150 | html-gcc: \ | |
12151 | configure-gcc | |
12152 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
12153 | r=`${PWD_COMMAND}`; export r; \ | |
12154 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
12155 | $(HOST_EXPORTS) \ |
12156 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ | |
12157 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12158 | done; \ | |
12159 | echo "Doing html in gcc" ; \ | |
b00612cc | 12160 | (cd $(HOST_SUBDIR)/gcc && \ |
6d389afc MS |
12161 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12162 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12163 | "RANLIB=$${RANLIB}" \ | |
12164 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12165 | html) \ | |
12166 | || exit 1 | |
12167 | ||
12168 | @endif gcc | |
12169 | ||
b813574b PB |
12170 | .PHONY: maybe-TAGS-gcc TAGS-gcc |
12171 | maybe-TAGS-gcc: | |
12172 | @if gcc | |
12173 | maybe-TAGS-gcc: TAGS-gcc | |
2a4cbe27 | 12174 | |
b813574b PB |
12175 | TAGS-gcc: \ |
12176 | configure-gcc | |
12177 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12178 | r=`${PWD_COMMAND}`; export r; \ |
12179 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12180 | $(HOST_EXPORTS) \ |
b813574b | 12181 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12182 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12183 | done; \ | |
b813574b | 12184 | echo "Doing TAGS in gcc" ; \ |
b00612cc | 12185 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12186 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12187 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12188 | "RANLIB=$${RANLIB}" \ | |
12189 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12190 | TAGS) \ |
2a4cbe27 NN |
12191 | || exit 1 |
12192 | ||
b813574b | 12193 | @endif gcc |
2a4cbe27 | 12194 | |
b813574b PB |
12195 | .PHONY: maybe-install-info-gcc install-info-gcc |
12196 | maybe-install-info-gcc: | |
12197 | @if gcc | |
12198 | maybe-install-info-gcc: install-info-gcc | |
a2592b1b | 12199 | |
b813574b PB |
12200 | install-info-gcc: \ |
12201 | configure-gcc \ | |
12202 | info-gcc | |
12203 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
a2592b1b DD |
12204 | r=`${PWD_COMMAND}`; export r; \ |
12205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12206 | $(HOST_EXPORTS) \ |
b813574b | 12207 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
a2592b1b DD |
12208 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12209 | done; \ | |
b813574b | 12210 | echo "Doing install-info in gcc" ; \ |
b00612cc | 12211 | (cd $(HOST_SUBDIR)/gcc && \ |
a2592b1b DD |
12212 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12213 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12214 | "RANLIB=$${RANLIB}" \ | |
12215 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12216 | install-info) \ |
a2592b1b DD |
12217 | || exit 1 |
12218 | ||
b813574b | 12219 | @endif gcc |
a2592b1b | 12220 | |
108a6f8e CD |
12221 | .PHONY: maybe-install-html-gcc install-html-gcc |
12222 | maybe-install-html-gcc: | |
12223 | @if gcc | |
12224 | maybe-install-html-gcc: install-html-gcc | |
12225 | ||
12226 | install-html-gcc: \ | |
12227 | configure-gcc \ | |
12228 | html-gcc | |
12229 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
12230 | r=`${PWD_COMMAND}`; export r; \ | |
12231 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12232 | $(HOST_EXPORTS) \ | |
12233 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ | |
12234 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12235 | done; \ | |
12236 | echo "Doing install-html in gcc" ; \ | |
12237 | (cd $(HOST_SUBDIR)/gcc && \ | |
12238 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
12239 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12240 | "RANLIB=$${RANLIB}" \ | |
12241 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12242 | install-html) \ | |
12243 | || exit 1 | |
12244 | ||
12245 | @endif gcc | |
12246 | ||
b813574b PB |
12247 | .PHONY: maybe-installcheck-gcc installcheck-gcc |
12248 | maybe-installcheck-gcc: | |
12249 | @if gcc | |
12250 | maybe-installcheck-gcc: installcheck-gcc | |
2a4cbe27 | 12251 | |
b813574b PB |
12252 | installcheck-gcc: \ |
12253 | configure-gcc | |
12254 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
4fa63067 NN |
12255 | r=`${PWD_COMMAND}`; export r; \ |
12256 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12257 | $(HOST_EXPORTS) \ |
b813574b | 12258 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
4fa63067 NN |
12259 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12260 | done; \ | |
b813574b | 12261 | echo "Doing installcheck in gcc" ; \ |
b00612cc | 12262 | (cd $(HOST_SUBDIR)/gcc && \ |
4fa63067 NN |
12263 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12264 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12265 | "RANLIB=$${RANLIB}" \ | |
12266 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12267 | installcheck) \ |
4fa63067 | 12268 | || exit 1 |
2a4cbe27 | 12269 | |
b813574b | 12270 | @endif gcc |
4fa63067 | 12271 | |
b813574b PB |
12272 | .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc |
12273 | maybe-mostlyclean-gcc: | |
12274 | @if gcc | |
12275 | maybe-mostlyclean-gcc: mostlyclean-gcc | |
4fa63067 | 12276 | |
b813574b PB |
12277 | mostlyclean-gcc: |
12278 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12279 | r=`${PWD_COMMAND}`; export r; \ |
12280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12281 | $(HOST_EXPORTS) \ |
b813574b | 12282 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12283 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12284 | done; \ | |
b813574b | 12285 | echo "Doing mostlyclean in gcc" ; \ |
b00612cc | 12286 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12287 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12288 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12289 | "RANLIB=$${RANLIB}" \ | |
12290 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12291 | mostlyclean) \ |
2a4cbe27 NN |
12292 | || exit 1 |
12293 | ||
b813574b | 12294 | @endif gcc |
2a4cbe27 | 12295 | |
b813574b PB |
12296 | .PHONY: maybe-clean-gcc clean-gcc |
12297 | maybe-clean-gcc: | |
12298 | @if gcc | |
12299 | maybe-clean-gcc: clean-gcc | |
2a4cbe27 | 12300 | |
b813574b PB |
12301 | clean-gcc: |
12302 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12303 | r=`${PWD_COMMAND}`; export r; \ |
12304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12305 | $(HOST_EXPORTS) \ |
b813574b | 12306 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12307 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12308 | done; \ | |
b813574b | 12309 | echo "Doing clean in gcc" ; \ |
b00612cc | 12310 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12313 | "RANLIB=$${RANLIB}" \ | |
12314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12315 | clean) \ |
2a4cbe27 NN |
12316 | || exit 1 |
12317 | ||
b813574b | 12318 | @endif gcc |
2a4cbe27 | 12319 | |
b813574b PB |
12320 | .PHONY: maybe-distclean-gcc distclean-gcc |
12321 | maybe-distclean-gcc: | |
12322 | @if gcc | |
12323 | maybe-distclean-gcc: distclean-gcc | |
2a4cbe27 | 12324 | |
b813574b PB |
12325 | distclean-gcc: |
12326 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12327 | r=`${PWD_COMMAND}`; export r; \ |
12328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12329 | $(HOST_EXPORTS) \ |
b813574b | 12330 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12331 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12332 | done; \ | |
b813574b | 12333 | echo "Doing distclean in gcc" ; \ |
b00612cc | 12334 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12335 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12336 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12337 | "RANLIB=$${RANLIB}" \ | |
12338 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12339 | distclean) \ |
2a4cbe27 NN |
12340 | || exit 1 |
12341 | ||
b813574b | 12342 | @endif gcc |
2a4cbe27 | 12343 | |
b813574b PB |
12344 | .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc |
12345 | maybe-maintainer-clean-gcc: | |
12346 | @if gcc | |
12347 | maybe-maintainer-clean-gcc: maintainer-clean-gcc | |
2a4cbe27 | 12348 | |
b813574b PB |
12349 | maintainer-clean-gcc: |
12350 | @[ -f ./gcc/Makefile ] || exit 0; \ | |
b40e3958 L |
12351 | r=`${PWD_COMMAND}`; export r; \ |
12352 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12353 | $(HOST_EXPORTS) \ |
b813574b | 12354 | for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \ |
2a4cbe27 NN |
12355 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12356 | done; \ | |
b813574b | 12357 | echo "Doing maintainer-clean in gcc" ; \ |
b00612cc | 12358 | (cd $(HOST_SUBDIR)/gcc && \ |
2a4cbe27 NN |
12359 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12360 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12361 | "RANLIB=$${RANLIB}" \ | |
12362 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12363 | maintainer-clean) \ |
2a4cbe27 NN |
12364 | || exit 1 |
12365 | ||
b813574b | 12366 | @endif gcc |
2a4cbe27 | 12367 | |
2a4cbe27 | 12368 | |
a7254363 | 12369 | |
b813574b PB |
12370 | .PHONY: configure-gawk maybe-configure-gawk |
12371 | maybe-configure-gawk: | |
12372 | @if gawk | |
12373 | maybe-configure-gawk: configure-gawk | |
c52c6897 | 12374 | configure-gawk: |
0aed8855 | 12375 | @: $(MAKE); $(unstage) |
c52c6897 | 12376 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 12377 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
12378 | test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \ |
12379 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \ | |
378fce5b | 12380 | $(HOST_EXPORTS) \ |
a7254363 PB |
12381 | echo Configuring in $(HOST_SUBDIR)/gawk; \ |
12382 | cd "$(HOST_SUBDIR)/gawk" || exit 1; \ | |
4fa63067 | 12383 | case $(srcdir) in \ |
b00612cc PB |
12384 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
12385 | *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \ | |
12386 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 12387 | esac; \ |
b00612cc PB |
12388 | srcdiroption="--srcdir=$${topdir}/gawk"; \ |
12389 | libsrcdir="$$s/gawk"; \ | |
4fa63067 | 12390 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 12391 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 12392 | || exit 1 |
b813574b | 12393 | @endif gawk |
4fa63067 | 12394 | |
a7254363 PB |
12395 | |
12396 | ||
d545f33b PB |
12397 | |
12398 | ||
b813574b PB |
12399 | .PHONY: all-gawk maybe-all-gawk |
12400 | maybe-all-gawk: | |
12401 | @if gawk | |
d27cc32e | 12402 | TARGET-gawk=all |
b813574b PB |
12403 | maybe-all-gawk: all-gawk |
12404 | all-gawk: configure-gawk | |
0aed8855 | 12405 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12406 | @r=`${PWD_COMMAND}`; export r; \ |
12407 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12408 | $(HOST_EXPORTS) \ |
b00612cc PB |
12409 | (cd $(HOST_SUBDIR)/gawk && \ |
12410 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gawk)) | |
b813574b | 12411 | @endif gawk |
4fa63067 | 12412 | |
a7254363 | 12413 | |
d545f33b PB |
12414 | |
12415 | ||
b813574b PB |
12416 | .PHONY: check-gawk maybe-check-gawk |
12417 | maybe-check-gawk: | |
12418 | @if gawk | |
12419 | maybe-check-gawk: check-gawk | |
4fa63067 | 12420 | |
b813574b | 12421 | check-gawk: |
0aed8855 | 12422 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12423 | @r=`${PWD_COMMAND}`; export r; \ |
12424 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12425 | $(HOST_EXPORTS) \ |
b00612cc PB |
12426 | (cd $(HOST_SUBDIR)/gawk && \ |
12427 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 12428 | |
b813574b | 12429 | @endif gawk |
4fa63067 | 12430 | |
b813574b PB |
12431 | .PHONY: install-gawk maybe-install-gawk |
12432 | maybe-install-gawk: | |
12433 | @if gawk | |
12434 | maybe-install-gawk: install-gawk | |
4fa63067 | 12435 | |
b813574b | 12436 | install-gawk: installdirs |
0aed8855 | 12437 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12438 | @r=`${PWD_COMMAND}`; export r; \ |
12439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12440 | $(HOST_EXPORTS) \ |
b00612cc | 12441 | (cd $(HOST_SUBDIR)/gawk && \ |
2da12f12 | 12442 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 12443 | |
b813574b | 12444 | @endif gawk |
4fa63067 NN |
12445 | |
12446 | # Other targets (info, dvi, etc.) | |
12447 | ||
b813574b PB |
12448 | .PHONY: maybe-info-gawk info-gawk |
12449 | maybe-info-gawk: | |
12450 | @if gawk | |
12451 | maybe-info-gawk: info-gawk | |
4fa63067 | 12452 | |
b813574b PB |
12453 | info-gawk: \ |
12454 | configure-gawk | |
0aed8855 | 12455 | @: $(MAKE); $(unstage) |
b813574b | 12456 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12457 | r=`${PWD_COMMAND}`; export r; \ |
12458 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12459 | $(HOST_EXPORTS) \ |
b813574b | 12460 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12461 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12462 | done; \ | |
b813574b | 12463 | echo "Doing info in gawk" ; \ |
b00612cc | 12464 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12465 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12466 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12467 | "RANLIB=$${RANLIB}" \ | |
12468 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12469 | info) \ |
2a4cbe27 NN |
12470 | || exit 1 |
12471 | ||
b813574b | 12472 | @endif gawk |
2a4cbe27 | 12473 | |
b813574b PB |
12474 | .PHONY: maybe-dvi-gawk dvi-gawk |
12475 | maybe-dvi-gawk: | |
12476 | @if gawk | |
12477 | maybe-dvi-gawk: dvi-gawk | |
2a4cbe27 | 12478 | |
b813574b PB |
12479 | dvi-gawk: \ |
12480 | configure-gawk | |
0aed8855 | 12481 | @: $(MAKE); $(unstage) |
b813574b | 12482 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12483 | r=`${PWD_COMMAND}`; export r; \ |
12484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12485 | $(HOST_EXPORTS) \ |
b813574b | 12486 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12487 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12488 | done; \ | |
b813574b | 12489 | echo "Doing dvi in gawk" ; \ |
b00612cc | 12490 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12491 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12492 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12493 | "RANLIB=$${RANLIB}" \ | |
12494 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12495 | dvi) \ |
2a4cbe27 NN |
12496 | || exit 1 |
12497 | ||
b813574b | 12498 | @endif gawk |
2a4cbe27 | 12499 | |
6d389afc MS |
12500 | .PHONY: maybe-html-gawk html-gawk |
12501 | maybe-html-gawk: | |
12502 | @if gawk | |
12503 | maybe-html-gawk: html-gawk | |
12504 | ||
12505 | html-gawk: \ | |
12506 | configure-gawk | |
0aed8855 | 12507 | @: $(MAKE); $(unstage) |
6d389afc MS |
12508 | @[ -f ./gawk/Makefile ] || exit 0; \ |
12509 | r=`${PWD_COMMAND}`; export r; \ | |
12510 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
12511 | $(HOST_EXPORTS) \ |
12512 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12513 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12514 | done; \ | |
12515 | echo "Doing html in gawk" ; \ | |
b00612cc | 12516 | (cd $(HOST_SUBDIR)/gawk && \ |
6d389afc MS |
12517 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12518 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12519 | "RANLIB=$${RANLIB}" \ | |
12520 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12521 | html) \ | |
12522 | || exit 1 | |
12523 | ||
12524 | @endif gawk | |
12525 | ||
b813574b PB |
12526 | .PHONY: maybe-TAGS-gawk TAGS-gawk |
12527 | maybe-TAGS-gawk: | |
12528 | @if gawk | |
12529 | maybe-TAGS-gawk: TAGS-gawk | |
2a4cbe27 | 12530 | |
b813574b PB |
12531 | TAGS-gawk: \ |
12532 | configure-gawk | |
0aed8855 | 12533 | @: $(MAKE); $(unstage) |
b813574b | 12534 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12535 | r=`${PWD_COMMAND}`; export r; \ |
12536 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12537 | $(HOST_EXPORTS) \ |
b813574b | 12538 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12539 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12540 | done; \ | |
b813574b | 12541 | echo "Doing TAGS in gawk" ; \ |
b00612cc | 12542 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12543 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12544 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12545 | "RANLIB=$${RANLIB}" \ | |
12546 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12547 | TAGS) \ |
2a4cbe27 NN |
12548 | || exit 1 |
12549 | ||
b813574b | 12550 | @endif gawk |
2a4cbe27 | 12551 | |
b813574b PB |
12552 | .PHONY: maybe-install-info-gawk install-info-gawk |
12553 | maybe-install-info-gawk: | |
12554 | @if gawk | |
12555 | maybe-install-info-gawk: install-info-gawk | |
2a4cbe27 | 12556 | |
b813574b PB |
12557 | install-info-gawk: \ |
12558 | configure-gawk \ | |
12559 | info-gawk | |
0aed8855 | 12560 | @: $(MAKE); $(unstage) |
b813574b | 12561 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12562 | r=`${PWD_COMMAND}`; export r; \ |
12563 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12564 | $(HOST_EXPORTS) \ |
b813574b | 12565 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12566 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12567 | done; \ | |
b813574b | 12568 | echo "Doing install-info in gawk" ; \ |
b00612cc | 12569 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12570 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12571 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12572 | "RANLIB=$${RANLIB}" \ | |
12573 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12574 | install-info) \ |
2a4cbe27 NN |
12575 | || exit 1 |
12576 | ||
b813574b | 12577 | @endif gawk |
2a4cbe27 | 12578 | |
108a6f8e CD |
12579 | .PHONY: maybe-install-html-gawk install-html-gawk |
12580 | maybe-install-html-gawk: | |
12581 | @if gawk | |
12582 | maybe-install-html-gawk: install-html-gawk | |
12583 | ||
12584 | install-html-gawk: \ | |
12585 | configure-gawk \ | |
12586 | html-gawk | |
12587 | @: $(MAKE); $(unstage) | |
12588 | @[ -f ./gawk/Makefile ] || exit 0; \ | |
12589 | r=`${PWD_COMMAND}`; export r; \ | |
12590 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12591 | $(HOST_EXPORTS) \ | |
12592 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12593 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12594 | done; \ | |
12595 | echo "Doing install-html in gawk" ; \ | |
12596 | (cd $(HOST_SUBDIR)/gawk && \ | |
12597 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
12598 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12599 | "RANLIB=$${RANLIB}" \ | |
12600 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12601 | install-html) \ | |
12602 | || exit 1 | |
12603 | ||
12604 | @endif gawk | |
12605 | ||
b813574b PB |
12606 | .PHONY: maybe-installcheck-gawk installcheck-gawk |
12607 | maybe-installcheck-gawk: | |
12608 | @if gawk | |
12609 | maybe-installcheck-gawk: installcheck-gawk | |
2a4cbe27 | 12610 | |
b813574b PB |
12611 | installcheck-gawk: \ |
12612 | configure-gawk | |
0aed8855 | 12613 | @: $(MAKE); $(unstage) |
b813574b | 12614 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12615 | r=`${PWD_COMMAND}`; export r; \ |
12616 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12617 | $(HOST_EXPORTS) \ |
b813574b | 12618 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12619 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12620 | done; \ | |
b813574b | 12621 | echo "Doing installcheck in gawk" ; \ |
b00612cc | 12622 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12623 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12624 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12625 | "RANLIB=$${RANLIB}" \ | |
12626 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12627 | installcheck) \ |
2a4cbe27 NN |
12628 | || exit 1 |
12629 | ||
b813574b | 12630 | @endif gawk |
2a4cbe27 | 12631 | |
b813574b PB |
12632 | .PHONY: maybe-mostlyclean-gawk mostlyclean-gawk |
12633 | maybe-mostlyclean-gawk: | |
12634 | @if gawk | |
12635 | maybe-mostlyclean-gawk: mostlyclean-gawk | |
2a4cbe27 | 12636 | |
b813574b | 12637 | mostlyclean-gawk: |
0aed8855 | 12638 | @: $(MAKE); $(unstage) |
b813574b | 12639 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12640 | r=`${PWD_COMMAND}`; export r; \ |
12641 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12642 | $(HOST_EXPORTS) \ |
b813574b | 12643 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12644 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12645 | done; \ | |
b813574b | 12646 | echo "Doing mostlyclean in gawk" ; \ |
b00612cc | 12647 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12648 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12649 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12650 | "RANLIB=$${RANLIB}" \ | |
12651 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12652 | mostlyclean) \ |
2a4cbe27 NN |
12653 | || exit 1 |
12654 | ||
b813574b | 12655 | @endif gawk |
2a4cbe27 | 12656 | |
b813574b PB |
12657 | .PHONY: maybe-clean-gawk clean-gawk |
12658 | maybe-clean-gawk: | |
12659 | @if gawk | |
12660 | maybe-clean-gawk: clean-gawk | |
2a4cbe27 | 12661 | |
b813574b | 12662 | clean-gawk: |
0aed8855 | 12663 | @: $(MAKE); $(unstage) |
b813574b | 12664 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12665 | r=`${PWD_COMMAND}`; export r; \ |
12666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12667 | $(HOST_EXPORTS) \ |
b813574b | 12668 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12669 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12670 | done; \ | |
b813574b | 12671 | echo "Doing clean in gawk" ; \ |
b00612cc | 12672 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12673 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12674 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12675 | "RANLIB=$${RANLIB}" \ | |
12676 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12677 | clean) \ |
2a4cbe27 NN |
12678 | || exit 1 |
12679 | ||
b813574b | 12680 | @endif gawk |
2a4cbe27 | 12681 | |
b813574b PB |
12682 | .PHONY: maybe-distclean-gawk distclean-gawk |
12683 | maybe-distclean-gawk: | |
12684 | @if gawk | |
12685 | maybe-distclean-gawk: distclean-gawk | |
2a4cbe27 | 12686 | |
b813574b | 12687 | distclean-gawk: |
0aed8855 | 12688 | @: $(MAKE); $(unstage) |
b813574b | 12689 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12690 | r=`${PWD_COMMAND}`; export r; \ |
12691 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12692 | $(HOST_EXPORTS) \ |
b813574b | 12693 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12694 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12695 | done; \ | |
b813574b | 12696 | echo "Doing distclean in gawk" ; \ |
b00612cc | 12697 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12698 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12699 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12700 | "RANLIB=$${RANLIB}" \ | |
12701 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12702 | distclean) \ |
2a4cbe27 NN |
12703 | || exit 1 |
12704 | ||
b813574b | 12705 | @endif gawk |
2a4cbe27 | 12706 | |
b813574b PB |
12707 | .PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk |
12708 | maybe-maintainer-clean-gawk: | |
12709 | @if gawk | |
12710 | maybe-maintainer-clean-gawk: maintainer-clean-gawk | |
2a4cbe27 | 12711 | |
b813574b | 12712 | maintainer-clean-gawk: |
0aed8855 | 12713 | @: $(MAKE); $(unstage) |
b813574b | 12714 | @[ -f ./gawk/Makefile ] || exit 0; \ |
b40e3958 L |
12715 | r=`${PWD_COMMAND}`; export r; \ |
12716 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12717 | $(HOST_EXPORTS) \ |
b813574b | 12718 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12719 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12720 | done; \ | |
b813574b | 12721 | echo "Doing maintainer-clean in gawk" ; \ |
b00612cc | 12722 | (cd $(HOST_SUBDIR)/gawk && \ |
2a4cbe27 NN |
12723 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12724 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12725 | "RANLIB=$${RANLIB}" \ | |
12726 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12727 | maintainer-clean) \ |
2a4cbe27 NN |
12728 | || exit 1 |
12729 | ||
b813574b | 12730 | @endif gawk |
2a4cbe27 | 12731 | |
2a4cbe27 | 12732 | |
a7254363 | 12733 | |
b813574b PB |
12734 | .PHONY: configure-gettext maybe-configure-gettext |
12735 | maybe-configure-gettext: | |
12736 | @if gettext | |
12737 | maybe-configure-gettext: configure-gettext | |
c52c6897 | 12738 | configure-gettext: |
0aed8855 | 12739 | @: $(MAKE); $(unstage) |
c52c6897 | 12740 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 12741 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
12742 | test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \ |
12743 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \ | |
378fce5b | 12744 | $(HOST_EXPORTS) \ |
a7254363 PB |
12745 | echo Configuring in $(HOST_SUBDIR)/gettext; \ |
12746 | cd "$(HOST_SUBDIR)/gettext" || exit 1; \ | |
4fa63067 | 12747 | case $(srcdir) in \ |
b00612cc PB |
12748 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
12749 | *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \ | |
12750 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 12751 | esac; \ |
b00612cc PB |
12752 | srcdiroption="--srcdir=$${topdir}/gettext"; \ |
12753 | libsrcdir="$$s/gettext"; \ | |
4fa63067 | 12754 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 12755 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 12756 | || exit 1 |
b813574b | 12757 | @endif gettext |
4fa63067 | 12758 | |
a7254363 PB |
12759 | |
12760 | ||
d545f33b PB |
12761 | |
12762 | ||
b813574b PB |
12763 | .PHONY: all-gettext maybe-all-gettext |
12764 | maybe-all-gettext: | |
12765 | @if gettext | |
d27cc32e | 12766 | TARGET-gettext=all |
b813574b PB |
12767 | maybe-all-gettext: all-gettext |
12768 | all-gettext: configure-gettext | |
0aed8855 | 12769 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12770 | @r=`${PWD_COMMAND}`; export r; \ |
12771 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12772 | $(HOST_EXPORTS) \ |
b00612cc PB |
12773 | (cd $(HOST_SUBDIR)/gettext && \ |
12774 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gettext)) | |
b813574b | 12775 | @endif gettext |
4fa63067 | 12776 | |
a7254363 | 12777 | |
d545f33b PB |
12778 | |
12779 | ||
b813574b PB |
12780 | .PHONY: check-gettext maybe-check-gettext |
12781 | maybe-check-gettext: | |
12782 | @if gettext | |
12783 | maybe-check-gettext: check-gettext | |
4fa63067 | 12784 | |
b813574b | 12785 | check-gettext: |
0aed8855 | 12786 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12787 | @r=`${PWD_COMMAND}`; export r; \ |
12788 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12789 | $(HOST_EXPORTS) \ |
b00612cc PB |
12790 | (cd $(HOST_SUBDIR)/gettext && \ |
12791 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 12792 | |
b813574b | 12793 | @endif gettext |
4fa63067 | 12794 | |
b813574b PB |
12795 | .PHONY: install-gettext maybe-install-gettext |
12796 | maybe-install-gettext: | |
12797 | @if gettext | |
12798 | maybe-install-gettext: install-gettext | |
4fa63067 | 12799 | |
b813574b | 12800 | install-gettext: installdirs |
0aed8855 | 12801 | @: $(MAKE); $(unstage) |
4fa63067 NN |
12802 | @r=`${PWD_COMMAND}`; export r; \ |
12803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12804 | $(HOST_EXPORTS) \ |
b00612cc | 12805 | (cd $(HOST_SUBDIR)/gettext && \ |
2da12f12 | 12806 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 12807 | |
b813574b | 12808 | @endif gettext |
4fa63067 NN |
12809 | |
12810 | # Other targets (info, dvi, etc.) | |
12811 | ||
b813574b PB |
12812 | .PHONY: maybe-info-gettext info-gettext |
12813 | maybe-info-gettext: | |
12814 | @if gettext | |
12815 | maybe-info-gettext: info-gettext | |
4fa63067 | 12816 | |
b813574b PB |
12817 | info-gettext: \ |
12818 | configure-gettext | |
0aed8855 | 12819 | @: $(MAKE); $(unstage) |
b813574b | 12820 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
12821 | r=`${PWD_COMMAND}`; export r; \ |
12822 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12823 | $(HOST_EXPORTS) \ |
b813574b | 12824 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12825 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12826 | done; \ | |
b813574b | 12827 | echo "Doing info in gettext" ; \ |
b00612cc | 12828 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
12829 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12830 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12831 | "RANLIB=$${RANLIB}" \ | |
12832 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12833 | info) \ |
2a4cbe27 NN |
12834 | || exit 1 |
12835 | ||
b813574b | 12836 | @endif gettext |
2a4cbe27 | 12837 | |
b813574b PB |
12838 | .PHONY: maybe-dvi-gettext dvi-gettext |
12839 | maybe-dvi-gettext: | |
12840 | @if gettext | |
12841 | maybe-dvi-gettext: dvi-gettext | |
2a4cbe27 | 12842 | |
b813574b PB |
12843 | dvi-gettext: \ |
12844 | configure-gettext | |
0aed8855 | 12845 | @: $(MAKE); $(unstage) |
b813574b | 12846 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
12847 | r=`${PWD_COMMAND}`; export r; \ |
12848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12849 | $(HOST_EXPORTS) \ |
b813574b | 12850 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12851 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12852 | done; \ | |
b813574b | 12853 | echo "Doing dvi in gettext" ; \ |
b00612cc | 12854 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
12855 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12856 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12857 | "RANLIB=$${RANLIB}" \ | |
12858 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12859 | dvi) \ |
2a4cbe27 NN |
12860 | || exit 1 |
12861 | ||
b813574b | 12862 | @endif gettext |
2a4cbe27 | 12863 | |
6d389afc MS |
12864 | .PHONY: maybe-html-gettext html-gettext |
12865 | maybe-html-gettext: | |
12866 | @if gettext | |
12867 | maybe-html-gettext: html-gettext | |
12868 | ||
12869 | html-gettext: \ | |
12870 | configure-gettext | |
0aed8855 | 12871 | @: $(MAKE); $(unstage) |
6d389afc MS |
12872 | @[ -f ./gettext/Makefile ] || exit 0; \ |
12873 | r=`${PWD_COMMAND}`; export r; \ | |
12874 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
12875 | $(HOST_EXPORTS) \ |
12876 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12877 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12878 | done; \ | |
12879 | echo "Doing html in gettext" ; \ | |
b00612cc | 12880 | (cd $(HOST_SUBDIR)/gettext && \ |
6d389afc MS |
12881 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12882 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12883 | "RANLIB=$${RANLIB}" \ | |
12884 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12885 | html) \ | |
12886 | || exit 1 | |
12887 | ||
12888 | @endif gettext | |
12889 | ||
b813574b PB |
12890 | .PHONY: maybe-TAGS-gettext TAGS-gettext |
12891 | maybe-TAGS-gettext: | |
12892 | @if gettext | |
12893 | maybe-TAGS-gettext: TAGS-gettext | |
2a4cbe27 | 12894 | |
b813574b PB |
12895 | TAGS-gettext: \ |
12896 | configure-gettext | |
0aed8855 | 12897 | @: $(MAKE); $(unstage) |
b813574b | 12898 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
12899 | r=`${PWD_COMMAND}`; export r; \ |
12900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12901 | $(HOST_EXPORTS) \ |
b813574b | 12902 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12903 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12904 | done; \ | |
b813574b | 12905 | echo "Doing TAGS in gettext" ; \ |
b00612cc | 12906 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
12907 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12908 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12909 | "RANLIB=$${RANLIB}" \ | |
12910 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12911 | TAGS) \ |
2a4cbe27 NN |
12912 | || exit 1 |
12913 | ||
b813574b | 12914 | @endif gettext |
2a4cbe27 | 12915 | |
b813574b PB |
12916 | .PHONY: maybe-install-info-gettext install-info-gettext |
12917 | maybe-install-info-gettext: | |
12918 | @if gettext | |
12919 | maybe-install-info-gettext: install-info-gettext | |
12920 | ||
12921 | install-info-gettext: \ | |
12922 | configure-gettext \ | |
12923 | info-gettext | |
0aed8855 | 12924 | @: $(MAKE); $(unstage) |
b813574b | 12925 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
12926 | r=`${PWD_COMMAND}`; export r; \ |
12927 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12928 | $(HOST_EXPORTS) \ |
b813574b | 12929 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12930 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12931 | done; \ | |
b813574b | 12932 | echo "Doing install-info in gettext" ; \ |
b00612cc | 12933 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
12934 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12935 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12936 | "RANLIB=$${RANLIB}" \ | |
12937 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12938 | install-info) \ |
2a4cbe27 NN |
12939 | || exit 1 |
12940 | ||
b813574b | 12941 | @endif gettext |
2a4cbe27 | 12942 | |
108a6f8e CD |
12943 | .PHONY: maybe-install-html-gettext install-html-gettext |
12944 | maybe-install-html-gettext: | |
12945 | @if gettext | |
12946 | maybe-install-html-gettext: install-html-gettext | |
12947 | ||
12948 | install-html-gettext: \ | |
12949 | configure-gettext \ | |
12950 | html-gettext | |
12951 | @: $(MAKE); $(unstage) | |
12952 | @[ -f ./gettext/Makefile ] || exit 0; \ | |
12953 | r=`${PWD_COMMAND}`; export r; \ | |
12954 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
12955 | $(HOST_EXPORTS) \ | |
12956 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
12957 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
12958 | done; \ | |
12959 | echo "Doing install-html in gettext" ; \ | |
12960 | (cd $(HOST_SUBDIR)/gettext && \ | |
12961 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
12962 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12963 | "RANLIB=$${RANLIB}" \ | |
12964 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
12965 | install-html) \ | |
12966 | || exit 1 | |
12967 | ||
12968 | @endif gettext | |
12969 | ||
b813574b PB |
12970 | .PHONY: maybe-installcheck-gettext installcheck-gettext |
12971 | maybe-installcheck-gettext: | |
12972 | @if gettext | |
12973 | maybe-installcheck-gettext: installcheck-gettext | |
2a4cbe27 | 12974 | |
b813574b PB |
12975 | installcheck-gettext: \ |
12976 | configure-gettext | |
0aed8855 | 12977 | @: $(MAKE); $(unstage) |
b813574b | 12978 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
12979 | r=`${PWD_COMMAND}`; export r; \ |
12980 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 12981 | $(HOST_EXPORTS) \ |
b813574b | 12982 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
12983 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
12984 | done; \ | |
b813574b | 12985 | echo "Doing installcheck in gettext" ; \ |
b00612cc | 12986 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
12987 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
12988 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
12989 | "RANLIB=$${RANLIB}" \ | |
12990 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 12991 | installcheck) \ |
2a4cbe27 NN |
12992 | || exit 1 |
12993 | ||
b813574b | 12994 | @endif gettext |
2a4cbe27 | 12995 | |
b813574b PB |
12996 | .PHONY: maybe-mostlyclean-gettext mostlyclean-gettext |
12997 | maybe-mostlyclean-gettext: | |
12998 | @if gettext | |
12999 | maybe-mostlyclean-gettext: mostlyclean-gettext | |
2a4cbe27 | 13000 | |
b813574b | 13001 | mostlyclean-gettext: |
0aed8855 | 13002 | @: $(MAKE); $(unstage) |
b813574b | 13003 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
13004 | r=`${PWD_COMMAND}`; export r; \ |
13005 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13006 | $(HOST_EXPORTS) \ |
b813574b | 13007 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13008 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13009 | done; \ | |
b813574b | 13010 | echo "Doing mostlyclean in gettext" ; \ |
b00612cc | 13011 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
13012 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13013 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13014 | "RANLIB=$${RANLIB}" \ | |
13015 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13016 | mostlyclean) \ |
2a4cbe27 NN |
13017 | || exit 1 |
13018 | ||
b813574b | 13019 | @endif gettext |
2a4cbe27 | 13020 | |
b813574b PB |
13021 | .PHONY: maybe-clean-gettext clean-gettext |
13022 | maybe-clean-gettext: | |
13023 | @if gettext | |
13024 | maybe-clean-gettext: clean-gettext | |
2a4cbe27 | 13025 | |
b813574b | 13026 | clean-gettext: |
0aed8855 | 13027 | @: $(MAKE); $(unstage) |
b813574b | 13028 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
13029 | r=`${PWD_COMMAND}`; export r; \ |
13030 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13031 | $(HOST_EXPORTS) \ |
b813574b | 13032 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13033 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13034 | done; \ | |
b813574b | 13035 | echo "Doing clean in gettext" ; \ |
b00612cc | 13036 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
13037 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13038 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13039 | "RANLIB=$${RANLIB}" \ | |
13040 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13041 | clean) \ |
2a4cbe27 NN |
13042 | || exit 1 |
13043 | ||
b813574b | 13044 | @endif gettext |
2a4cbe27 | 13045 | |
b813574b PB |
13046 | .PHONY: maybe-distclean-gettext distclean-gettext |
13047 | maybe-distclean-gettext: | |
13048 | @if gettext | |
13049 | maybe-distclean-gettext: distclean-gettext | |
2a4cbe27 | 13050 | |
b813574b | 13051 | distclean-gettext: |
0aed8855 | 13052 | @: $(MAKE); $(unstage) |
b813574b | 13053 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
13054 | r=`${PWD_COMMAND}`; export r; \ |
13055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13056 | $(HOST_EXPORTS) \ |
b813574b | 13057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13059 | done; \ | |
b813574b | 13060 | echo "Doing distclean in gettext" ; \ |
b00612cc | 13061 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
13062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13064 | "RANLIB=$${RANLIB}" \ | |
13065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13066 | distclean) \ |
2a4cbe27 NN |
13067 | || exit 1 |
13068 | ||
b813574b | 13069 | @endif gettext |
2a4cbe27 | 13070 | |
b813574b PB |
13071 | .PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext |
13072 | maybe-maintainer-clean-gettext: | |
13073 | @if gettext | |
13074 | maybe-maintainer-clean-gettext: maintainer-clean-gettext | |
2a4cbe27 | 13075 | |
b813574b | 13076 | maintainer-clean-gettext: |
0aed8855 | 13077 | @: $(MAKE); $(unstage) |
b813574b | 13078 | @[ -f ./gettext/Makefile ] || exit 0; \ |
b40e3958 L |
13079 | r=`${PWD_COMMAND}`; export r; \ |
13080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13081 | $(HOST_EXPORTS) \ |
b813574b | 13082 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13083 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13084 | done; \ | |
b813574b | 13085 | echo "Doing maintainer-clean in gettext" ; \ |
b00612cc | 13086 | (cd $(HOST_SUBDIR)/gettext && \ |
2a4cbe27 NN |
13087 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13088 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13089 | "RANLIB=$${RANLIB}" \ | |
13090 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13091 | maintainer-clean) \ |
4fa63067 NN |
13092 | || exit 1 |
13093 | ||
b813574b | 13094 | @endif gettext |
4fa63067 NN |
13095 | |
13096 | ||
a7254363 | 13097 | |
b813574b PB |
13098 | .PHONY: configure-gnuserv maybe-configure-gnuserv |
13099 | maybe-configure-gnuserv: | |
13100 | @if gnuserv | |
13101 | maybe-configure-gnuserv: configure-gnuserv | |
c52c6897 | 13102 | configure-gnuserv: |
0aed8855 | 13103 | @: $(MAKE); $(unstage) |
c52c6897 | 13104 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 13105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
13106 | test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \ |
13107 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \ | |
378fce5b | 13108 | $(HOST_EXPORTS) \ |
a7254363 PB |
13109 | echo Configuring in $(HOST_SUBDIR)/gnuserv; \ |
13110 | cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \ | |
4fa63067 | 13111 | case $(srcdir) in \ |
b00612cc PB |
13112 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
13113 | *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \ | |
13114 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 13115 | esac; \ |
b00612cc PB |
13116 | srcdiroption="--srcdir=$${topdir}/gnuserv"; \ |
13117 | libsrcdir="$$s/gnuserv"; \ | |
4fa63067 | 13118 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 13119 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 13120 | || exit 1 |
b813574b | 13121 | @endif gnuserv |
2a4cbe27 | 13122 | |
a7254363 PB |
13123 | |
13124 | ||
d545f33b PB |
13125 | |
13126 | ||
b813574b PB |
13127 | .PHONY: all-gnuserv maybe-all-gnuserv |
13128 | maybe-all-gnuserv: | |
13129 | @if gnuserv | |
d27cc32e | 13130 | TARGET-gnuserv=all |
b813574b PB |
13131 | maybe-all-gnuserv: all-gnuserv |
13132 | all-gnuserv: configure-gnuserv | |
0aed8855 | 13133 | @: $(MAKE); $(unstage) |
4fa63067 NN |
13134 | @r=`${PWD_COMMAND}`; export r; \ |
13135 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13136 | $(HOST_EXPORTS) \ |
b00612cc PB |
13137 | (cd $(HOST_SUBDIR)/gnuserv && \ |
13138 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnuserv)) | |
b813574b | 13139 | @endif gnuserv |
2a4cbe27 | 13140 | |
a7254363 | 13141 | |
d545f33b PB |
13142 | |
13143 | ||
b813574b PB |
13144 | .PHONY: check-gnuserv maybe-check-gnuserv |
13145 | maybe-check-gnuserv: | |
13146 | @if gnuserv | |
13147 | maybe-check-gnuserv: check-gnuserv | |
2a4cbe27 | 13148 | |
b813574b | 13149 | check-gnuserv: |
0aed8855 | 13150 | @: $(MAKE); $(unstage) |
4fa63067 | 13151 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13152 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13153 | $(HOST_EXPORTS) \ |
b00612cc PB |
13154 | (cd $(HOST_SUBDIR)/gnuserv && \ |
13155 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 13156 | |
b813574b | 13157 | @endif gnuserv |
2a4cbe27 | 13158 | |
b813574b PB |
13159 | .PHONY: install-gnuserv maybe-install-gnuserv |
13160 | maybe-install-gnuserv: | |
13161 | @if gnuserv | |
13162 | maybe-install-gnuserv: install-gnuserv | |
2a4cbe27 | 13163 | |
b813574b | 13164 | install-gnuserv: installdirs |
0aed8855 | 13165 | @: $(MAKE); $(unstage) |
4fa63067 | 13166 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13167 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13168 | $(HOST_EXPORTS) \ |
b00612cc | 13169 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2da12f12 | 13170 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 13171 | |
b813574b | 13172 | @endif gnuserv |
2a4cbe27 | 13173 | |
4fa63067 | 13174 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 13175 | |
b813574b PB |
13176 | .PHONY: maybe-info-gnuserv info-gnuserv |
13177 | maybe-info-gnuserv: | |
13178 | @if gnuserv | |
13179 | maybe-info-gnuserv: info-gnuserv | |
4fa63067 | 13180 | |
b813574b PB |
13181 | info-gnuserv: \ |
13182 | configure-gnuserv | |
0aed8855 | 13183 | @: $(MAKE); $(unstage) |
b813574b | 13184 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13185 | r=`${PWD_COMMAND}`; export r; \ |
13186 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13187 | $(HOST_EXPORTS) \ |
b813574b | 13188 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13189 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13190 | done; \ | |
b813574b | 13191 | echo "Doing info in gnuserv" ; \ |
b00612cc | 13192 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13193 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13194 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13195 | "RANLIB=$${RANLIB}" \ | |
13196 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13197 | info) \ |
2a4cbe27 NN |
13198 | || exit 1 |
13199 | ||
b813574b | 13200 | @endif gnuserv |
2a4cbe27 | 13201 | |
b813574b PB |
13202 | .PHONY: maybe-dvi-gnuserv dvi-gnuserv |
13203 | maybe-dvi-gnuserv: | |
13204 | @if gnuserv | |
13205 | maybe-dvi-gnuserv: dvi-gnuserv | |
2a4cbe27 | 13206 | |
b813574b PB |
13207 | dvi-gnuserv: \ |
13208 | configure-gnuserv | |
0aed8855 | 13209 | @: $(MAKE); $(unstage) |
b813574b | 13210 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13211 | r=`${PWD_COMMAND}`; export r; \ |
13212 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13213 | $(HOST_EXPORTS) \ |
b813574b | 13214 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13215 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13216 | done; \ | |
b813574b | 13217 | echo "Doing dvi in gnuserv" ; \ |
b00612cc | 13218 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13219 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13220 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13221 | "RANLIB=$${RANLIB}" \ | |
13222 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13223 | dvi) \ |
2a4cbe27 NN |
13224 | || exit 1 |
13225 | ||
b813574b | 13226 | @endif gnuserv |
2a4cbe27 | 13227 | |
6d389afc MS |
13228 | .PHONY: maybe-html-gnuserv html-gnuserv |
13229 | maybe-html-gnuserv: | |
13230 | @if gnuserv | |
13231 | maybe-html-gnuserv: html-gnuserv | |
13232 | ||
13233 | html-gnuserv: \ | |
13234 | configure-gnuserv | |
0aed8855 | 13235 | @: $(MAKE); $(unstage) |
6d389afc MS |
13236 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
13237 | r=`${PWD_COMMAND}`; export r; \ | |
13238 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13239 | $(HOST_EXPORTS) \ |
13240 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13241 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13242 | done; \ | |
13243 | echo "Doing html in gnuserv" ; \ | |
b00612cc | 13244 | (cd $(HOST_SUBDIR)/gnuserv && \ |
6d389afc MS |
13245 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13246 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13247 | "RANLIB=$${RANLIB}" \ | |
13248 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13249 | html) \ | |
13250 | || exit 1 | |
13251 | ||
13252 | @endif gnuserv | |
13253 | ||
b813574b PB |
13254 | .PHONY: maybe-TAGS-gnuserv TAGS-gnuserv |
13255 | maybe-TAGS-gnuserv: | |
13256 | @if gnuserv | |
13257 | maybe-TAGS-gnuserv: TAGS-gnuserv | |
2a4cbe27 | 13258 | |
b813574b PB |
13259 | TAGS-gnuserv: \ |
13260 | configure-gnuserv | |
0aed8855 | 13261 | @: $(MAKE); $(unstage) |
b813574b | 13262 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13263 | r=`${PWD_COMMAND}`; export r; \ |
13264 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13265 | $(HOST_EXPORTS) \ |
b813574b | 13266 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13267 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13268 | done; \ | |
b813574b | 13269 | echo "Doing TAGS in gnuserv" ; \ |
b00612cc | 13270 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13271 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13272 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13273 | "RANLIB=$${RANLIB}" \ | |
13274 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13275 | TAGS) \ |
2a4cbe27 NN |
13276 | || exit 1 |
13277 | ||
b813574b | 13278 | @endif gnuserv |
2a4cbe27 | 13279 | |
b813574b PB |
13280 | .PHONY: maybe-install-info-gnuserv install-info-gnuserv |
13281 | maybe-install-info-gnuserv: | |
13282 | @if gnuserv | |
13283 | maybe-install-info-gnuserv: install-info-gnuserv | |
2a4cbe27 | 13284 | |
b813574b PB |
13285 | install-info-gnuserv: \ |
13286 | configure-gnuserv \ | |
13287 | info-gnuserv | |
0aed8855 | 13288 | @: $(MAKE); $(unstage) |
b813574b | 13289 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13290 | r=`${PWD_COMMAND}`; export r; \ |
13291 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13292 | $(HOST_EXPORTS) \ |
b813574b | 13293 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13294 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13295 | done; \ | |
b813574b | 13296 | echo "Doing install-info in gnuserv" ; \ |
b00612cc | 13297 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13298 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13299 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13300 | "RANLIB=$${RANLIB}" \ | |
13301 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13302 | install-info) \ |
2a4cbe27 NN |
13303 | || exit 1 |
13304 | ||
b813574b | 13305 | @endif gnuserv |
2a4cbe27 | 13306 | |
108a6f8e CD |
13307 | .PHONY: maybe-install-html-gnuserv install-html-gnuserv |
13308 | maybe-install-html-gnuserv: | |
13309 | @if gnuserv | |
13310 | maybe-install-html-gnuserv: install-html-gnuserv | |
13311 | ||
13312 | install-html-gnuserv: \ | |
13313 | configure-gnuserv \ | |
13314 | html-gnuserv | |
13315 | @: $(MAKE); $(unstage) | |
13316 | @[ -f ./gnuserv/Makefile ] || exit 0; \ | |
13317 | r=`${PWD_COMMAND}`; export r; \ | |
13318 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13319 | $(HOST_EXPORTS) \ | |
13320 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13321 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13322 | done; \ | |
13323 | echo "Doing install-html in gnuserv" ; \ | |
13324 | (cd $(HOST_SUBDIR)/gnuserv && \ | |
13325 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
13326 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13327 | "RANLIB=$${RANLIB}" \ | |
13328 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13329 | install-html) \ | |
13330 | || exit 1 | |
13331 | ||
13332 | @endif gnuserv | |
13333 | ||
b813574b PB |
13334 | .PHONY: maybe-installcheck-gnuserv installcheck-gnuserv |
13335 | maybe-installcheck-gnuserv: | |
13336 | @if gnuserv | |
13337 | maybe-installcheck-gnuserv: installcheck-gnuserv | |
2a4cbe27 | 13338 | |
b813574b PB |
13339 | installcheck-gnuserv: \ |
13340 | configure-gnuserv | |
0aed8855 | 13341 | @: $(MAKE); $(unstage) |
b813574b | 13342 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13343 | r=`${PWD_COMMAND}`; export r; \ |
13344 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13345 | $(HOST_EXPORTS) \ |
b813574b | 13346 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13347 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13348 | done; \ | |
b813574b | 13349 | echo "Doing installcheck in gnuserv" ; \ |
b00612cc | 13350 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13351 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13352 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13353 | "RANLIB=$${RANLIB}" \ | |
13354 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13355 | installcheck) \ |
2a4cbe27 NN |
13356 | || exit 1 |
13357 | ||
b813574b | 13358 | @endif gnuserv |
2a4cbe27 | 13359 | |
b813574b PB |
13360 | .PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv |
13361 | maybe-mostlyclean-gnuserv: | |
13362 | @if gnuserv | |
13363 | maybe-mostlyclean-gnuserv: mostlyclean-gnuserv | |
2a4cbe27 | 13364 | |
b813574b | 13365 | mostlyclean-gnuserv: |
0aed8855 | 13366 | @: $(MAKE); $(unstage) |
b813574b | 13367 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13368 | r=`${PWD_COMMAND}`; export r; \ |
13369 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13370 | $(HOST_EXPORTS) \ |
b813574b | 13371 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13372 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13373 | done; \ | |
b813574b | 13374 | echo "Doing mostlyclean in gnuserv" ; \ |
b00612cc | 13375 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13376 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13377 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13378 | "RANLIB=$${RANLIB}" \ | |
13379 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13380 | mostlyclean) \ |
2a4cbe27 NN |
13381 | || exit 1 |
13382 | ||
b813574b | 13383 | @endif gnuserv |
2a4cbe27 | 13384 | |
b813574b PB |
13385 | .PHONY: maybe-clean-gnuserv clean-gnuserv |
13386 | maybe-clean-gnuserv: | |
13387 | @if gnuserv | |
13388 | maybe-clean-gnuserv: clean-gnuserv | |
2a4cbe27 | 13389 | |
b813574b | 13390 | clean-gnuserv: |
0aed8855 | 13391 | @: $(MAKE); $(unstage) |
b813574b | 13392 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13393 | r=`${PWD_COMMAND}`; export r; \ |
13394 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13395 | $(HOST_EXPORTS) \ |
b813574b | 13396 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13397 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13398 | done; \ | |
b813574b | 13399 | echo "Doing clean in gnuserv" ; \ |
b00612cc | 13400 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13401 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13402 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13403 | "RANLIB=$${RANLIB}" \ | |
13404 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13405 | clean) \ |
2a4cbe27 NN |
13406 | || exit 1 |
13407 | ||
b813574b | 13408 | @endif gnuserv |
2a4cbe27 | 13409 | |
b813574b PB |
13410 | .PHONY: maybe-distclean-gnuserv distclean-gnuserv |
13411 | maybe-distclean-gnuserv: | |
13412 | @if gnuserv | |
13413 | maybe-distclean-gnuserv: distclean-gnuserv | |
2a4cbe27 | 13414 | |
b813574b | 13415 | distclean-gnuserv: |
0aed8855 | 13416 | @: $(MAKE); $(unstage) |
b813574b | 13417 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13418 | r=`${PWD_COMMAND}`; export r; \ |
13419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13420 | $(HOST_EXPORTS) \ |
b813574b | 13421 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13422 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13423 | done; \ | |
b813574b | 13424 | echo "Doing distclean in gnuserv" ; \ |
b00612cc | 13425 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13426 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13427 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13428 | "RANLIB=$${RANLIB}" \ | |
13429 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13430 | distclean) \ |
2a4cbe27 NN |
13431 | || exit 1 |
13432 | ||
b813574b | 13433 | @endif gnuserv |
2a4cbe27 | 13434 | |
b813574b PB |
13435 | .PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv |
13436 | maybe-maintainer-clean-gnuserv: | |
13437 | @if gnuserv | |
13438 | maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv | |
2a4cbe27 | 13439 | |
b813574b | 13440 | maintainer-clean-gnuserv: |
0aed8855 | 13441 | @: $(MAKE); $(unstage) |
b813574b | 13442 | @[ -f ./gnuserv/Makefile ] || exit 0; \ |
b40e3958 L |
13443 | r=`${PWD_COMMAND}`; export r; \ |
13444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13445 | $(HOST_EXPORTS) \ |
b813574b | 13446 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13447 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13448 | done; \ | |
b813574b | 13449 | echo "Doing maintainer-clean in gnuserv" ; \ |
b00612cc | 13450 | (cd $(HOST_SUBDIR)/gnuserv && \ |
2a4cbe27 NN |
13451 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13452 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13453 | "RANLIB=$${RANLIB}" \ | |
13454 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13455 | maintainer-clean) \ |
2a4cbe27 NN |
13456 | || exit 1 |
13457 | ||
b813574b | 13458 | @endif gnuserv |
2a4cbe27 | 13459 | |
2a4cbe27 | 13460 | |
a7254363 | 13461 | |
b813574b PB |
13462 | .PHONY: configure-gprof maybe-configure-gprof |
13463 | maybe-configure-gprof: | |
13464 | @if gprof | |
13465 | maybe-configure-gprof: configure-gprof | |
c52c6897 | 13466 | configure-gprof: |
0aed8855 | 13467 | @: $(MAKE); $(unstage) |
c52c6897 | 13468 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13469 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
13470 | test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \ |
13471 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \ | |
378fce5b | 13472 | $(HOST_EXPORTS) \ |
a7254363 PB |
13473 | echo Configuring in $(HOST_SUBDIR)/gprof; \ |
13474 | cd "$(HOST_SUBDIR)/gprof" || exit 1; \ | |
4fa63067 | 13475 | case $(srcdir) in \ |
b00612cc PB |
13476 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
13477 | *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \ | |
13478 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 13479 | esac; \ |
b00612cc PB |
13480 | srcdiroption="--srcdir=$${topdir}/gprof"; \ |
13481 | libsrcdir="$$s/gprof"; \ | |
4fa63067 | 13482 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 13483 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 13484 | || exit 1 |
b813574b | 13485 | @endif gprof |
2a4cbe27 | 13486 | |
a7254363 PB |
13487 | |
13488 | ||
d545f33b PB |
13489 | |
13490 | ||
b813574b PB |
13491 | .PHONY: all-gprof maybe-all-gprof |
13492 | maybe-all-gprof: | |
13493 | @if gprof | |
d27cc32e | 13494 | TARGET-gprof=all |
b813574b PB |
13495 | maybe-all-gprof: all-gprof |
13496 | all-gprof: configure-gprof | |
0aed8855 | 13497 | @: $(MAKE); $(unstage) |
4fa63067 NN |
13498 | @r=`${PWD_COMMAND}`; export r; \ |
13499 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13500 | $(HOST_EXPORTS) \ |
b00612cc PB |
13501 | (cd $(HOST_SUBDIR)/gprof && \ |
13502 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gprof)) | |
b813574b | 13503 | @endif gprof |
2a4cbe27 | 13504 | |
a7254363 | 13505 | |
d545f33b PB |
13506 | |
13507 | ||
b813574b PB |
13508 | .PHONY: check-gprof maybe-check-gprof |
13509 | maybe-check-gprof: | |
13510 | @if gprof | |
13511 | maybe-check-gprof: check-gprof | |
2a4cbe27 | 13512 | |
b813574b | 13513 | check-gprof: |
0aed8855 | 13514 | @: $(MAKE); $(unstage) |
4fa63067 | 13515 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13516 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13517 | $(HOST_EXPORTS) \ |
b00612cc PB |
13518 | (cd $(HOST_SUBDIR)/gprof && \ |
13519 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 13520 | |
b813574b | 13521 | @endif gprof |
2a4cbe27 | 13522 | |
b813574b PB |
13523 | .PHONY: install-gprof maybe-install-gprof |
13524 | maybe-install-gprof: | |
13525 | @if gprof | |
13526 | maybe-install-gprof: install-gprof | |
4fa63067 | 13527 | |
b813574b | 13528 | install-gprof: installdirs |
0aed8855 | 13529 | @: $(MAKE); $(unstage) |
4fa63067 | 13530 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13531 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13532 | $(HOST_EXPORTS) \ |
b00612cc | 13533 | (cd $(HOST_SUBDIR)/gprof && \ |
2da12f12 | 13534 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 13535 | |
b813574b | 13536 | @endif gprof |
2a4cbe27 | 13537 | |
4fa63067 | 13538 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 13539 | |
b813574b PB |
13540 | .PHONY: maybe-info-gprof info-gprof |
13541 | maybe-info-gprof: | |
13542 | @if gprof | |
13543 | maybe-info-gprof: info-gprof | |
4fa63067 | 13544 | |
b813574b PB |
13545 | info-gprof: \ |
13546 | configure-gprof | |
0aed8855 | 13547 | @: $(MAKE); $(unstage) |
b813574b | 13548 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13549 | r=`${PWD_COMMAND}`; export r; \ |
13550 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13551 | $(HOST_EXPORTS) \ |
b813574b | 13552 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13553 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13554 | done; \ | |
b813574b | 13555 | echo "Doing info in gprof" ; \ |
b00612cc | 13556 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13557 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13558 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13559 | "RANLIB=$${RANLIB}" \ | |
13560 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13561 | info) \ |
2a4cbe27 NN |
13562 | || exit 1 |
13563 | ||
b813574b | 13564 | @endif gprof |
2a4cbe27 | 13565 | |
b813574b PB |
13566 | .PHONY: maybe-dvi-gprof dvi-gprof |
13567 | maybe-dvi-gprof: | |
13568 | @if gprof | |
13569 | maybe-dvi-gprof: dvi-gprof | |
2a4cbe27 | 13570 | |
b813574b PB |
13571 | dvi-gprof: \ |
13572 | configure-gprof | |
0aed8855 | 13573 | @: $(MAKE); $(unstage) |
b813574b | 13574 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13575 | r=`${PWD_COMMAND}`; export r; \ |
13576 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13577 | $(HOST_EXPORTS) \ |
b813574b | 13578 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13579 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13580 | done; \ | |
b813574b | 13581 | echo "Doing dvi in gprof" ; \ |
b00612cc | 13582 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13583 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13584 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13585 | "RANLIB=$${RANLIB}" \ | |
13586 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13587 | dvi) \ |
2a4cbe27 NN |
13588 | || exit 1 |
13589 | ||
b813574b | 13590 | @endif gprof |
2a4cbe27 | 13591 | |
6d389afc MS |
13592 | .PHONY: maybe-html-gprof html-gprof |
13593 | maybe-html-gprof: | |
13594 | @if gprof | |
13595 | maybe-html-gprof: html-gprof | |
13596 | ||
13597 | html-gprof: \ | |
13598 | configure-gprof | |
0aed8855 | 13599 | @: $(MAKE); $(unstage) |
6d389afc MS |
13600 | @[ -f ./gprof/Makefile ] || exit 0; \ |
13601 | r=`${PWD_COMMAND}`; export r; \ | |
13602 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13603 | $(HOST_EXPORTS) \ |
13604 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13605 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13606 | done; \ | |
13607 | echo "Doing html in gprof" ; \ | |
b00612cc | 13608 | (cd $(HOST_SUBDIR)/gprof && \ |
6d389afc MS |
13609 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13610 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13611 | "RANLIB=$${RANLIB}" \ | |
13612 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13613 | html) \ | |
13614 | || exit 1 | |
13615 | ||
13616 | @endif gprof | |
13617 | ||
b813574b PB |
13618 | .PHONY: maybe-TAGS-gprof TAGS-gprof |
13619 | maybe-TAGS-gprof: | |
13620 | @if gprof | |
13621 | maybe-TAGS-gprof: TAGS-gprof | |
2a4cbe27 | 13622 | |
b813574b PB |
13623 | TAGS-gprof: \ |
13624 | configure-gprof | |
0aed8855 | 13625 | @: $(MAKE); $(unstage) |
b813574b | 13626 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13627 | r=`${PWD_COMMAND}`; export r; \ |
13628 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13629 | $(HOST_EXPORTS) \ |
b813574b | 13630 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13631 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13632 | done; \ | |
b813574b | 13633 | echo "Doing TAGS in gprof" ; \ |
b00612cc | 13634 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13635 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13636 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13637 | "RANLIB=$${RANLIB}" \ | |
13638 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13639 | TAGS) \ |
2a4cbe27 NN |
13640 | || exit 1 |
13641 | ||
b813574b | 13642 | @endif gprof |
2a4cbe27 | 13643 | |
b813574b PB |
13644 | .PHONY: maybe-install-info-gprof install-info-gprof |
13645 | maybe-install-info-gprof: | |
13646 | @if gprof | |
13647 | maybe-install-info-gprof: install-info-gprof | |
2a4cbe27 | 13648 | |
b813574b PB |
13649 | install-info-gprof: \ |
13650 | configure-gprof \ | |
13651 | info-gprof | |
0aed8855 | 13652 | @: $(MAKE); $(unstage) |
b813574b | 13653 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13654 | r=`${PWD_COMMAND}`; export r; \ |
13655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13656 | $(HOST_EXPORTS) \ |
b813574b | 13657 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13658 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13659 | done; \ | |
b813574b | 13660 | echo "Doing install-info in gprof" ; \ |
b00612cc | 13661 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13662 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13663 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13664 | "RANLIB=$${RANLIB}" \ | |
13665 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13666 | install-info) \ |
2a4cbe27 NN |
13667 | || exit 1 |
13668 | ||
b813574b | 13669 | @endif gprof |
2a4cbe27 | 13670 | |
108a6f8e CD |
13671 | .PHONY: maybe-install-html-gprof install-html-gprof |
13672 | maybe-install-html-gprof: | |
13673 | @if gprof | |
13674 | maybe-install-html-gprof: install-html-gprof | |
13675 | ||
13676 | install-html-gprof: \ | |
13677 | configure-gprof \ | |
13678 | html-gprof | |
13679 | @: $(MAKE); $(unstage) | |
13680 | @[ -f ./gprof/Makefile ] || exit 0; \ | |
13681 | r=`${PWD_COMMAND}`; export r; \ | |
13682 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
13683 | $(HOST_EXPORTS) \ | |
13684 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13685 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13686 | done; \ | |
13687 | echo "Doing install-html in gprof" ; \ | |
13688 | (cd $(HOST_SUBDIR)/gprof && \ | |
13689 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
13690 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13691 | "RANLIB=$${RANLIB}" \ | |
13692 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13693 | install-html) \ | |
13694 | || exit 1 | |
13695 | ||
13696 | @endif gprof | |
13697 | ||
b813574b PB |
13698 | .PHONY: maybe-installcheck-gprof installcheck-gprof |
13699 | maybe-installcheck-gprof: | |
13700 | @if gprof | |
13701 | maybe-installcheck-gprof: installcheck-gprof | |
2a4cbe27 | 13702 | |
b813574b PB |
13703 | installcheck-gprof: \ |
13704 | configure-gprof | |
0aed8855 | 13705 | @: $(MAKE); $(unstage) |
b813574b | 13706 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13707 | r=`${PWD_COMMAND}`; export r; \ |
13708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13709 | $(HOST_EXPORTS) \ |
b813574b | 13710 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13711 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13712 | done; \ | |
b813574b | 13713 | echo "Doing installcheck in gprof" ; \ |
b00612cc | 13714 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13717 | "RANLIB=$${RANLIB}" \ | |
13718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13719 | installcheck) \ |
2a4cbe27 NN |
13720 | || exit 1 |
13721 | ||
b813574b | 13722 | @endif gprof |
2a4cbe27 | 13723 | |
b813574b PB |
13724 | .PHONY: maybe-mostlyclean-gprof mostlyclean-gprof |
13725 | maybe-mostlyclean-gprof: | |
13726 | @if gprof | |
13727 | maybe-mostlyclean-gprof: mostlyclean-gprof | |
2a4cbe27 | 13728 | |
b813574b | 13729 | mostlyclean-gprof: |
0aed8855 | 13730 | @: $(MAKE); $(unstage) |
b813574b | 13731 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13732 | r=`${PWD_COMMAND}`; export r; \ |
13733 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13734 | $(HOST_EXPORTS) \ |
b813574b | 13735 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13736 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13737 | done; \ | |
b813574b | 13738 | echo "Doing mostlyclean in gprof" ; \ |
b00612cc | 13739 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13740 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13741 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13742 | "RANLIB=$${RANLIB}" \ | |
13743 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13744 | mostlyclean) \ |
2a4cbe27 NN |
13745 | || exit 1 |
13746 | ||
b813574b | 13747 | @endif gprof |
2a4cbe27 | 13748 | |
b813574b PB |
13749 | .PHONY: maybe-clean-gprof clean-gprof |
13750 | maybe-clean-gprof: | |
13751 | @if gprof | |
13752 | maybe-clean-gprof: clean-gprof | |
2a4cbe27 | 13753 | |
b813574b | 13754 | clean-gprof: |
0aed8855 | 13755 | @: $(MAKE); $(unstage) |
b813574b | 13756 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13757 | r=`${PWD_COMMAND}`; export r; \ |
13758 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13759 | $(HOST_EXPORTS) \ |
b813574b | 13760 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13761 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13762 | done; \ | |
b813574b | 13763 | echo "Doing clean in gprof" ; \ |
b00612cc | 13764 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13765 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13766 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13767 | "RANLIB=$${RANLIB}" \ | |
13768 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13769 | clean) \ |
2a4cbe27 NN |
13770 | || exit 1 |
13771 | ||
b813574b | 13772 | @endif gprof |
2a4cbe27 | 13773 | |
b813574b PB |
13774 | .PHONY: maybe-distclean-gprof distclean-gprof |
13775 | maybe-distclean-gprof: | |
13776 | @if gprof | |
13777 | maybe-distclean-gprof: distclean-gprof | |
2a4cbe27 | 13778 | |
b813574b | 13779 | distclean-gprof: |
0aed8855 | 13780 | @: $(MAKE); $(unstage) |
b813574b | 13781 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13782 | r=`${PWD_COMMAND}`; export r; \ |
13783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13784 | $(HOST_EXPORTS) \ |
b813574b | 13785 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13786 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13787 | done; \ | |
b813574b | 13788 | echo "Doing distclean in gprof" ; \ |
b00612cc | 13789 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13790 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13791 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13792 | "RANLIB=$${RANLIB}" \ | |
13793 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13794 | distclean) \ |
2a4cbe27 NN |
13795 | || exit 1 |
13796 | ||
b813574b | 13797 | @endif gprof |
2a4cbe27 | 13798 | |
b813574b PB |
13799 | .PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof |
13800 | maybe-maintainer-clean-gprof: | |
13801 | @if gprof | |
13802 | maybe-maintainer-clean-gprof: maintainer-clean-gprof | |
2a4cbe27 | 13803 | |
b813574b | 13804 | maintainer-clean-gprof: |
0aed8855 | 13805 | @: $(MAKE); $(unstage) |
b813574b | 13806 | @[ -f ./gprof/Makefile ] || exit 0; \ |
b40e3958 L |
13807 | r=`${PWD_COMMAND}`; export r; \ |
13808 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13809 | $(HOST_EXPORTS) \ |
b813574b | 13810 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13811 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13812 | done; \ | |
b813574b | 13813 | echo "Doing maintainer-clean in gprof" ; \ |
b00612cc | 13814 | (cd $(HOST_SUBDIR)/gprof && \ |
2a4cbe27 NN |
13815 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13816 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13817 | "RANLIB=$${RANLIB}" \ | |
13818 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13819 | maintainer-clean) \ |
2a4cbe27 NN |
13820 | || exit 1 |
13821 | ||
b813574b | 13822 | @endif gprof |
2a4cbe27 | 13823 | |
2a4cbe27 | 13824 | |
a7254363 | 13825 | |
b813574b PB |
13826 | .PHONY: configure-gzip maybe-configure-gzip |
13827 | maybe-configure-gzip: | |
13828 | @if gzip | |
13829 | maybe-configure-gzip: configure-gzip | |
c52c6897 | 13830 | configure-gzip: |
0aed8855 | 13831 | @: $(MAKE); $(unstage) |
c52c6897 | 13832 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13833 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
13834 | test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \ |
13835 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \ | |
378fce5b | 13836 | $(HOST_EXPORTS) \ |
a7254363 PB |
13837 | echo Configuring in $(HOST_SUBDIR)/gzip; \ |
13838 | cd "$(HOST_SUBDIR)/gzip" || exit 1; \ | |
4fa63067 | 13839 | case $(srcdir) in \ |
b00612cc PB |
13840 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
13841 | *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \ | |
13842 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 13843 | esac; \ |
b00612cc PB |
13844 | srcdiroption="--srcdir=$${topdir}/gzip"; \ |
13845 | libsrcdir="$$s/gzip"; \ | |
4fa63067 | 13846 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 13847 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 13848 | || exit 1 |
b813574b | 13849 | @endif gzip |
2a4cbe27 | 13850 | |
a7254363 PB |
13851 | |
13852 | ||
d545f33b PB |
13853 | |
13854 | ||
b813574b PB |
13855 | .PHONY: all-gzip maybe-all-gzip |
13856 | maybe-all-gzip: | |
13857 | @if gzip | |
d27cc32e | 13858 | TARGET-gzip=all |
b813574b PB |
13859 | maybe-all-gzip: all-gzip |
13860 | all-gzip: configure-gzip | |
0aed8855 | 13861 | @: $(MAKE); $(unstage) |
4fa63067 NN |
13862 | @r=`${PWD_COMMAND}`; export r; \ |
13863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13864 | $(HOST_EXPORTS) \ |
b00612cc PB |
13865 | (cd $(HOST_SUBDIR)/gzip && \ |
13866 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gzip)) | |
b813574b | 13867 | @endif gzip |
2a4cbe27 | 13868 | |
a7254363 | 13869 | |
d545f33b PB |
13870 | |
13871 | ||
b813574b PB |
13872 | .PHONY: check-gzip maybe-check-gzip |
13873 | maybe-check-gzip: | |
13874 | @if gzip | |
13875 | maybe-check-gzip: check-gzip | |
2a4cbe27 | 13876 | |
b813574b | 13877 | check-gzip: |
0aed8855 | 13878 | @: $(MAKE); $(unstage) |
4fa63067 | 13879 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13881 | $(HOST_EXPORTS) \ |
b00612cc PB |
13882 | (cd $(HOST_SUBDIR)/gzip && \ |
13883 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 13884 | |
b813574b | 13885 | @endif gzip |
2a4cbe27 | 13886 | |
b813574b PB |
13887 | .PHONY: install-gzip maybe-install-gzip |
13888 | maybe-install-gzip: | |
13889 | @if gzip | |
13890 | maybe-install-gzip: install-gzip | |
2a4cbe27 | 13891 | |
b813574b | 13892 | install-gzip: installdirs |
0aed8855 | 13893 | @: $(MAKE); $(unstage) |
4fa63067 | 13894 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 13895 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 13896 | $(HOST_EXPORTS) \ |
b00612cc | 13897 | (cd $(HOST_SUBDIR)/gzip && \ |
2da12f12 | 13898 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 13899 | |
b813574b | 13900 | @endif gzip |
2a4cbe27 | 13901 | |
4fa63067 | 13902 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 13903 | |
b813574b PB |
13904 | .PHONY: maybe-info-gzip info-gzip |
13905 | maybe-info-gzip: | |
13906 | @if gzip | |
13907 | maybe-info-gzip: info-gzip | |
4fa63067 | 13908 | |
b813574b PB |
13909 | info-gzip: \ |
13910 | configure-gzip | |
0aed8855 | 13911 | @: $(MAKE); $(unstage) |
b813574b | 13912 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
13913 | r=`${PWD_COMMAND}`; export r; \ |
13914 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13915 | $(HOST_EXPORTS) \ |
b813574b | 13916 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13917 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13918 | done; \ | |
b813574b | 13919 | echo "Doing info in gzip" ; \ |
b00612cc | 13920 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
13921 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13922 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13923 | "RANLIB=$${RANLIB}" \ | |
13924 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13925 | info) \ |
2a4cbe27 NN |
13926 | || exit 1 |
13927 | ||
b813574b | 13928 | @endif gzip |
2a4cbe27 | 13929 | |
b813574b PB |
13930 | .PHONY: maybe-dvi-gzip dvi-gzip |
13931 | maybe-dvi-gzip: | |
13932 | @if gzip | |
13933 | maybe-dvi-gzip: dvi-gzip | |
2a4cbe27 | 13934 | |
b813574b PB |
13935 | dvi-gzip: \ |
13936 | configure-gzip | |
0aed8855 | 13937 | @: $(MAKE); $(unstage) |
b813574b | 13938 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
13939 | r=`${PWD_COMMAND}`; export r; \ |
13940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13941 | $(HOST_EXPORTS) \ |
b813574b | 13942 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13944 | done; \ | |
b813574b | 13945 | echo "Doing dvi in gzip" ; \ |
b00612cc | 13946 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
13947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13949 | "RANLIB=$${RANLIB}" \ | |
13950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 13951 | dvi) \ |
2a4cbe27 NN |
13952 | || exit 1 |
13953 | ||
b813574b | 13954 | @endif gzip |
2a4cbe27 | 13955 | |
6d389afc MS |
13956 | .PHONY: maybe-html-gzip html-gzip |
13957 | maybe-html-gzip: | |
13958 | @if gzip | |
13959 | maybe-html-gzip: html-gzip | |
13960 | ||
13961 | html-gzip: \ | |
13962 | configure-gzip | |
0aed8855 | 13963 | @: $(MAKE); $(unstage) |
6d389afc MS |
13964 | @[ -f ./gzip/Makefile ] || exit 0; \ |
13965 | r=`${PWD_COMMAND}`; export r; \ | |
13966 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
13967 | $(HOST_EXPORTS) \ |
13968 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
13969 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
13970 | done; \ | |
13971 | echo "Doing html in gzip" ; \ | |
b00612cc | 13972 | (cd $(HOST_SUBDIR)/gzip && \ |
6d389afc MS |
13973 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
13974 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
13975 | "RANLIB=$${RANLIB}" \ | |
13976 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
13977 | html) \ | |
13978 | || exit 1 | |
13979 | ||
13980 | @endif gzip | |
13981 | ||
b813574b PB |
13982 | .PHONY: maybe-TAGS-gzip TAGS-gzip |
13983 | maybe-TAGS-gzip: | |
13984 | @if gzip | |
13985 | maybe-TAGS-gzip: TAGS-gzip | |
2a4cbe27 | 13986 | |
b813574b PB |
13987 | TAGS-gzip: \ |
13988 | configure-gzip | |
0aed8855 | 13989 | @: $(MAKE); $(unstage) |
b813574b | 13990 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
13991 | r=`${PWD_COMMAND}`; export r; \ |
13992 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 13993 | $(HOST_EXPORTS) \ |
b813574b | 13994 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
13995 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
13996 | done; \ | |
b813574b | 13997 | echo "Doing TAGS in gzip" ; \ |
b00612cc | 13998 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
13999 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14000 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14001 | "RANLIB=$${RANLIB}" \ | |
14002 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14003 | TAGS) \ |
2a4cbe27 NN |
14004 | || exit 1 |
14005 | ||
b813574b | 14006 | @endif gzip |
2a4cbe27 | 14007 | |
b813574b PB |
14008 | .PHONY: maybe-install-info-gzip install-info-gzip |
14009 | maybe-install-info-gzip: | |
14010 | @if gzip | |
14011 | maybe-install-info-gzip: install-info-gzip | |
2a4cbe27 | 14012 | |
b813574b PB |
14013 | install-info-gzip: \ |
14014 | configure-gzip \ | |
14015 | info-gzip | |
0aed8855 | 14016 | @: $(MAKE); $(unstage) |
b813574b | 14017 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
14018 | r=`${PWD_COMMAND}`; export r; \ |
14019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14020 | $(HOST_EXPORTS) \ |
b813574b | 14021 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14022 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14023 | done; \ | |
b813574b | 14024 | echo "Doing install-info in gzip" ; \ |
b00612cc | 14025 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
14026 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14027 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14028 | "RANLIB=$${RANLIB}" \ | |
14029 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14030 | install-info) \ |
2a4cbe27 NN |
14031 | || exit 1 |
14032 | ||
b813574b | 14033 | @endif gzip |
2a4cbe27 | 14034 | |
108a6f8e CD |
14035 | .PHONY: maybe-install-html-gzip install-html-gzip |
14036 | maybe-install-html-gzip: | |
14037 | @if gzip | |
14038 | maybe-install-html-gzip: install-html-gzip | |
14039 | ||
14040 | install-html-gzip: \ | |
14041 | configure-gzip \ | |
14042 | html-gzip | |
14043 | @: $(MAKE); $(unstage) | |
14044 | @[ -f ./gzip/Makefile ] || exit 0; \ | |
14045 | r=`${PWD_COMMAND}`; export r; \ | |
14046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14047 | $(HOST_EXPORTS) \ | |
14048 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14049 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14050 | done; \ | |
14051 | echo "Doing install-html in gzip" ; \ | |
14052 | (cd $(HOST_SUBDIR)/gzip && \ | |
14053 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
14054 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14055 | "RANLIB=$${RANLIB}" \ | |
14056 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14057 | install-html) \ | |
14058 | || exit 1 | |
14059 | ||
14060 | @endif gzip | |
14061 | ||
b813574b PB |
14062 | .PHONY: maybe-installcheck-gzip installcheck-gzip |
14063 | maybe-installcheck-gzip: | |
14064 | @if gzip | |
14065 | maybe-installcheck-gzip: installcheck-gzip | |
2a4cbe27 | 14066 | |
b813574b PB |
14067 | installcheck-gzip: \ |
14068 | configure-gzip | |
0aed8855 | 14069 | @: $(MAKE); $(unstage) |
b813574b | 14070 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
14071 | r=`${PWD_COMMAND}`; export r; \ |
14072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14073 | $(HOST_EXPORTS) \ |
b813574b | 14074 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14075 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14076 | done; \ | |
b813574b | 14077 | echo "Doing installcheck in gzip" ; \ |
b00612cc | 14078 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
14079 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14080 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14081 | "RANLIB=$${RANLIB}" \ | |
14082 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14083 | installcheck) \ |
2a4cbe27 NN |
14084 | || exit 1 |
14085 | ||
b813574b | 14086 | @endif gzip |
2a4cbe27 | 14087 | |
b813574b PB |
14088 | .PHONY: maybe-mostlyclean-gzip mostlyclean-gzip |
14089 | maybe-mostlyclean-gzip: | |
14090 | @if gzip | |
14091 | maybe-mostlyclean-gzip: mostlyclean-gzip | |
2a4cbe27 | 14092 | |
b813574b | 14093 | mostlyclean-gzip: |
0aed8855 | 14094 | @: $(MAKE); $(unstage) |
b813574b | 14095 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
14096 | r=`${PWD_COMMAND}`; export r; \ |
14097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14098 | $(HOST_EXPORTS) \ |
b813574b | 14099 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14100 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14101 | done; \ | |
b813574b | 14102 | echo "Doing mostlyclean in gzip" ; \ |
b00612cc | 14103 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
14104 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14105 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14106 | "RANLIB=$${RANLIB}" \ | |
14107 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14108 | mostlyclean) \ |
2a4cbe27 NN |
14109 | || exit 1 |
14110 | ||
b813574b | 14111 | @endif gzip |
2a4cbe27 | 14112 | |
b813574b PB |
14113 | .PHONY: maybe-clean-gzip clean-gzip |
14114 | maybe-clean-gzip: | |
14115 | @if gzip | |
14116 | maybe-clean-gzip: clean-gzip | |
2a4cbe27 | 14117 | |
b813574b | 14118 | clean-gzip: |
0aed8855 | 14119 | @: $(MAKE); $(unstage) |
b813574b | 14120 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
14121 | r=`${PWD_COMMAND}`; export r; \ |
14122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14123 | $(HOST_EXPORTS) \ |
b813574b | 14124 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14125 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14126 | done; \ | |
b813574b | 14127 | echo "Doing clean in gzip" ; \ |
b00612cc | 14128 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
14129 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14130 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14131 | "RANLIB=$${RANLIB}" \ | |
14132 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14133 | clean) \ |
2a4cbe27 NN |
14134 | || exit 1 |
14135 | ||
b813574b | 14136 | @endif gzip |
2a4cbe27 | 14137 | |
b813574b PB |
14138 | .PHONY: maybe-distclean-gzip distclean-gzip |
14139 | maybe-distclean-gzip: | |
14140 | @if gzip | |
14141 | maybe-distclean-gzip: distclean-gzip | |
2a4cbe27 | 14142 | |
b813574b | 14143 | distclean-gzip: |
0aed8855 | 14144 | @: $(MAKE); $(unstage) |
b813574b | 14145 | @[ -f ./gzip/Makefile ] || exit 0; \ |
b40e3958 L |
14146 | r=`${PWD_COMMAND}`; export r; \ |
14147 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14148 | $(HOST_EXPORTS) \ |
b813574b | 14149 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14150 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14151 | done; \ | |
b813574b | 14152 | echo "Doing distclean in gzip" ; \ |
b00612cc | 14153 | (cd $(HOST_SUBDIR)/gzip && \ |
2a4cbe27 NN |
14154 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14155 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14156 | "RANLIB=$${RANLIB}" \ | |
14157 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14158 | distclean) \ |
2a4cbe27 NN |
14159 | || exit 1 |
14160 | ||
b813574b | 14161 | @endif gzip |
2a4cbe27 | 14162 | |
b813574b PB |
14163 | .PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip |
14164 | maybe-maintainer-clean-gzip: | |
14165 | @if gzip | |
14166 | maybe-maintainer-clean-gzip: maintainer-clean-gzip | |
2a4cbe27 | 14167 | |
b813574b | 14168 | maintainer-clean-gzip: |
0aed8855 | 14169 | @: $(MAKE); $(unstage) |
b813574b | 14170 | @[ -f ./gzip/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 maintainer-clean in gzip" ; \ |
b00612cc | 14178 | (cd $(HOST_SUBDIR)/gzip && \ |
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 | maintainer-clean) \ |
2a4cbe27 NN |
14184 | || exit 1 |
14185 | ||
b813574b | 14186 | @endif gzip |
2a4cbe27 | 14187 | |
2a4cbe27 | 14188 | |
a7254363 | 14189 | |
b813574b PB |
14190 | .PHONY: configure-hello maybe-configure-hello |
14191 | maybe-configure-hello: | |
14192 | @if hello | |
14193 | maybe-configure-hello: configure-hello | |
c52c6897 | 14194 | configure-hello: |
0aed8855 | 14195 | @: $(MAKE); $(unstage) |
c52c6897 | 14196 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 14197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
14198 | test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \ |
14199 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \ | |
378fce5b | 14200 | $(HOST_EXPORTS) \ |
a7254363 PB |
14201 | echo Configuring in $(HOST_SUBDIR)/hello; \ |
14202 | cd "$(HOST_SUBDIR)/hello" || exit 1; \ | |
4fa63067 | 14203 | case $(srcdir) in \ |
b00612cc PB |
14204 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
14205 | *) topdir=`echo $(HOST_SUBDIR)/hello/ | \ | |
14206 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 14207 | esac; \ |
b00612cc PB |
14208 | srcdiroption="--srcdir=$${topdir}/hello"; \ |
14209 | libsrcdir="$$s/hello"; \ | |
4fa63067 | 14210 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 14211 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 14212 | || exit 1 |
b813574b | 14213 | @endif hello |
2a4cbe27 | 14214 | |
a7254363 PB |
14215 | |
14216 | ||
d545f33b PB |
14217 | |
14218 | ||
b813574b PB |
14219 | .PHONY: all-hello maybe-all-hello |
14220 | maybe-all-hello: | |
14221 | @if hello | |
d27cc32e | 14222 | TARGET-hello=all |
b813574b PB |
14223 | maybe-all-hello: all-hello |
14224 | all-hello: configure-hello | |
0aed8855 | 14225 | @: $(MAKE); $(unstage) |
4fa63067 NN |
14226 | @r=`${PWD_COMMAND}`; export r; \ |
14227 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14228 | $(HOST_EXPORTS) \ |
b00612cc PB |
14229 | (cd $(HOST_SUBDIR)/hello && \ |
14230 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-hello)) | |
b813574b | 14231 | @endif hello |
2a4cbe27 | 14232 | |
a7254363 | 14233 | |
d545f33b PB |
14234 | |
14235 | ||
b813574b PB |
14236 | .PHONY: check-hello maybe-check-hello |
14237 | maybe-check-hello: | |
14238 | @if hello | |
14239 | maybe-check-hello: check-hello | |
2a4cbe27 | 14240 | |
b813574b | 14241 | check-hello: |
0aed8855 | 14242 | @: $(MAKE); $(unstage) |
4fa63067 | 14243 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 14244 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 14245 | $(HOST_EXPORTS) \ |
b00612cc PB |
14246 | (cd $(HOST_SUBDIR)/hello && \ |
14247 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 14248 | |
b813574b | 14249 | @endif hello |
2a4cbe27 | 14250 | |
b813574b PB |
14251 | .PHONY: install-hello maybe-install-hello |
14252 | maybe-install-hello: | |
14253 | @if hello | |
14254 | maybe-install-hello: install-hello | |
2a4cbe27 | 14255 | |
b813574b | 14256 | install-hello: installdirs |
0aed8855 | 14257 | @: $(MAKE); $(unstage) |
4fa63067 NN |
14258 | @r=`${PWD_COMMAND}`; export r; \ |
14259 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14260 | $(HOST_EXPORTS) \ |
b00612cc | 14261 | (cd $(HOST_SUBDIR)/hello && \ |
2da12f12 | 14262 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 14263 | |
b813574b | 14264 | @endif hello |
4fa63067 NN |
14265 | |
14266 | # Other targets (info, dvi, etc.) | |
14267 | ||
b813574b PB |
14268 | .PHONY: maybe-info-hello info-hello |
14269 | maybe-info-hello: | |
14270 | @if hello | |
14271 | maybe-info-hello: info-hello | |
4fa63067 | 14272 | |
b813574b PB |
14273 | info-hello: \ |
14274 | configure-hello | |
0aed8855 | 14275 | @: $(MAKE); $(unstage) |
b813574b | 14276 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14277 | r=`${PWD_COMMAND}`; export r; \ |
14278 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14279 | $(HOST_EXPORTS) \ |
b813574b | 14280 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14281 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14282 | done; \ | |
b813574b | 14283 | echo "Doing info in hello" ; \ |
b00612cc | 14284 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14285 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14286 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14287 | "RANLIB=$${RANLIB}" \ | |
14288 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14289 | info) \ |
2a4cbe27 NN |
14290 | || exit 1 |
14291 | ||
b813574b | 14292 | @endif hello |
2a4cbe27 | 14293 | |
b813574b PB |
14294 | .PHONY: maybe-dvi-hello dvi-hello |
14295 | maybe-dvi-hello: | |
14296 | @if hello | |
14297 | maybe-dvi-hello: dvi-hello | |
2a4cbe27 | 14298 | |
b813574b PB |
14299 | dvi-hello: \ |
14300 | configure-hello | |
0aed8855 | 14301 | @: $(MAKE); $(unstage) |
b813574b | 14302 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14303 | r=`${PWD_COMMAND}`; export r; \ |
14304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14305 | $(HOST_EXPORTS) \ |
b813574b | 14306 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14307 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14308 | done; \ | |
b813574b | 14309 | echo "Doing dvi in hello" ; \ |
b00612cc | 14310 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14313 | "RANLIB=$${RANLIB}" \ | |
14314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14315 | dvi) \ |
2a4cbe27 NN |
14316 | || exit 1 |
14317 | ||
b813574b | 14318 | @endif hello |
2a4cbe27 | 14319 | |
6d389afc MS |
14320 | .PHONY: maybe-html-hello html-hello |
14321 | maybe-html-hello: | |
14322 | @if hello | |
14323 | maybe-html-hello: html-hello | |
14324 | ||
14325 | html-hello: \ | |
14326 | configure-hello | |
0aed8855 | 14327 | @: $(MAKE); $(unstage) |
6d389afc MS |
14328 | @[ -f ./hello/Makefile ] || exit 0; \ |
14329 | r=`${PWD_COMMAND}`; export r; \ | |
14330 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
14331 | $(HOST_EXPORTS) \ |
14332 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14333 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14334 | done; \ | |
14335 | echo "Doing html in hello" ; \ | |
b00612cc | 14336 | (cd $(HOST_SUBDIR)/hello && \ |
6d389afc MS |
14337 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14338 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14339 | "RANLIB=$${RANLIB}" \ | |
14340 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14341 | html) \ | |
14342 | || exit 1 | |
14343 | ||
14344 | @endif hello | |
14345 | ||
b813574b PB |
14346 | .PHONY: maybe-TAGS-hello TAGS-hello |
14347 | maybe-TAGS-hello: | |
14348 | @if hello | |
14349 | maybe-TAGS-hello: TAGS-hello | |
2a4cbe27 | 14350 | |
b813574b PB |
14351 | TAGS-hello: \ |
14352 | configure-hello | |
0aed8855 | 14353 | @: $(MAKE); $(unstage) |
b813574b | 14354 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14355 | r=`${PWD_COMMAND}`; export r; \ |
14356 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14357 | $(HOST_EXPORTS) \ |
b813574b | 14358 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14359 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14360 | done; \ | |
b813574b | 14361 | echo "Doing TAGS in hello" ; \ |
b00612cc | 14362 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14363 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14364 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14365 | "RANLIB=$${RANLIB}" \ | |
14366 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14367 | TAGS) \ |
2a4cbe27 NN |
14368 | || exit 1 |
14369 | ||
b813574b | 14370 | @endif hello |
2a4cbe27 | 14371 | |
b813574b PB |
14372 | .PHONY: maybe-install-info-hello install-info-hello |
14373 | maybe-install-info-hello: | |
14374 | @if hello | |
14375 | maybe-install-info-hello: install-info-hello | |
2a4cbe27 | 14376 | |
b813574b PB |
14377 | install-info-hello: \ |
14378 | configure-hello \ | |
14379 | info-hello | |
0aed8855 | 14380 | @: $(MAKE); $(unstage) |
b813574b | 14381 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14382 | r=`${PWD_COMMAND}`; export r; \ |
14383 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14384 | $(HOST_EXPORTS) \ |
b813574b | 14385 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14386 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14387 | done; \ | |
b813574b | 14388 | echo "Doing install-info in hello" ; \ |
b00612cc | 14389 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14390 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14391 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14392 | "RANLIB=$${RANLIB}" \ | |
14393 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14394 | install-info) \ |
2a4cbe27 NN |
14395 | || exit 1 |
14396 | ||
b813574b | 14397 | @endif hello |
2a4cbe27 | 14398 | |
108a6f8e CD |
14399 | .PHONY: maybe-install-html-hello install-html-hello |
14400 | maybe-install-html-hello: | |
14401 | @if hello | |
14402 | maybe-install-html-hello: install-html-hello | |
14403 | ||
14404 | install-html-hello: \ | |
14405 | configure-hello \ | |
14406 | html-hello | |
14407 | @: $(MAKE); $(unstage) | |
14408 | @[ -f ./hello/Makefile ] || exit 0; \ | |
14409 | r=`${PWD_COMMAND}`; export r; \ | |
14410 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14411 | $(HOST_EXPORTS) \ | |
14412 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14413 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14414 | done; \ | |
14415 | echo "Doing install-html in hello" ; \ | |
14416 | (cd $(HOST_SUBDIR)/hello && \ | |
14417 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
14418 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14419 | "RANLIB=$${RANLIB}" \ | |
14420 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14421 | install-html) \ | |
14422 | || exit 1 | |
14423 | ||
14424 | @endif hello | |
14425 | ||
b813574b PB |
14426 | .PHONY: maybe-installcheck-hello installcheck-hello |
14427 | maybe-installcheck-hello: | |
14428 | @if hello | |
14429 | maybe-installcheck-hello: installcheck-hello | |
2a4cbe27 | 14430 | |
b813574b PB |
14431 | installcheck-hello: \ |
14432 | configure-hello | |
0aed8855 | 14433 | @: $(MAKE); $(unstage) |
b813574b | 14434 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14435 | r=`${PWD_COMMAND}`; export r; \ |
14436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14437 | $(HOST_EXPORTS) \ |
b813574b | 14438 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14439 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14440 | done; \ | |
b813574b | 14441 | echo "Doing installcheck in hello" ; \ |
b00612cc | 14442 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14445 | "RANLIB=$${RANLIB}" \ | |
14446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14447 | installcheck) \ |
2a4cbe27 NN |
14448 | || exit 1 |
14449 | ||
b813574b | 14450 | @endif hello |
2a4cbe27 | 14451 | |
b813574b PB |
14452 | .PHONY: maybe-mostlyclean-hello mostlyclean-hello |
14453 | maybe-mostlyclean-hello: | |
14454 | @if hello | |
14455 | maybe-mostlyclean-hello: mostlyclean-hello | |
2a4cbe27 | 14456 | |
b813574b | 14457 | mostlyclean-hello: |
0aed8855 | 14458 | @: $(MAKE); $(unstage) |
b813574b | 14459 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14460 | r=`${PWD_COMMAND}`; export r; \ |
14461 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14462 | $(HOST_EXPORTS) \ |
b813574b | 14463 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14464 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14465 | done; \ | |
b813574b | 14466 | echo "Doing mostlyclean in hello" ; \ |
b00612cc | 14467 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14468 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14469 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14470 | "RANLIB=$${RANLIB}" \ | |
14471 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14472 | mostlyclean) \ |
2a4cbe27 NN |
14473 | || exit 1 |
14474 | ||
b813574b | 14475 | @endif hello |
2a4cbe27 | 14476 | |
b813574b PB |
14477 | .PHONY: maybe-clean-hello clean-hello |
14478 | maybe-clean-hello: | |
14479 | @if hello | |
14480 | maybe-clean-hello: clean-hello | |
2a4cbe27 | 14481 | |
b813574b | 14482 | clean-hello: |
0aed8855 | 14483 | @: $(MAKE); $(unstage) |
b813574b | 14484 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14485 | r=`${PWD_COMMAND}`; export r; \ |
14486 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14487 | $(HOST_EXPORTS) \ |
b813574b | 14488 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14489 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14490 | done; \ | |
b813574b | 14491 | echo "Doing clean in hello" ; \ |
b00612cc | 14492 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14493 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14494 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14495 | "RANLIB=$${RANLIB}" \ | |
14496 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14497 | clean) \ |
2a4cbe27 NN |
14498 | || exit 1 |
14499 | ||
b813574b | 14500 | @endif hello |
2a4cbe27 | 14501 | |
b813574b PB |
14502 | .PHONY: maybe-distclean-hello distclean-hello |
14503 | maybe-distclean-hello: | |
14504 | @if hello | |
14505 | maybe-distclean-hello: distclean-hello | |
2a4cbe27 | 14506 | |
b813574b | 14507 | distclean-hello: |
0aed8855 | 14508 | @: $(MAKE); $(unstage) |
b813574b | 14509 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14510 | r=`${PWD_COMMAND}`; export r; \ |
14511 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14512 | $(HOST_EXPORTS) \ |
b813574b | 14513 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14514 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14515 | done; \ | |
b813574b | 14516 | echo "Doing distclean in hello" ; \ |
b00612cc | 14517 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14518 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14519 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14520 | "RANLIB=$${RANLIB}" \ | |
14521 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14522 | distclean) \ |
2a4cbe27 NN |
14523 | || exit 1 |
14524 | ||
b813574b | 14525 | @endif hello |
2a4cbe27 | 14526 | |
b813574b PB |
14527 | .PHONY: maybe-maintainer-clean-hello maintainer-clean-hello |
14528 | maybe-maintainer-clean-hello: | |
14529 | @if hello | |
14530 | maybe-maintainer-clean-hello: maintainer-clean-hello | |
2a4cbe27 | 14531 | |
b813574b | 14532 | maintainer-clean-hello: |
0aed8855 | 14533 | @: $(MAKE); $(unstage) |
b813574b | 14534 | @[ -f ./hello/Makefile ] || exit 0; \ |
b40e3958 L |
14535 | r=`${PWD_COMMAND}`; export r; \ |
14536 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14537 | $(HOST_EXPORTS) \ |
b813574b | 14538 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14539 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14540 | done; \ | |
b813574b | 14541 | echo "Doing maintainer-clean in hello" ; \ |
b00612cc | 14542 | (cd $(HOST_SUBDIR)/hello && \ |
2a4cbe27 NN |
14543 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14544 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14545 | "RANLIB=$${RANLIB}" \ | |
14546 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14547 | maintainer-clean) \ |
2a4cbe27 NN |
14548 | || exit 1 |
14549 | ||
b813574b | 14550 | @endif hello |
2a4cbe27 | 14551 | |
2a4cbe27 | 14552 | |
a7254363 | 14553 | |
b813574b PB |
14554 | .PHONY: configure-indent maybe-configure-indent |
14555 | maybe-configure-indent: | |
14556 | @if indent | |
14557 | maybe-configure-indent: configure-indent | |
c52c6897 | 14558 | configure-indent: |
0aed8855 | 14559 | @: $(MAKE); $(unstage) |
c52c6897 | 14560 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 14561 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
14562 | test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \ |
14563 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \ | |
378fce5b | 14564 | $(HOST_EXPORTS) \ |
a7254363 PB |
14565 | echo Configuring in $(HOST_SUBDIR)/indent; \ |
14566 | cd "$(HOST_SUBDIR)/indent" || exit 1; \ | |
4fa63067 | 14567 | case $(srcdir) in \ |
b00612cc PB |
14568 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
14569 | *) topdir=`echo $(HOST_SUBDIR)/indent/ | \ | |
14570 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 14571 | esac; \ |
b00612cc PB |
14572 | srcdiroption="--srcdir=$${topdir}/indent"; \ |
14573 | libsrcdir="$$s/indent"; \ | |
4fa63067 | 14574 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 14575 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 14576 | || exit 1 |
b813574b | 14577 | @endif indent |
2a4cbe27 | 14578 | |
a7254363 PB |
14579 | |
14580 | ||
d545f33b PB |
14581 | |
14582 | ||
b813574b PB |
14583 | .PHONY: all-indent maybe-all-indent |
14584 | maybe-all-indent: | |
14585 | @if indent | |
d27cc32e | 14586 | TARGET-indent=all |
b813574b PB |
14587 | maybe-all-indent: all-indent |
14588 | all-indent: configure-indent | |
0aed8855 | 14589 | @: $(MAKE); $(unstage) |
4fa63067 NN |
14590 | @r=`${PWD_COMMAND}`; export r; \ |
14591 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14592 | $(HOST_EXPORTS) \ |
b00612cc PB |
14593 | (cd $(HOST_SUBDIR)/indent && \ |
14594 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-indent)) | |
b813574b | 14595 | @endif indent |
2a4cbe27 | 14596 | |
a7254363 | 14597 | |
d545f33b PB |
14598 | |
14599 | ||
b813574b PB |
14600 | .PHONY: check-indent maybe-check-indent |
14601 | maybe-check-indent: | |
14602 | @if indent | |
14603 | maybe-check-indent: check-indent | |
2a4cbe27 | 14604 | |
b813574b | 14605 | check-indent: |
0aed8855 | 14606 | @: $(MAKE); $(unstage) |
4fa63067 | 14607 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 14608 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 14609 | $(HOST_EXPORTS) \ |
b00612cc PB |
14610 | (cd $(HOST_SUBDIR)/indent && \ |
14611 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 14612 | |
b813574b | 14613 | @endif indent |
2a4cbe27 | 14614 | |
b813574b PB |
14615 | .PHONY: install-indent maybe-install-indent |
14616 | maybe-install-indent: | |
14617 | @if indent | |
14618 | maybe-install-indent: install-indent | |
2a4cbe27 | 14619 | |
b813574b | 14620 | install-indent: installdirs |
0aed8855 | 14621 | @: $(MAKE); $(unstage) |
4fa63067 | 14622 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 14623 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 14624 | $(HOST_EXPORTS) \ |
b00612cc | 14625 | (cd $(HOST_SUBDIR)/indent && \ |
2da12f12 | 14626 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 14627 | |
b813574b | 14628 | @endif indent |
2a4cbe27 | 14629 | |
4fa63067 | 14630 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 14631 | |
b813574b PB |
14632 | .PHONY: maybe-info-indent info-indent |
14633 | maybe-info-indent: | |
14634 | @if indent | |
14635 | maybe-info-indent: info-indent | |
4fa63067 | 14636 | |
b813574b PB |
14637 | info-indent: \ |
14638 | configure-indent | |
0aed8855 | 14639 | @: $(MAKE); $(unstage) |
b813574b | 14640 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14641 | r=`${PWD_COMMAND}`; export r; \ |
14642 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14643 | $(HOST_EXPORTS) \ |
b813574b | 14644 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14645 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14646 | done; \ | |
b813574b | 14647 | echo "Doing info in indent" ; \ |
b00612cc | 14648 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14649 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14650 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14651 | "RANLIB=$${RANLIB}" \ | |
14652 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14653 | info) \ |
2a4cbe27 NN |
14654 | || exit 1 |
14655 | ||
b813574b | 14656 | @endif indent |
2a4cbe27 | 14657 | |
b813574b PB |
14658 | .PHONY: maybe-dvi-indent dvi-indent |
14659 | maybe-dvi-indent: | |
14660 | @if indent | |
14661 | maybe-dvi-indent: dvi-indent | |
2a4cbe27 | 14662 | |
b813574b PB |
14663 | dvi-indent: \ |
14664 | configure-indent | |
0aed8855 | 14665 | @: $(MAKE); $(unstage) |
b813574b | 14666 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14667 | r=`${PWD_COMMAND}`; export r; \ |
14668 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14669 | $(HOST_EXPORTS) \ |
b813574b | 14670 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14671 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14672 | done; \ | |
b813574b | 14673 | echo "Doing dvi in indent" ; \ |
b00612cc | 14674 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14675 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14676 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14677 | "RANLIB=$${RANLIB}" \ | |
14678 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14679 | dvi) \ |
2a4cbe27 NN |
14680 | || exit 1 |
14681 | ||
b813574b | 14682 | @endif indent |
2a4cbe27 | 14683 | |
6d389afc MS |
14684 | .PHONY: maybe-html-indent html-indent |
14685 | maybe-html-indent: | |
14686 | @if indent | |
14687 | maybe-html-indent: html-indent | |
14688 | ||
14689 | html-indent: \ | |
14690 | configure-indent | |
0aed8855 | 14691 | @: $(MAKE); $(unstage) |
6d389afc MS |
14692 | @[ -f ./indent/Makefile ] || exit 0; \ |
14693 | r=`${PWD_COMMAND}`; export r; \ | |
14694 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
14695 | $(HOST_EXPORTS) \ |
14696 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14697 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14698 | done; \ | |
14699 | echo "Doing html in indent" ; \ | |
b00612cc | 14700 | (cd $(HOST_SUBDIR)/indent && \ |
6d389afc MS |
14701 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14702 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14703 | "RANLIB=$${RANLIB}" \ | |
14704 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14705 | html) \ | |
14706 | || exit 1 | |
14707 | ||
14708 | @endif indent | |
14709 | ||
b813574b PB |
14710 | .PHONY: maybe-TAGS-indent TAGS-indent |
14711 | maybe-TAGS-indent: | |
14712 | @if indent | |
14713 | maybe-TAGS-indent: TAGS-indent | |
2a4cbe27 | 14714 | |
b813574b PB |
14715 | TAGS-indent: \ |
14716 | configure-indent | |
0aed8855 | 14717 | @: $(MAKE); $(unstage) |
b813574b | 14718 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14719 | r=`${PWD_COMMAND}`; export r; \ |
14720 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14721 | $(HOST_EXPORTS) \ |
b813574b | 14722 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14723 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14724 | done; \ | |
b813574b | 14725 | echo "Doing TAGS in indent" ; \ |
b00612cc | 14726 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14727 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14728 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14729 | "RANLIB=$${RANLIB}" \ | |
14730 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14731 | TAGS) \ |
2a4cbe27 NN |
14732 | || exit 1 |
14733 | ||
b813574b | 14734 | @endif indent |
2a4cbe27 | 14735 | |
b813574b PB |
14736 | .PHONY: maybe-install-info-indent install-info-indent |
14737 | maybe-install-info-indent: | |
14738 | @if indent | |
14739 | maybe-install-info-indent: install-info-indent | |
2a4cbe27 | 14740 | |
b813574b PB |
14741 | install-info-indent: \ |
14742 | configure-indent \ | |
14743 | info-indent | |
0aed8855 | 14744 | @: $(MAKE); $(unstage) |
b813574b | 14745 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14746 | r=`${PWD_COMMAND}`; export r; \ |
14747 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14748 | $(HOST_EXPORTS) \ |
b813574b | 14749 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14750 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14751 | done; \ | |
b813574b | 14752 | echo "Doing install-info in indent" ; \ |
b00612cc | 14753 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14754 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14755 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14756 | "RANLIB=$${RANLIB}" \ | |
14757 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14758 | install-info) \ |
2a4cbe27 NN |
14759 | || exit 1 |
14760 | ||
b813574b | 14761 | @endif indent |
2a4cbe27 | 14762 | |
108a6f8e CD |
14763 | .PHONY: maybe-install-html-indent install-html-indent |
14764 | maybe-install-html-indent: | |
14765 | @if indent | |
14766 | maybe-install-html-indent: install-html-indent | |
14767 | ||
14768 | install-html-indent: \ | |
14769 | configure-indent \ | |
14770 | html-indent | |
14771 | @: $(MAKE); $(unstage) | |
14772 | @[ -f ./indent/Makefile ] || exit 0; \ | |
14773 | r=`${PWD_COMMAND}`; export r; \ | |
14774 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
14775 | $(HOST_EXPORTS) \ | |
14776 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
14777 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
14778 | done; \ | |
14779 | echo "Doing install-html in indent" ; \ | |
14780 | (cd $(HOST_SUBDIR)/indent && \ | |
14781 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
14782 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14783 | "RANLIB=$${RANLIB}" \ | |
14784 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
14785 | install-html) \ | |
14786 | || exit 1 | |
14787 | ||
14788 | @endif indent | |
14789 | ||
b813574b PB |
14790 | .PHONY: maybe-installcheck-indent installcheck-indent |
14791 | maybe-installcheck-indent: | |
14792 | @if indent | |
14793 | maybe-installcheck-indent: installcheck-indent | |
2a4cbe27 | 14794 | |
b813574b PB |
14795 | installcheck-indent: \ |
14796 | configure-indent | |
0aed8855 | 14797 | @: $(MAKE); $(unstage) |
b813574b | 14798 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14799 | r=`${PWD_COMMAND}`; export r; \ |
14800 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14801 | $(HOST_EXPORTS) \ |
b813574b | 14802 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14803 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14804 | done; \ | |
b813574b | 14805 | echo "Doing installcheck in indent" ; \ |
b00612cc | 14806 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14807 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14808 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14809 | "RANLIB=$${RANLIB}" \ | |
14810 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14811 | installcheck) \ |
2a4cbe27 NN |
14812 | || exit 1 |
14813 | ||
b813574b | 14814 | @endif indent |
2a4cbe27 | 14815 | |
b813574b PB |
14816 | .PHONY: maybe-mostlyclean-indent mostlyclean-indent |
14817 | maybe-mostlyclean-indent: | |
14818 | @if indent | |
14819 | maybe-mostlyclean-indent: mostlyclean-indent | |
2a4cbe27 | 14820 | |
b813574b | 14821 | mostlyclean-indent: |
0aed8855 | 14822 | @: $(MAKE); $(unstage) |
b813574b | 14823 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14824 | r=`${PWD_COMMAND}`; export r; \ |
14825 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14826 | $(HOST_EXPORTS) \ |
b813574b | 14827 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14828 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14829 | done; \ | |
b813574b | 14830 | echo "Doing mostlyclean in indent" ; \ |
b00612cc | 14831 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14832 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14833 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14834 | "RANLIB=$${RANLIB}" \ | |
14835 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14836 | mostlyclean) \ |
2a4cbe27 NN |
14837 | || exit 1 |
14838 | ||
b813574b | 14839 | @endif indent |
2a4cbe27 | 14840 | |
b813574b PB |
14841 | .PHONY: maybe-clean-indent clean-indent |
14842 | maybe-clean-indent: | |
14843 | @if indent | |
14844 | maybe-clean-indent: clean-indent | |
2a4cbe27 | 14845 | |
b813574b | 14846 | clean-indent: |
0aed8855 | 14847 | @: $(MAKE); $(unstage) |
b813574b | 14848 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14849 | r=`${PWD_COMMAND}`; export r; \ |
14850 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14851 | $(HOST_EXPORTS) \ |
b813574b | 14852 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14853 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14854 | done; \ | |
b813574b | 14855 | echo "Doing clean in indent" ; \ |
b00612cc | 14856 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14857 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14858 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14859 | "RANLIB=$${RANLIB}" \ | |
14860 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14861 | clean) \ |
2a4cbe27 NN |
14862 | || exit 1 |
14863 | ||
b813574b | 14864 | @endif indent |
2a4cbe27 | 14865 | |
b813574b PB |
14866 | .PHONY: maybe-distclean-indent distclean-indent |
14867 | maybe-distclean-indent: | |
14868 | @if indent | |
14869 | maybe-distclean-indent: distclean-indent | |
2a4cbe27 | 14870 | |
b813574b | 14871 | distclean-indent: |
0aed8855 | 14872 | @: $(MAKE); $(unstage) |
b813574b | 14873 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14874 | r=`${PWD_COMMAND}`; export r; \ |
14875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14876 | $(HOST_EXPORTS) \ |
b813574b | 14877 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14878 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14879 | done; \ | |
b813574b | 14880 | echo "Doing distclean in indent" ; \ |
b00612cc | 14881 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14882 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14883 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14884 | "RANLIB=$${RANLIB}" \ | |
14885 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14886 | distclean) \ |
2a4cbe27 NN |
14887 | || exit 1 |
14888 | ||
b813574b | 14889 | @endif indent |
2a4cbe27 | 14890 | |
b813574b PB |
14891 | .PHONY: maybe-maintainer-clean-indent maintainer-clean-indent |
14892 | maybe-maintainer-clean-indent: | |
14893 | @if indent | |
14894 | maybe-maintainer-clean-indent: maintainer-clean-indent | |
2a4cbe27 | 14895 | |
b813574b | 14896 | maintainer-clean-indent: |
0aed8855 | 14897 | @: $(MAKE); $(unstage) |
b813574b | 14898 | @[ -f ./indent/Makefile ] || exit 0; \ |
b40e3958 L |
14899 | r=`${PWD_COMMAND}`; export r; \ |
14900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 14901 | $(HOST_EXPORTS) \ |
b813574b | 14902 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
14903 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
14904 | done; \ | |
b813574b | 14905 | echo "Doing maintainer-clean in indent" ; \ |
b00612cc | 14906 | (cd $(HOST_SUBDIR)/indent && \ |
2a4cbe27 NN |
14907 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
14908 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
14909 | "RANLIB=$${RANLIB}" \ | |
14910 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 14911 | maintainer-clean) \ |
2a4cbe27 NN |
14912 | || exit 1 |
14913 | ||
b813574b | 14914 | @endif indent |
2a4cbe27 | 14915 | |
a2592b1b | 14916 | |
a7254363 | 14917 | |
b813574b PB |
14918 | .PHONY: configure-intl maybe-configure-intl |
14919 | maybe-configure-intl: | |
14920 | @if intl | |
14921 | maybe-configure-intl: configure-intl | |
c52c6897 PB |
14922 | configure-intl: |
14923 | @endif intl | |
14924 | @if intl-bootstrap | |
14925 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
14926 | @endif intl-bootstrap | |
14927 | @if intl | |
14928 | @r=`${PWD_COMMAND}`; export r; \ | |
14929 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
14930 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
14931 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ | |
378fce5b | 14932 | $(HOST_EXPORTS) \ |
a7254363 PB |
14933 | echo Configuring in $(HOST_SUBDIR)/intl; \ |
14934 | cd "$(HOST_SUBDIR)/intl" || exit 1; \ | |
4fa63067 | 14935 | case $(srcdir) in \ |
b00612cc PB |
14936 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
14937 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
14938 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 14939 | esac; \ |
b00612cc PB |
14940 | srcdiroption="--srcdir=$${topdir}/intl"; \ |
14941 | libsrcdir="$$s/intl"; \ | |
4fa63067 | 14942 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 14943 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
a2592b1b | 14944 | || exit 1 |
b813574b | 14945 | @endif intl |
a2592b1b | 14946 | |
a7254363 PB |
14947 | |
14948 | ||
d545f33b PB |
14949 | .PHONY: configure-stage1-intl maybe-configure-stage1-intl |
14950 | maybe-configure-stage1-intl: | |
14951 | @if intl-bootstrap | |
14952 | maybe-configure-stage1-intl: configure-stage1-intl | |
0aed8855 | 14953 | configure-stage1-intl: |
c52c6897 | 14954 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 14955 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
c52c6897 PB |
14956 | @r=`${PWD_COMMAND}`; export r; \ |
14957 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 14958 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
d545f33b PB |
14959 | $(HOST_EXPORTS) \ |
14960 | echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \ | |
0aed8855 | 14961 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ |
d545f33b PB |
14962 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
14963 | case $(srcdir) in \ | |
14964 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
14965 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
14966 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
14967 | esac; \ | |
14968 | srcdiroption="--srcdir=$${topdir}/intl"; \ | |
14969 | libsrcdir="$$s/intl"; \ | |
14970 | $(SHELL) $${libsrcdir}/configure \ | |
14971 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
14972 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
14973 | @endif intl-bootstrap | |
14974 | ||
14975 | .PHONY: configure-stage2-intl maybe-configure-stage2-intl | |
14976 | maybe-configure-stage2-intl: | |
14977 | @if intl-bootstrap | |
14978 | maybe-configure-stage2-intl: configure-stage2-intl | |
0aed8855 | 14979 | configure-stage2-intl: |
c52c6897 | 14980 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 14981 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
c52c6897 PB |
14982 | @r=`${PWD_COMMAND}`; export r; \ |
14983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 14984 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
d545f33b PB |
14985 | $(HOST_EXPORTS) \ |
14986 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
14987 | echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \ | |
0aed8855 | 14988 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ |
d545f33b PB |
14989 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
14990 | case $(srcdir) in \ | |
14991 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
14992 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
14993 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
14994 | esac; \ | |
14995 | srcdiroption="--srcdir=$${topdir}/intl"; \ | |
14996 | libsrcdir="$$s/intl"; \ | |
14997 | $(SHELL) $${libsrcdir}/configure \ | |
14998 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
14999 | @stage2_werror_flag@ | |
15000 | @endif intl-bootstrap | |
15001 | ||
15002 | .PHONY: configure-stage3-intl maybe-configure-stage3-intl | |
15003 | maybe-configure-stage3-intl: | |
15004 | @if intl-bootstrap | |
15005 | maybe-configure-stage3-intl: configure-stage3-intl | |
0aed8855 | 15006 | configure-stage3-intl: |
c52c6897 | 15007 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 15008 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
c52c6897 PB |
15009 | @r=`${PWD_COMMAND}`; export r; \ |
15010 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 15011 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
d545f33b PB |
15012 | $(HOST_EXPORTS) \ |
15013 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15014 | echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \ | |
0aed8855 | 15015 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ |
d545f33b PB |
15016 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
15017 | case $(srcdir) in \ | |
15018 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15019 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
15020 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15021 | esac; \ | |
15022 | srcdiroption="--srcdir=$${topdir}/intl"; \ | |
15023 | libsrcdir="$$s/intl"; \ | |
15024 | $(SHELL) $${libsrcdir}/configure \ | |
15025 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
15026 | @stage2_werror_flag@ | |
15027 | @endif intl-bootstrap | |
15028 | ||
15029 | .PHONY: configure-stage4-intl maybe-configure-stage4-intl | |
15030 | maybe-configure-stage4-intl: | |
15031 | @if intl-bootstrap | |
15032 | maybe-configure-stage4-intl: configure-stage4-intl | |
0aed8855 | 15033 | configure-stage4-intl: |
c52c6897 | 15034 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 15035 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
c52c6897 PB |
15036 | @r=`${PWD_COMMAND}`; export r; \ |
15037 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 15038 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
d545f33b PB |
15039 | $(HOST_EXPORTS) \ |
15040 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15041 | echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \ | |
0aed8855 | 15042 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ |
d545f33b PB |
15043 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
15044 | case $(srcdir) in \ | |
15045 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15046 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
15047 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15048 | esac; \ | |
15049 | srcdiroption="--srcdir=$${topdir}/intl"; \ | |
15050 | libsrcdir="$$s/intl"; \ | |
15051 | $(SHELL) $${libsrcdir}/configure \ | |
15052 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
15053 | @stage2_werror_flag@ | |
15054 | @endif intl-bootstrap | |
15055 | ||
15056 | .PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl | |
15057 | maybe-configure-stageprofile-intl: | |
15058 | @if intl-bootstrap | |
15059 | maybe-configure-stageprofile-intl: configure-stageprofile-intl | |
0aed8855 | 15060 | configure-stageprofile-intl: |
c52c6897 | 15061 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 15062 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
c52c6897 PB |
15063 | @r=`${PWD_COMMAND}`; export r; \ |
15064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 15065 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
d545f33b PB |
15066 | $(HOST_EXPORTS) \ |
15067 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15068 | echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \ | |
0aed8855 | 15069 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ |
d545f33b PB |
15070 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
15071 | case $(srcdir) in \ | |
15072 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15073 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
15074 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15075 | esac; \ | |
15076 | srcdiroption="--srcdir=$${topdir}/intl"; \ | |
15077 | libsrcdir="$$s/intl"; \ | |
15078 | $(SHELL) $${libsrcdir}/configure \ | |
15079 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
15080 | @stage2_werror_flag@ | |
15081 | @endif intl-bootstrap | |
15082 | ||
15083 | .PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl | |
15084 | maybe-configure-stagefeedback-intl: | |
15085 | @if intl-bootstrap | |
15086 | maybe-configure-stagefeedback-intl: configure-stagefeedback-intl | |
0aed8855 | 15087 | configure-stagefeedback-intl: |
c52c6897 | 15088 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 15089 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl |
c52c6897 PB |
15090 | @r=`${PWD_COMMAND}`; export r; \ |
15091 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 15092 | test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \ |
d545f33b PB |
15093 | $(HOST_EXPORTS) \ |
15094 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15095 | echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \ | |
0aed8855 | 15096 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \ |
d545f33b PB |
15097 | cd $(HOST_SUBDIR)/intl || exit 1; \ |
15098 | case $(srcdir) in \ | |
15099 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
15100 | *) topdir=`echo $(HOST_SUBDIR)/intl/ | \ | |
15101 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
15102 | esac; \ | |
15103 | srcdiroption="--srcdir=$${topdir}/intl"; \ | |
15104 | libsrcdir="$$s/intl"; \ | |
15105 | $(SHELL) $${libsrcdir}/configure \ | |
15106 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
15107 | @stage2_werror_flag@ | |
15108 | @endif intl-bootstrap | |
15109 | ||
15110 | ||
15111 | ||
15112 | ||
15113 | ||
b813574b PB |
15114 | .PHONY: all-intl maybe-all-intl |
15115 | maybe-all-intl: | |
15116 | @if intl | |
d27cc32e | 15117 | TARGET-intl=all |
b813574b PB |
15118 | maybe-all-intl: all-intl |
15119 | all-intl: configure-intl | |
c52c6897 PB |
15120 | @endif intl |
15121 | @if intl-bootstrap | |
15122 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
15123 | @endif intl-bootstrap | |
15124 | @if intl | |
15125 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 15126 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 15127 | $(HOST_EXPORTS) \ |
b00612cc PB |
15128 | (cd $(HOST_SUBDIR)/intl && \ |
15129 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-intl)) | |
b813574b | 15130 | @endif intl |
a2592b1b | 15131 | |
a7254363 | 15132 | |
d545f33b PB |
15133 | |
15134 | .PHONY: all-stage1-intl maybe-all-stage1-intl | |
15135 | .PHONY: clean-stage1-intl maybe-clean-stage1-intl | |
15136 | maybe-all-stage1-intl: | |
15137 | maybe-clean-stage1-intl: | |
15138 | @if intl-bootstrap | |
15139 | maybe-all-stage1-intl: all-stage1-intl | |
15140 | all-stage1: all-stage1-intl | |
f70224b5 | 15141 | TARGET-stage1-intl = $(TARGET-intl) |
d545f33b | 15142 | all-stage1-intl: configure-stage1-intl |
c52c6897 | 15143 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
15144 | @r=`${PWD_COMMAND}`; export r; \ |
15145 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15146 | $(HOST_EXPORTS) \ | |
15147 | cd $(HOST_SUBDIR)/intl && \ | |
c52c6897 | 15148 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 15149 | $(TARGET-stage1-intl) |
d545f33b PB |
15150 | |
15151 | maybe-clean-stage1-intl: clean-stage1-intl | |
15152 | clean-stage1: clean-stage1-intl | |
15153 | clean-stage1-intl: | |
15154 | @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] \ | |
15155 | || exit 0 ; \ | |
c52c6897 | 15156 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
15157 | cd $(HOST_SUBDIR)/intl && \ |
15158 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 15159 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
15160 | @endif intl-bootstrap |
15161 | ||
15162 | ||
15163 | .PHONY: all-stage2-intl maybe-all-stage2-intl | |
15164 | .PHONY: clean-stage2-intl maybe-clean-stage2-intl | |
15165 | maybe-all-stage2-intl: | |
15166 | maybe-clean-stage2-intl: | |
15167 | @if intl-bootstrap | |
15168 | maybe-all-stage2-intl: all-stage2-intl | |
15169 | all-stage2: all-stage2-intl | |
f70224b5 | 15170 | TARGET-stage2-intl = $(TARGET-intl) |
d545f33b | 15171 | all-stage2-intl: configure-stage2-intl |
c52c6897 | 15172 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
15173 | @r=`${PWD_COMMAND}`; export r; \ |
15174 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15175 | $(HOST_EXPORTS) \ | |
15176 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15177 | cd $(HOST_SUBDIR)/intl && \ | |
f70224b5 PB |
15178 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
15179 | $(TARGET-stage2-intl) | |
d545f33b PB |
15180 | |
15181 | maybe-clean-stage2-intl: clean-stage2-intl | |
15182 | clean-stage2: clean-stage2-intl | |
15183 | clean-stage2-intl: | |
15184 | @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] \ | |
15185 | || exit 0 ; \ | |
c52c6897 | 15186 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
15187 | cd $(HOST_SUBDIR)/intl && \ |
15188 | $(MAKE) $(FLAGS_TO_PASS) \ | |
15189 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
15190 | clean | |
15191 | @endif intl-bootstrap | |
15192 | ||
15193 | ||
15194 | .PHONY: all-stage3-intl maybe-all-stage3-intl | |
15195 | .PHONY: clean-stage3-intl maybe-clean-stage3-intl | |
15196 | maybe-all-stage3-intl: | |
15197 | maybe-clean-stage3-intl: | |
15198 | @if intl-bootstrap | |
15199 | maybe-all-stage3-intl: all-stage3-intl | |
15200 | all-stage3: all-stage3-intl | |
f70224b5 | 15201 | TARGET-stage3-intl = $(TARGET-intl) |
d545f33b | 15202 | all-stage3-intl: configure-stage3-intl |
c52c6897 | 15203 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
15204 | @r=`${PWD_COMMAND}`; export r; \ |
15205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15206 | $(HOST_EXPORTS) \ | |
15207 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15208 | cd $(HOST_SUBDIR)/intl && \ | |
f70224b5 PB |
15209 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
15210 | $(TARGET-stage3-intl) | |
d545f33b PB |
15211 | |
15212 | maybe-clean-stage3-intl: clean-stage3-intl | |
15213 | clean-stage3: clean-stage3-intl | |
15214 | clean-stage3-intl: | |
15215 | @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] \ | |
15216 | || exit 0 ; \ | |
c52c6897 | 15217 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
15218 | cd $(HOST_SUBDIR)/intl && \ |
15219 | $(MAKE) $(FLAGS_TO_PASS) \ | |
15220 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
15221 | clean | |
15222 | @endif intl-bootstrap | |
15223 | ||
15224 | ||
15225 | .PHONY: all-stage4-intl maybe-all-stage4-intl | |
15226 | .PHONY: clean-stage4-intl maybe-clean-stage4-intl | |
15227 | maybe-all-stage4-intl: | |
15228 | maybe-clean-stage4-intl: | |
15229 | @if intl-bootstrap | |
15230 | maybe-all-stage4-intl: all-stage4-intl | |
15231 | all-stage4: all-stage4-intl | |
f70224b5 | 15232 | TARGET-stage4-intl = $(TARGET-intl) |
d545f33b | 15233 | all-stage4-intl: configure-stage4-intl |
c52c6897 | 15234 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
15235 | @r=`${PWD_COMMAND}`; export r; \ |
15236 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15237 | $(HOST_EXPORTS) \ | |
15238 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15239 | cd $(HOST_SUBDIR)/intl && \ | |
f70224b5 PB |
15240 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
15241 | $(TARGET-stage4-intl) | |
d545f33b PB |
15242 | |
15243 | maybe-clean-stage4-intl: clean-stage4-intl | |
15244 | clean-stage4: clean-stage4-intl | |
15245 | clean-stage4-intl: | |
15246 | @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] \ | |
15247 | || exit 0 ; \ | |
c52c6897 | 15248 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
15249 | cd $(HOST_SUBDIR)/intl && \ |
15250 | $(MAKE) $(FLAGS_TO_PASS) \ | |
15251 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
15252 | clean | |
15253 | @endif intl-bootstrap | |
15254 | ||
15255 | ||
15256 | .PHONY: all-stageprofile-intl maybe-all-stageprofile-intl | |
15257 | .PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl | |
15258 | maybe-all-stageprofile-intl: | |
15259 | maybe-clean-stageprofile-intl: | |
15260 | @if intl-bootstrap | |
15261 | maybe-all-stageprofile-intl: all-stageprofile-intl | |
15262 | all-stageprofile: all-stageprofile-intl | |
f70224b5 | 15263 | TARGET-stageprofile-intl = $(TARGET-intl) |
d545f33b | 15264 | all-stageprofile-intl: configure-stageprofile-intl |
c52c6897 | 15265 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
15266 | @r=`${PWD_COMMAND}`; export r; \ |
15267 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15268 | $(HOST_EXPORTS) \ | |
15269 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15270 | cd $(HOST_SUBDIR)/intl && \ | |
f70224b5 PB |
15271 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
15272 | $(TARGET-stageprofile-intl) | |
d545f33b PB |
15273 | |
15274 | maybe-clean-stageprofile-intl: clean-stageprofile-intl | |
15275 | clean-stageprofile: clean-stageprofile-intl | |
15276 | clean-stageprofile-intl: | |
15277 | @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] \ | |
15278 | || exit 0 ; \ | |
c52c6897 | 15279 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
15280 | cd $(HOST_SUBDIR)/intl && \ |
15281 | $(MAKE) $(FLAGS_TO_PASS) \ | |
15282 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
15283 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
15284 | @endif intl-bootstrap | |
15285 | ||
15286 | ||
15287 | .PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl | |
15288 | .PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl | |
15289 | maybe-all-stagefeedback-intl: | |
15290 | maybe-clean-stagefeedback-intl: | |
15291 | @if intl-bootstrap | |
15292 | maybe-all-stagefeedback-intl: all-stagefeedback-intl | |
15293 | all-stagefeedback: all-stagefeedback-intl | |
f70224b5 | 15294 | TARGET-stagefeedback-intl = $(TARGET-intl) |
d545f33b | 15295 | all-stagefeedback-intl: configure-stagefeedback-intl |
c52c6897 | 15296 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
15297 | @r=`${PWD_COMMAND}`; export r; \ |
15298 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15299 | $(HOST_EXPORTS) \ | |
15300 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
15301 | cd $(HOST_SUBDIR)/intl && \ | |
f70224b5 PB |
15302 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
15303 | $(TARGET-stagefeedback-intl) | |
d545f33b PB |
15304 | |
15305 | maybe-clean-stagefeedback-intl: clean-stagefeedback-intl | |
15306 | clean-stagefeedback: clean-stagefeedback-intl | |
15307 | clean-stagefeedback-intl: | |
15308 | @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] \ | |
15309 | || exit 0 ; \ | |
c52c6897 | 15310 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
15311 | cd $(HOST_SUBDIR)/intl && \ |
15312 | $(MAKE) $(FLAGS_TO_PASS) \ | |
15313 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
15314 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
15315 | @endif intl-bootstrap | |
15316 | ||
15317 | ||
15318 | ||
15319 | ||
15320 | ||
b813574b PB |
15321 | .PHONY: check-intl maybe-check-intl |
15322 | maybe-check-intl: | |
15323 | @if intl | |
15324 | maybe-check-intl: check-intl | |
2a4cbe27 | 15325 | |
b813574b | 15326 | check-intl: |
0aed8855 | 15327 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15328 | @r=`${PWD_COMMAND}`; export r; \ |
15329 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15330 | $(HOST_EXPORTS) \ |
b00612cc PB |
15331 | (cd $(HOST_SUBDIR)/intl && \ |
15332 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 15333 | |
b813574b | 15334 | @endif intl |
2a4cbe27 | 15335 | |
b813574b PB |
15336 | .PHONY: install-intl maybe-install-intl |
15337 | maybe-install-intl: | |
15338 | @if intl | |
15339 | maybe-install-intl: install-intl | |
2a4cbe27 | 15340 | |
b813574b | 15341 | install-intl: installdirs |
0aed8855 | 15342 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15343 | @r=`${PWD_COMMAND}`; export r; \ |
15344 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15345 | $(HOST_EXPORTS) \ |
b00612cc | 15346 | (cd $(HOST_SUBDIR)/intl && \ |
2da12f12 | 15347 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 15348 | |
b813574b | 15349 | @endif intl |
4fa63067 NN |
15350 | |
15351 | # Other targets (info, dvi, etc.) | |
15352 | ||
b813574b PB |
15353 | .PHONY: maybe-info-intl info-intl |
15354 | maybe-info-intl: | |
15355 | @if intl | |
15356 | maybe-info-intl: info-intl | |
4fa63067 | 15357 | |
b813574b PB |
15358 | info-intl: \ |
15359 | configure-intl | |
15360 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15361 | r=`${PWD_COMMAND}`; export r; \ |
15362 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15363 | $(HOST_EXPORTS) \ |
b813574b | 15364 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15365 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15366 | done; \ | |
b813574b | 15367 | echo "Doing info in intl" ; \ |
b00612cc | 15368 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15369 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15370 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15371 | "RANLIB=$${RANLIB}" \ | |
15372 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15373 | info) \ |
2a4cbe27 NN |
15374 | || exit 1 |
15375 | ||
b813574b | 15376 | @endif intl |
2a4cbe27 | 15377 | |
b813574b PB |
15378 | .PHONY: maybe-dvi-intl dvi-intl |
15379 | maybe-dvi-intl: | |
15380 | @if intl | |
15381 | maybe-dvi-intl: dvi-intl | |
2a4cbe27 | 15382 | |
b813574b PB |
15383 | dvi-intl: \ |
15384 | configure-intl | |
15385 | @[ -f ./intl/Makefile ] || exit 0; \ | |
15386 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 15387 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 15388 | $(HOST_EXPORTS) \ |
b813574b | 15389 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15390 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15391 | done; \ | |
b813574b | 15392 | echo "Doing dvi in intl" ; \ |
b00612cc | 15393 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15394 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15395 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15396 | "RANLIB=$${RANLIB}" \ | |
15397 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15398 | dvi) \ |
2a4cbe27 NN |
15399 | || exit 1 |
15400 | ||
b813574b | 15401 | @endif intl |
2a4cbe27 | 15402 | |
6d389afc MS |
15403 | .PHONY: maybe-html-intl html-intl |
15404 | maybe-html-intl: | |
15405 | @if intl | |
15406 | maybe-html-intl: html-intl | |
15407 | ||
15408 | html-intl: \ | |
15409 | configure-intl | |
15410 | @[ -f ./intl/Makefile ] || exit 0; \ | |
15411 | r=`${PWD_COMMAND}`; export r; \ | |
15412 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
15413 | $(HOST_EXPORTS) \ |
15414 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15415 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15416 | done; \ | |
15417 | echo "Doing html in intl" ; \ | |
b00612cc | 15418 | (cd $(HOST_SUBDIR)/intl && \ |
6d389afc MS |
15419 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15420 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15421 | "RANLIB=$${RANLIB}" \ | |
15422 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15423 | html) \ | |
15424 | || exit 1 | |
15425 | ||
15426 | @endif intl | |
15427 | ||
b813574b PB |
15428 | .PHONY: maybe-TAGS-intl TAGS-intl |
15429 | maybe-TAGS-intl: | |
15430 | @if intl | |
15431 | maybe-TAGS-intl: TAGS-intl | |
2a4cbe27 | 15432 | |
b813574b PB |
15433 | TAGS-intl: \ |
15434 | configure-intl | |
15435 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15436 | r=`${PWD_COMMAND}`; export r; \ |
15437 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15438 | $(HOST_EXPORTS) \ |
b813574b | 15439 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15440 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15441 | done; \ | |
b813574b | 15442 | echo "Doing TAGS in intl" ; \ |
b00612cc | 15443 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15444 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15445 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15446 | "RANLIB=$${RANLIB}" \ | |
15447 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15448 | TAGS) \ |
2a4cbe27 NN |
15449 | || exit 1 |
15450 | ||
b813574b | 15451 | @endif intl |
2a4cbe27 | 15452 | |
b813574b PB |
15453 | .PHONY: maybe-install-info-intl install-info-intl |
15454 | maybe-install-info-intl: | |
15455 | @if intl | |
15456 | maybe-install-info-intl: install-info-intl | |
2a4cbe27 | 15457 | |
b813574b PB |
15458 | install-info-intl: \ |
15459 | configure-intl \ | |
15460 | info-intl | |
15461 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15462 | r=`${PWD_COMMAND}`; export r; \ |
15463 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15464 | $(HOST_EXPORTS) \ |
b813574b | 15465 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15466 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15467 | done; \ | |
b813574b | 15468 | echo "Doing install-info in intl" ; \ |
b00612cc | 15469 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15470 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15471 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15472 | "RANLIB=$${RANLIB}" \ | |
15473 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15474 | install-info) \ |
2a4cbe27 NN |
15475 | || exit 1 |
15476 | ||
b813574b | 15477 | @endif intl |
2a4cbe27 | 15478 | |
108a6f8e CD |
15479 | .PHONY: maybe-install-html-intl install-html-intl |
15480 | maybe-install-html-intl: | |
15481 | @if intl | |
15482 | maybe-install-html-intl: install-html-intl | |
15483 | ||
15484 | install-html-intl: \ | |
15485 | configure-intl \ | |
15486 | html-intl | |
15487 | @[ -f ./intl/Makefile ] || exit 0; \ | |
15488 | r=`${PWD_COMMAND}`; export r; \ | |
15489 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15490 | $(HOST_EXPORTS) \ | |
15491 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15492 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15493 | done; \ | |
15494 | echo "Doing install-html in intl" ; \ | |
15495 | (cd $(HOST_SUBDIR)/intl && \ | |
15496 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
15497 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15498 | "RANLIB=$${RANLIB}" \ | |
15499 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15500 | install-html) \ | |
15501 | || exit 1 | |
15502 | ||
15503 | @endif intl | |
15504 | ||
b813574b PB |
15505 | .PHONY: maybe-installcheck-intl installcheck-intl |
15506 | maybe-installcheck-intl: | |
15507 | @if intl | |
15508 | maybe-installcheck-intl: installcheck-intl | |
2a4cbe27 | 15509 | |
b813574b PB |
15510 | installcheck-intl: \ |
15511 | configure-intl | |
15512 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15513 | r=`${PWD_COMMAND}`; export r; \ |
15514 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15515 | $(HOST_EXPORTS) \ |
b813574b | 15516 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15517 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15518 | done; \ | |
b813574b | 15519 | echo "Doing installcheck in intl" ; \ |
b00612cc | 15520 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15521 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15522 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15523 | "RANLIB=$${RANLIB}" \ | |
15524 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15525 | installcheck) \ |
2a4cbe27 NN |
15526 | || exit 1 |
15527 | ||
b813574b | 15528 | @endif intl |
2a4cbe27 | 15529 | |
b813574b PB |
15530 | .PHONY: maybe-mostlyclean-intl mostlyclean-intl |
15531 | maybe-mostlyclean-intl: | |
15532 | @if intl | |
15533 | maybe-mostlyclean-intl: mostlyclean-intl | |
2a4cbe27 | 15534 | |
b813574b PB |
15535 | mostlyclean-intl: |
15536 | @[ -f ./intl/Makefile ] || exit 0; \ | |
15537 | r=`${PWD_COMMAND}`; export r; \ | |
15538 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b PB |
15539 | $(HOST_EXPORTS) \ |
15540 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15541 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15542 | done; \ | |
15543 | echo "Doing mostlyclean in intl" ; \ | |
b00612cc | 15544 | (cd $(HOST_SUBDIR)/intl && \ |
b813574b PB |
15545 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15546 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15547 | "RANLIB=$${RANLIB}" \ | |
15548 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15549 | mostlyclean) \ | |
15550 | || exit 1 | |
4fa63067 | 15551 | |
b813574b | 15552 | @endif intl |
4fa63067 | 15553 | |
b813574b PB |
15554 | .PHONY: maybe-clean-intl clean-intl |
15555 | maybe-clean-intl: | |
15556 | @if intl | |
15557 | maybe-clean-intl: clean-intl | |
4fa63067 | 15558 | |
b813574b PB |
15559 | clean-intl: |
15560 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15561 | r=`${PWD_COMMAND}`; export r; \ |
15562 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15563 | $(HOST_EXPORTS) \ |
b813574b | 15564 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15565 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15566 | done; \ | |
b813574b | 15567 | echo "Doing clean in intl" ; \ |
b00612cc | 15568 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15569 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15570 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15571 | "RANLIB=$${RANLIB}" \ | |
15572 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15573 | clean) \ |
2a4cbe27 NN |
15574 | || exit 1 |
15575 | ||
b813574b | 15576 | @endif intl |
2a4cbe27 | 15577 | |
b813574b PB |
15578 | .PHONY: maybe-distclean-intl distclean-intl |
15579 | maybe-distclean-intl: | |
15580 | @if intl | |
15581 | maybe-distclean-intl: distclean-intl | |
2a4cbe27 | 15582 | |
b813574b PB |
15583 | distclean-intl: |
15584 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15585 | r=`${PWD_COMMAND}`; export r; \ |
15586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15587 | $(HOST_EXPORTS) \ |
b813574b | 15588 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15589 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15590 | done; \ | |
b813574b | 15591 | echo "Doing distclean in intl" ; \ |
b00612cc | 15592 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15593 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15594 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15595 | "RANLIB=$${RANLIB}" \ | |
15596 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15597 | distclean) \ |
2a4cbe27 NN |
15598 | || exit 1 |
15599 | ||
b813574b | 15600 | @endif intl |
2a4cbe27 | 15601 | |
b813574b PB |
15602 | .PHONY: maybe-maintainer-clean-intl maintainer-clean-intl |
15603 | maybe-maintainer-clean-intl: | |
15604 | @if intl | |
15605 | maybe-maintainer-clean-intl: maintainer-clean-intl | |
2a4cbe27 | 15606 | |
b813574b PB |
15607 | maintainer-clean-intl: |
15608 | @[ -f ./intl/Makefile ] || exit 0; \ | |
b40e3958 L |
15609 | r=`${PWD_COMMAND}`; export r; \ |
15610 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15611 | $(HOST_EXPORTS) \ |
b813574b | 15612 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15613 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15614 | done; \ | |
b813574b | 15615 | echo "Doing maintainer-clean in intl" ; \ |
b00612cc | 15616 | (cd $(HOST_SUBDIR)/intl && \ |
2a4cbe27 NN |
15617 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15618 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15619 | "RANLIB=$${RANLIB}" \ | |
15620 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15621 | maintainer-clean) \ |
2a4cbe27 NN |
15622 | || exit 1 |
15623 | ||
b813574b | 15624 | @endif intl |
2a4cbe27 | 15625 | |
2a4cbe27 | 15626 | |
a7254363 | 15627 | |
b813574b PB |
15628 | .PHONY: configure-tcl maybe-configure-tcl |
15629 | maybe-configure-tcl: | |
15630 | @if tcl | |
15631 | maybe-configure-tcl: configure-tcl | |
c52c6897 | 15632 | configure-tcl: |
0aed8855 | 15633 | @: $(MAKE); $(unstage) |
c52c6897 | 15634 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 15635 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
15636 | test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \ |
15637 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \ | |
378fce5b | 15638 | $(HOST_EXPORTS) \ |
a7254363 PB |
15639 | echo Configuring in $(HOST_SUBDIR)/tcl; \ |
15640 | cd "$(HOST_SUBDIR)/tcl" || exit 1; \ | |
4fa63067 | 15641 | case $(srcdir) in \ |
b00612cc PB |
15642 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
15643 | *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \ | |
15644 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 15645 | esac; \ |
b00612cc PB |
15646 | srcdiroption="--srcdir=$${topdir}/tcl"; \ |
15647 | libsrcdir="$$s/tcl"; \ | |
4fa63067 | 15648 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 15649 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 15650 | || exit 1 |
b813574b | 15651 | @endif tcl |
2a4cbe27 | 15652 | |
a7254363 PB |
15653 | |
15654 | ||
d545f33b PB |
15655 | |
15656 | ||
b813574b PB |
15657 | .PHONY: all-tcl maybe-all-tcl |
15658 | maybe-all-tcl: | |
15659 | @if tcl | |
d27cc32e | 15660 | TARGET-tcl=all |
b813574b PB |
15661 | maybe-all-tcl: all-tcl |
15662 | all-tcl: configure-tcl | |
0aed8855 | 15663 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15664 | @r=`${PWD_COMMAND}`; export r; \ |
15665 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15666 | $(HOST_EXPORTS) \ |
b00612cc PB |
15667 | (cd $(HOST_SUBDIR)/tcl && \ |
15668 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tcl)) | |
b813574b | 15669 | @endif tcl |
4fa63067 | 15670 | |
a7254363 | 15671 | |
d545f33b PB |
15672 | |
15673 | ||
b813574b PB |
15674 | .PHONY: check-tcl maybe-check-tcl |
15675 | maybe-check-tcl: | |
15676 | @if tcl | |
15677 | maybe-check-tcl: check-tcl | |
2a4cbe27 | 15678 | |
b813574b | 15679 | check-tcl: |
0aed8855 | 15680 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15681 | @r=`${PWD_COMMAND}`; export r; \ |
15682 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15683 | $(HOST_EXPORTS) \ |
b00612cc PB |
15684 | (cd $(HOST_SUBDIR)/tcl && \ |
15685 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 15686 | |
b813574b | 15687 | @endif tcl |
4fa63067 | 15688 | |
b813574b PB |
15689 | .PHONY: install-tcl maybe-install-tcl |
15690 | maybe-install-tcl: | |
15691 | @if tcl | |
15692 | maybe-install-tcl: install-tcl | |
4fa63067 | 15693 | |
b813574b | 15694 | install-tcl: installdirs |
0aed8855 | 15695 | @: $(MAKE); $(unstage) |
4fa63067 NN |
15696 | @r=`${PWD_COMMAND}`; export r; \ |
15697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15698 | $(HOST_EXPORTS) \ |
b00612cc | 15699 | (cd $(HOST_SUBDIR)/tcl && \ |
2da12f12 | 15700 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 15701 | |
b813574b | 15702 | @endif tcl |
4fa63067 NN |
15703 | |
15704 | # Other targets (info, dvi, etc.) | |
15705 | ||
b813574b PB |
15706 | .PHONY: maybe-info-tcl info-tcl |
15707 | maybe-info-tcl: | |
15708 | @if tcl | |
15709 | maybe-info-tcl: info-tcl | |
4fa63067 | 15710 | |
b813574b PB |
15711 | info-tcl: \ |
15712 | configure-tcl | |
0aed8855 | 15713 | @: $(MAKE); $(unstage) |
b813574b | 15714 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15715 | r=`${PWD_COMMAND}`; export r; \ |
15716 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15717 | $(HOST_EXPORTS) \ |
b813574b | 15718 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15719 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15720 | done; \ | |
b813574b | 15721 | echo "Doing info in tcl" ; \ |
b00612cc | 15722 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15723 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15724 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15725 | "RANLIB=$${RANLIB}" \ | |
15726 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15727 | info) \ |
2a4cbe27 NN |
15728 | || exit 1 |
15729 | ||
b813574b | 15730 | @endif tcl |
2a4cbe27 | 15731 | |
b813574b PB |
15732 | .PHONY: maybe-dvi-tcl dvi-tcl |
15733 | maybe-dvi-tcl: | |
15734 | @if tcl | |
15735 | maybe-dvi-tcl: dvi-tcl | |
2a4cbe27 | 15736 | |
b813574b PB |
15737 | dvi-tcl: \ |
15738 | configure-tcl | |
0aed8855 | 15739 | @: $(MAKE); $(unstage) |
b813574b | 15740 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15741 | r=`${PWD_COMMAND}`; export r; \ |
15742 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15743 | $(HOST_EXPORTS) \ |
b813574b | 15744 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15745 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15746 | done; \ | |
b813574b | 15747 | echo "Doing dvi in tcl" ; \ |
b00612cc | 15748 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15749 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15750 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15751 | "RANLIB=$${RANLIB}" \ | |
15752 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15753 | dvi) \ |
2a4cbe27 NN |
15754 | || exit 1 |
15755 | ||
b813574b | 15756 | @endif tcl |
2a4cbe27 | 15757 | |
6d389afc MS |
15758 | .PHONY: maybe-html-tcl html-tcl |
15759 | maybe-html-tcl: | |
15760 | @if tcl | |
15761 | maybe-html-tcl: html-tcl | |
15762 | ||
15763 | html-tcl: \ | |
15764 | configure-tcl | |
0aed8855 | 15765 | @: $(MAKE); $(unstage) |
6d389afc MS |
15766 | @[ -f ./tcl/Makefile ] || exit 0; \ |
15767 | r=`${PWD_COMMAND}`; export r; \ | |
15768 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
15769 | $(HOST_EXPORTS) \ |
15770 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15771 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15772 | done; \ | |
15773 | echo "Doing html in tcl" ; \ | |
b00612cc | 15774 | (cd $(HOST_SUBDIR)/tcl && \ |
6d389afc MS |
15775 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15776 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15777 | "RANLIB=$${RANLIB}" \ | |
15778 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15779 | html) \ | |
15780 | || exit 1 | |
15781 | ||
15782 | @endif tcl | |
15783 | ||
b813574b PB |
15784 | .PHONY: maybe-TAGS-tcl TAGS-tcl |
15785 | maybe-TAGS-tcl: | |
15786 | @if tcl | |
15787 | maybe-TAGS-tcl: TAGS-tcl | |
2a4cbe27 | 15788 | |
b813574b PB |
15789 | TAGS-tcl: \ |
15790 | configure-tcl | |
0aed8855 | 15791 | @: $(MAKE); $(unstage) |
b813574b | 15792 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15793 | r=`${PWD_COMMAND}`; export r; \ |
15794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15795 | $(HOST_EXPORTS) \ |
b813574b | 15796 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15797 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15798 | done; \ | |
b813574b | 15799 | echo "Doing TAGS in tcl" ; \ |
b00612cc | 15800 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15801 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15802 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15803 | "RANLIB=$${RANLIB}" \ | |
15804 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15805 | TAGS) \ |
2a4cbe27 NN |
15806 | || exit 1 |
15807 | ||
b813574b | 15808 | @endif tcl |
2a4cbe27 | 15809 | |
b813574b PB |
15810 | .PHONY: maybe-install-info-tcl install-info-tcl |
15811 | maybe-install-info-tcl: | |
15812 | @if tcl | |
15813 | maybe-install-info-tcl: install-info-tcl | |
2a4cbe27 | 15814 | |
b813574b PB |
15815 | install-info-tcl: \ |
15816 | configure-tcl \ | |
15817 | info-tcl | |
0aed8855 | 15818 | @: $(MAKE); $(unstage) |
b813574b | 15819 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15820 | r=`${PWD_COMMAND}`; export r; \ |
15821 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15822 | $(HOST_EXPORTS) \ |
b813574b | 15823 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15824 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15825 | done; \ | |
b813574b | 15826 | echo "Doing install-info in tcl" ; \ |
b00612cc | 15827 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15828 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15829 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15830 | "RANLIB=$${RANLIB}" \ | |
15831 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15832 | install-info) \ |
2a4cbe27 NN |
15833 | || exit 1 |
15834 | ||
b813574b | 15835 | @endif tcl |
2a4cbe27 | 15836 | |
108a6f8e CD |
15837 | .PHONY: maybe-install-html-tcl install-html-tcl |
15838 | maybe-install-html-tcl: | |
15839 | @if tcl | |
15840 | maybe-install-html-tcl: install-html-tcl | |
15841 | ||
15842 | install-html-tcl: \ | |
15843 | configure-tcl \ | |
15844 | html-tcl | |
15845 | @: $(MAKE); $(unstage) | |
15846 | @[ -f ./tcl/Makefile ] || exit 0; \ | |
15847 | r=`${PWD_COMMAND}`; export r; \ | |
15848 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
15849 | $(HOST_EXPORTS) \ | |
15850 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
15851 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
15852 | done; \ | |
15853 | echo "Doing install-html in tcl" ; \ | |
15854 | (cd $(HOST_SUBDIR)/tcl && \ | |
15855 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
15856 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15857 | "RANLIB=$${RANLIB}" \ | |
15858 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
15859 | install-html) \ | |
15860 | || exit 1 | |
15861 | ||
15862 | @endif tcl | |
15863 | ||
b813574b PB |
15864 | .PHONY: maybe-installcheck-tcl installcheck-tcl |
15865 | maybe-installcheck-tcl: | |
15866 | @if tcl | |
15867 | maybe-installcheck-tcl: installcheck-tcl | |
2a4cbe27 | 15868 | |
b813574b PB |
15869 | installcheck-tcl: \ |
15870 | configure-tcl | |
0aed8855 | 15871 | @: $(MAKE); $(unstage) |
b813574b | 15872 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15873 | r=`${PWD_COMMAND}`; export r; \ |
15874 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15875 | $(HOST_EXPORTS) \ |
b813574b | 15876 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15877 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15878 | done; \ | |
b813574b | 15879 | echo "Doing installcheck in tcl" ; \ |
b00612cc | 15880 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15881 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15882 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15883 | "RANLIB=$${RANLIB}" \ | |
15884 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15885 | installcheck) \ |
2a4cbe27 NN |
15886 | || exit 1 |
15887 | ||
b813574b | 15888 | @endif tcl |
2a4cbe27 | 15889 | |
b813574b PB |
15890 | .PHONY: maybe-mostlyclean-tcl mostlyclean-tcl |
15891 | maybe-mostlyclean-tcl: | |
15892 | @if tcl | |
15893 | maybe-mostlyclean-tcl: mostlyclean-tcl | |
2a4cbe27 | 15894 | |
b813574b PB |
15895 | # tcl doesn't support mostlyclean. |
15896 | mostlyclean-tcl: | |
2a4cbe27 | 15897 | |
b813574b | 15898 | @endif tcl |
2a4cbe27 | 15899 | |
b813574b PB |
15900 | .PHONY: maybe-clean-tcl clean-tcl |
15901 | maybe-clean-tcl: | |
15902 | @if tcl | |
15903 | maybe-clean-tcl: clean-tcl | |
2a4cbe27 | 15904 | |
b813574b | 15905 | clean-tcl: |
0aed8855 | 15906 | @: $(MAKE); $(unstage) |
b813574b | 15907 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15908 | r=`${PWD_COMMAND}`; export r; \ |
15909 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15910 | $(HOST_EXPORTS) \ |
b813574b | 15911 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15912 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15913 | done; \ | |
b813574b | 15914 | echo "Doing clean in tcl" ; \ |
b00612cc | 15915 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15916 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15917 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15918 | "RANLIB=$${RANLIB}" \ | |
15919 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15920 | clean) \ |
2a4cbe27 NN |
15921 | || exit 1 |
15922 | ||
b813574b | 15923 | @endif tcl |
2a4cbe27 | 15924 | |
b813574b PB |
15925 | .PHONY: maybe-distclean-tcl distclean-tcl |
15926 | maybe-distclean-tcl: | |
15927 | @if tcl | |
15928 | maybe-distclean-tcl: distclean-tcl | |
2a4cbe27 | 15929 | |
b813574b | 15930 | distclean-tcl: |
0aed8855 | 15931 | @: $(MAKE); $(unstage) |
b813574b | 15932 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15933 | r=`${PWD_COMMAND}`; export r; \ |
15934 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15935 | $(HOST_EXPORTS) \ |
b813574b | 15936 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15937 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15938 | done; \ | |
b813574b | 15939 | echo "Doing distclean in tcl" ; \ |
b00612cc | 15940 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15941 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15942 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15943 | "RANLIB=$${RANLIB}" \ | |
15944 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15945 | distclean) \ |
2a4cbe27 NN |
15946 | || exit 1 |
15947 | ||
b813574b | 15948 | @endif tcl |
2a4cbe27 | 15949 | |
b813574b PB |
15950 | .PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl |
15951 | maybe-maintainer-clean-tcl: | |
15952 | @if tcl | |
15953 | maybe-maintainer-clean-tcl: maintainer-clean-tcl | |
2a4cbe27 | 15954 | |
b813574b | 15955 | maintainer-clean-tcl: |
0aed8855 | 15956 | @: $(MAKE); $(unstage) |
b813574b | 15957 | @[ -f ./tcl/Makefile ] || exit 0; \ |
b40e3958 L |
15958 | r=`${PWD_COMMAND}`; export r; \ |
15959 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 15960 | $(HOST_EXPORTS) \ |
b813574b | 15961 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
15962 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
15963 | done; \ | |
b813574b | 15964 | echo "Doing maintainer-clean in tcl" ; \ |
b00612cc | 15965 | (cd $(HOST_SUBDIR)/tcl && \ |
2a4cbe27 NN |
15966 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
15967 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
15968 | "RANLIB=$${RANLIB}" \ | |
15969 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 15970 | maintainer-clean) \ |
2a4cbe27 NN |
15971 | || exit 1 |
15972 | ||
b813574b | 15973 | @endif tcl |
2a4cbe27 | 15974 | |
2a4cbe27 | 15975 | |
a7254363 | 15976 | |
b813574b PB |
15977 | .PHONY: configure-itcl maybe-configure-itcl |
15978 | maybe-configure-itcl: | |
15979 | @if itcl | |
15980 | maybe-configure-itcl: configure-itcl | |
c52c6897 | 15981 | configure-itcl: |
0aed8855 | 15982 | @: $(MAKE); $(unstage) |
c52c6897 | 15983 | @r=`${PWD_COMMAND}`; export r; \ |
4fa63067 | 15984 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
15985 | test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \ |
15986 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \ | |
378fce5b | 15987 | $(HOST_EXPORTS) \ |
a7254363 PB |
15988 | echo Configuring in $(HOST_SUBDIR)/itcl; \ |
15989 | cd "$(HOST_SUBDIR)/itcl" || exit 1; \ | |
4fa63067 | 15990 | case $(srcdir) in \ |
b00612cc PB |
15991 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
15992 | *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \ | |
15993 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 15994 | esac; \ |
b00612cc PB |
15995 | srcdiroption="--srcdir=$${topdir}/itcl"; \ |
15996 | libsrcdir="$$s/itcl"; \ | |
4fa63067 | 15997 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 15998 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 15999 | || exit 1 |
b813574b | 16000 | @endif itcl |
4fa63067 | 16001 | |
a7254363 PB |
16002 | |
16003 | ||
d545f33b PB |
16004 | |
16005 | ||
b813574b PB |
16006 | .PHONY: all-itcl maybe-all-itcl |
16007 | maybe-all-itcl: | |
16008 | @if itcl | |
d27cc32e | 16009 | TARGET-itcl=all |
b813574b PB |
16010 | maybe-all-itcl: all-itcl |
16011 | all-itcl: configure-itcl | |
0aed8855 | 16012 | @: $(MAKE); $(unstage) |
4fa63067 NN |
16013 | @r=`${PWD_COMMAND}`; export r; \ |
16014 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16015 | $(HOST_EXPORTS) \ |
b00612cc PB |
16016 | (cd $(HOST_SUBDIR)/itcl && \ |
16017 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-itcl)) | |
b813574b | 16018 | @endif itcl |
4fa63067 | 16019 | |
a7254363 | 16020 | |
d545f33b PB |
16021 | |
16022 | ||
b813574b PB |
16023 | .PHONY: check-itcl maybe-check-itcl |
16024 | maybe-check-itcl: | |
16025 | @if itcl | |
16026 | maybe-check-itcl: check-itcl | |
4fa63067 | 16027 | |
b813574b | 16028 | check-itcl: |
0aed8855 | 16029 | @: $(MAKE); $(unstage) |
4fa63067 NN |
16030 | @r=`${PWD_COMMAND}`; export r; \ |
16031 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16032 | $(HOST_EXPORTS) \ |
b00612cc PB |
16033 | (cd $(HOST_SUBDIR)/itcl && \ |
16034 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 16035 | |
b813574b | 16036 | @endif itcl |
4fa63067 | 16037 | |
b813574b PB |
16038 | .PHONY: install-itcl maybe-install-itcl |
16039 | maybe-install-itcl: | |
16040 | @if itcl | |
16041 | maybe-install-itcl: install-itcl | |
4fa63067 | 16042 | |
b813574b | 16043 | install-itcl: installdirs |
0aed8855 | 16044 | @: $(MAKE); $(unstage) |
4fa63067 NN |
16045 | @r=`${PWD_COMMAND}`; export r; \ |
16046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16047 | $(HOST_EXPORTS) \ |
b00612cc | 16048 | (cd $(HOST_SUBDIR)/itcl && \ |
2da12f12 | 16049 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 16050 | |
b813574b | 16051 | @endif itcl |
4fa63067 NN |
16052 | |
16053 | # Other targets (info, dvi, etc.) | |
16054 | ||
b813574b PB |
16055 | .PHONY: maybe-info-itcl info-itcl |
16056 | maybe-info-itcl: | |
16057 | @if itcl | |
16058 | maybe-info-itcl: info-itcl | |
4fa63067 | 16059 | |
b813574b PB |
16060 | info-itcl: \ |
16061 | configure-itcl | |
0aed8855 | 16062 | @: $(MAKE); $(unstage) |
b813574b | 16063 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16064 | r=`${PWD_COMMAND}`; export r; \ |
16065 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16066 | $(HOST_EXPORTS) \ |
b813574b | 16067 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16068 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16069 | done; \ | |
b813574b | 16070 | echo "Doing info in itcl" ; \ |
b00612cc | 16071 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16072 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16073 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16074 | "RANLIB=$${RANLIB}" \ | |
16075 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16076 | info) \ |
2a4cbe27 NN |
16077 | || exit 1 |
16078 | ||
b813574b | 16079 | @endif itcl |
2a4cbe27 | 16080 | |
b813574b PB |
16081 | .PHONY: maybe-dvi-itcl dvi-itcl |
16082 | maybe-dvi-itcl: | |
16083 | @if itcl | |
16084 | maybe-dvi-itcl: dvi-itcl | |
2a4cbe27 | 16085 | |
b813574b PB |
16086 | dvi-itcl: \ |
16087 | configure-itcl | |
0aed8855 | 16088 | @: $(MAKE); $(unstage) |
b813574b | 16089 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16090 | r=`${PWD_COMMAND}`; export r; \ |
16091 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16092 | $(HOST_EXPORTS) \ |
b813574b | 16093 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16094 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16095 | done; \ | |
b813574b | 16096 | echo "Doing dvi in itcl" ; \ |
b00612cc | 16097 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16098 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16099 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16100 | "RANLIB=$${RANLIB}" \ | |
16101 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16102 | dvi) \ |
2a4cbe27 NN |
16103 | || exit 1 |
16104 | ||
b813574b | 16105 | @endif itcl |
2a4cbe27 | 16106 | |
6d389afc MS |
16107 | .PHONY: maybe-html-itcl html-itcl |
16108 | maybe-html-itcl: | |
16109 | @if itcl | |
16110 | maybe-html-itcl: html-itcl | |
16111 | ||
16112 | html-itcl: \ | |
16113 | configure-itcl | |
0aed8855 | 16114 | @: $(MAKE); $(unstage) |
6d389afc MS |
16115 | @[ -f ./itcl/Makefile ] || exit 0; \ |
16116 | r=`${PWD_COMMAND}`; export r; \ | |
16117 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
16118 | $(HOST_EXPORTS) \ |
16119 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16120 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16121 | done; \ | |
16122 | echo "Doing html in itcl" ; \ | |
b00612cc | 16123 | (cd $(HOST_SUBDIR)/itcl && \ |
6d389afc MS |
16124 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16125 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16126 | "RANLIB=$${RANLIB}" \ | |
16127 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16128 | html) \ | |
16129 | || exit 1 | |
16130 | ||
16131 | @endif itcl | |
16132 | ||
b813574b PB |
16133 | .PHONY: maybe-TAGS-itcl TAGS-itcl |
16134 | maybe-TAGS-itcl: | |
16135 | @if itcl | |
16136 | maybe-TAGS-itcl: TAGS-itcl | |
2a4cbe27 | 16137 | |
b813574b PB |
16138 | TAGS-itcl: \ |
16139 | configure-itcl | |
0aed8855 | 16140 | @: $(MAKE); $(unstage) |
b813574b | 16141 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16142 | r=`${PWD_COMMAND}`; export r; \ |
16143 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16144 | $(HOST_EXPORTS) \ |
b813574b | 16145 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16146 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16147 | done; \ | |
b813574b | 16148 | echo "Doing TAGS in itcl" ; \ |
b00612cc | 16149 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16150 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16151 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16152 | "RANLIB=$${RANLIB}" \ | |
16153 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16154 | TAGS) \ |
2a4cbe27 NN |
16155 | || exit 1 |
16156 | ||
b813574b | 16157 | @endif itcl |
2a4cbe27 | 16158 | |
b813574b PB |
16159 | .PHONY: maybe-install-info-itcl install-info-itcl |
16160 | maybe-install-info-itcl: | |
16161 | @if itcl | |
16162 | maybe-install-info-itcl: install-info-itcl | |
2a4cbe27 | 16163 | |
b813574b PB |
16164 | install-info-itcl: \ |
16165 | configure-itcl \ | |
16166 | info-itcl | |
0aed8855 | 16167 | @: $(MAKE); $(unstage) |
b813574b | 16168 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16169 | r=`${PWD_COMMAND}`; export r; \ |
16170 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16171 | $(HOST_EXPORTS) \ |
b813574b | 16172 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16173 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16174 | done; \ | |
b813574b | 16175 | echo "Doing install-info in itcl" ; \ |
b00612cc | 16176 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16177 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16178 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16179 | "RANLIB=$${RANLIB}" \ | |
16180 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16181 | install-info) \ |
2a4cbe27 NN |
16182 | || exit 1 |
16183 | ||
b813574b | 16184 | @endif itcl |
2a4cbe27 | 16185 | |
108a6f8e CD |
16186 | .PHONY: maybe-install-html-itcl install-html-itcl |
16187 | maybe-install-html-itcl: | |
16188 | @if itcl | |
16189 | maybe-install-html-itcl: install-html-itcl | |
16190 | ||
16191 | install-html-itcl: \ | |
16192 | configure-itcl \ | |
16193 | html-itcl | |
16194 | @: $(MAKE); $(unstage) | |
16195 | @[ -f ./itcl/Makefile ] || exit 0; \ | |
16196 | r=`${PWD_COMMAND}`; export r; \ | |
16197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16198 | $(HOST_EXPORTS) \ | |
16199 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16200 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16201 | done; \ | |
16202 | echo "Doing install-html in itcl" ; \ | |
16203 | (cd $(HOST_SUBDIR)/itcl && \ | |
16204 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
16205 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16206 | "RANLIB=$${RANLIB}" \ | |
16207 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16208 | install-html) \ | |
16209 | || exit 1 | |
16210 | ||
16211 | @endif itcl | |
16212 | ||
b813574b PB |
16213 | .PHONY: maybe-installcheck-itcl installcheck-itcl |
16214 | maybe-installcheck-itcl: | |
16215 | @if itcl | |
16216 | maybe-installcheck-itcl: installcheck-itcl | |
2a4cbe27 | 16217 | |
b813574b PB |
16218 | installcheck-itcl: \ |
16219 | configure-itcl | |
0aed8855 | 16220 | @: $(MAKE); $(unstage) |
b813574b | 16221 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16222 | r=`${PWD_COMMAND}`; export r; \ |
16223 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16224 | $(HOST_EXPORTS) \ |
b813574b | 16225 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16226 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16227 | done; \ | |
b813574b | 16228 | echo "Doing installcheck in itcl" ; \ |
b00612cc | 16229 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16230 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16231 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16232 | "RANLIB=$${RANLIB}" \ | |
16233 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16234 | installcheck) \ |
2a4cbe27 NN |
16235 | || exit 1 |
16236 | ||
b813574b | 16237 | @endif itcl |
2a4cbe27 | 16238 | |
b813574b PB |
16239 | .PHONY: maybe-mostlyclean-itcl mostlyclean-itcl |
16240 | maybe-mostlyclean-itcl: | |
16241 | @if itcl | |
16242 | maybe-mostlyclean-itcl: mostlyclean-itcl | |
2a4cbe27 | 16243 | |
b813574b | 16244 | mostlyclean-itcl: |
0aed8855 | 16245 | @: $(MAKE); $(unstage) |
b813574b | 16246 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16247 | r=`${PWD_COMMAND}`; export r; \ |
16248 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16249 | $(HOST_EXPORTS) \ |
b813574b | 16250 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16251 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16252 | done; \ | |
b813574b | 16253 | echo "Doing mostlyclean in itcl" ; \ |
b00612cc | 16254 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16255 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16256 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16257 | "RANLIB=$${RANLIB}" \ | |
16258 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16259 | mostlyclean) \ |
2a4cbe27 NN |
16260 | || exit 1 |
16261 | ||
b813574b | 16262 | @endif itcl |
2a4cbe27 | 16263 | |
b813574b PB |
16264 | .PHONY: maybe-clean-itcl clean-itcl |
16265 | maybe-clean-itcl: | |
16266 | @if itcl | |
16267 | maybe-clean-itcl: clean-itcl | |
2a4cbe27 | 16268 | |
b813574b | 16269 | clean-itcl: |
0aed8855 | 16270 | @: $(MAKE); $(unstage) |
b813574b | 16271 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16272 | r=`${PWD_COMMAND}`; export r; \ |
16273 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16274 | $(HOST_EXPORTS) \ |
b813574b | 16275 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16276 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16277 | done; \ | |
b813574b | 16278 | echo "Doing clean in itcl" ; \ |
b00612cc | 16279 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16280 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16281 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16282 | "RANLIB=$${RANLIB}" \ | |
16283 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16284 | clean) \ |
2a4cbe27 NN |
16285 | || exit 1 |
16286 | ||
b813574b | 16287 | @endif itcl |
2a4cbe27 | 16288 | |
b813574b PB |
16289 | .PHONY: maybe-distclean-itcl distclean-itcl |
16290 | maybe-distclean-itcl: | |
16291 | @if itcl | |
16292 | maybe-distclean-itcl: distclean-itcl | |
2a4cbe27 | 16293 | |
b813574b | 16294 | distclean-itcl: |
0aed8855 | 16295 | @: $(MAKE); $(unstage) |
b813574b | 16296 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16297 | r=`${PWD_COMMAND}`; export r; \ |
16298 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16299 | $(HOST_EXPORTS) \ |
b813574b | 16300 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16301 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16302 | done; \ | |
b813574b | 16303 | echo "Doing distclean in itcl" ; \ |
b00612cc | 16304 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16305 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16306 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16307 | "RANLIB=$${RANLIB}" \ | |
16308 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16309 | distclean) \ |
2a4cbe27 NN |
16310 | || exit 1 |
16311 | ||
b813574b | 16312 | @endif itcl |
2a4cbe27 | 16313 | |
b813574b PB |
16314 | .PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl |
16315 | maybe-maintainer-clean-itcl: | |
16316 | @if itcl | |
16317 | maybe-maintainer-clean-itcl: maintainer-clean-itcl | |
2a4cbe27 | 16318 | |
b813574b | 16319 | maintainer-clean-itcl: |
0aed8855 | 16320 | @: $(MAKE); $(unstage) |
b813574b | 16321 | @[ -f ./itcl/Makefile ] || exit 0; \ |
b40e3958 L |
16322 | r=`${PWD_COMMAND}`; export r; \ |
16323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16324 | $(HOST_EXPORTS) \ |
b813574b | 16325 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
16326 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16327 | done; \ | |
b813574b | 16328 | echo "Doing maintainer-clean in itcl" ; \ |
b00612cc | 16329 | (cd $(HOST_SUBDIR)/itcl && \ |
2a4cbe27 NN |
16330 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16331 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16332 | "RANLIB=$${RANLIB}" \ | |
16333 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16334 | maintainer-clean) \ |
2a4cbe27 NN |
16335 | || exit 1 |
16336 | ||
b813574b | 16337 | @endif itcl |
2a4cbe27 | 16338 | |
2a4cbe27 | 16339 | |
a7254363 | 16340 | |
b813574b PB |
16341 | .PHONY: configure-ld maybe-configure-ld |
16342 | maybe-configure-ld: | |
16343 | @if ld | |
16344 | maybe-configure-ld: configure-ld | |
c52c6897 PB |
16345 | configure-ld: |
16346 | @endif ld | |
16347 | @if ld-bootstrap | |
16348 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
16349 | @endif ld-bootstrap | |
16350 | @if ld | |
16351 | @r=`${PWD_COMMAND}`; export r; \ | |
16352 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
16353 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
16354 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ | |
378fce5b | 16355 | $(HOST_EXPORTS) \ |
a7254363 PB |
16356 | echo Configuring in $(HOST_SUBDIR)/ld; \ |
16357 | cd "$(HOST_SUBDIR)/ld" || exit 1; \ | |
04cf1b77 | 16358 | case $(srcdir) in \ |
b00612cc PB |
16359 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
16360 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16361 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
04cf1b77 | 16362 | esac; \ |
b00612cc PB |
16363 | srcdiroption="--srcdir=$${topdir}/ld"; \ |
16364 | libsrcdir="$$s/ld"; \ | |
04cf1b77 | 16365 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 16366 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
04cf1b77 | 16367 | || exit 1 |
b813574b | 16368 | @endif ld |
04cf1b77 | 16369 | |
a7254363 PB |
16370 | |
16371 | ||
d545f33b PB |
16372 | .PHONY: configure-stage1-ld maybe-configure-stage1-ld |
16373 | maybe-configure-stage1-ld: | |
16374 | @if ld-bootstrap | |
16375 | maybe-configure-stage1-ld: configure-stage1-ld | |
0aed8855 | 16376 | configure-stage1-ld: |
c52c6897 | 16377 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 16378 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
c52c6897 PB |
16379 | @r=`${PWD_COMMAND}`; export r; \ |
16380 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 16381 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
d545f33b PB |
16382 | $(HOST_EXPORTS) \ |
16383 | echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \ | |
0aed8855 | 16384 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ |
d545f33b PB |
16385 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
16386 | case $(srcdir) in \ | |
16387 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
16388 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16389 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
16390 | esac; \ | |
16391 | srcdiroption="--srcdir=$${topdir}/ld"; \ | |
16392 | libsrcdir="$$s/ld"; \ | |
16393 | $(SHELL) $${libsrcdir}/configure \ | |
16394 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
16395 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
16396 | @endif ld-bootstrap | |
16397 | ||
16398 | .PHONY: configure-stage2-ld maybe-configure-stage2-ld | |
16399 | maybe-configure-stage2-ld: | |
16400 | @if ld-bootstrap | |
16401 | maybe-configure-stage2-ld: configure-stage2-ld | |
0aed8855 | 16402 | configure-stage2-ld: |
c52c6897 | 16403 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 16404 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
c52c6897 PB |
16405 | @r=`${PWD_COMMAND}`; export r; \ |
16406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 16407 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
d545f33b PB |
16408 | $(HOST_EXPORTS) \ |
16409 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16410 | echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \ | |
0aed8855 | 16411 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ |
d545f33b PB |
16412 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
16413 | case $(srcdir) in \ | |
16414 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
16415 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16416 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
16417 | esac; \ | |
16418 | srcdiroption="--srcdir=$${topdir}/ld"; \ | |
16419 | libsrcdir="$$s/ld"; \ | |
16420 | $(SHELL) $${libsrcdir}/configure \ | |
16421 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
16422 | @stage2_werror_flag@ | |
16423 | @endif ld-bootstrap | |
16424 | ||
16425 | .PHONY: configure-stage3-ld maybe-configure-stage3-ld | |
16426 | maybe-configure-stage3-ld: | |
16427 | @if ld-bootstrap | |
16428 | maybe-configure-stage3-ld: configure-stage3-ld | |
0aed8855 | 16429 | configure-stage3-ld: |
c52c6897 | 16430 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 16431 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
c52c6897 PB |
16432 | @r=`${PWD_COMMAND}`; export r; \ |
16433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 16434 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
d545f33b PB |
16435 | $(HOST_EXPORTS) \ |
16436 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16437 | echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \ | |
0aed8855 | 16438 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ |
d545f33b PB |
16439 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
16440 | case $(srcdir) in \ | |
16441 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
16442 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16443 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
16444 | esac; \ | |
16445 | srcdiroption="--srcdir=$${topdir}/ld"; \ | |
16446 | libsrcdir="$$s/ld"; \ | |
16447 | $(SHELL) $${libsrcdir}/configure \ | |
16448 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
16449 | @stage2_werror_flag@ | |
16450 | @endif ld-bootstrap | |
16451 | ||
16452 | .PHONY: configure-stage4-ld maybe-configure-stage4-ld | |
16453 | maybe-configure-stage4-ld: | |
16454 | @if ld-bootstrap | |
16455 | maybe-configure-stage4-ld: configure-stage4-ld | |
0aed8855 | 16456 | configure-stage4-ld: |
c52c6897 | 16457 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 16458 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
c52c6897 PB |
16459 | @r=`${PWD_COMMAND}`; export r; \ |
16460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 16461 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
d545f33b PB |
16462 | $(HOST_EXPORTS) \ |
16463 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16464 | echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \ | |
0aed8855 | 16465 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ |
d545f33b PB |
16466 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
16467 | case $(srcdir) in \ | |
16468 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
16469 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16470 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
16471 | esac; \ | |
16472 | srcdiroption="--srcdir=$${topdir}/ld"; \ | |
16473 | libsrcdir="$$s/ld"; \ | |
16474 | $(SHELL) $${libsrcdir}/configure \ | |
16475 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
16476 | @stage2_werror_flag@ | |
16477 | @endif ld-bootstrap | |
16478 | ||
16479 | .PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld | |
16480 | maybe-configure-stageprofile-ld: | |
16481 | @if ld-bootstrap | |
16482 | maybe-configure-stageprofile-ld: configure-stageprofile-ld | |
0aed8855 | 16483 | configure-stageprofile-ld: |
c52c6897 | 16484 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 16485 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
c52c6897 PB |
16486 | @r=`${PWD_COMMAND}`; export r; \ |
16487 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 16488 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
d545f33b PB |
16489 | $(HOST_EXPORTS) \ |
16490 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16491 | echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \ | |
0aed8855 | 16492 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ |
d545f33b PB |
16493 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
16494 | case $(srcdir) in \ | |
16495 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
16496 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16497 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
16498 | esac; \ | |
16499 | srcdiroption="--srcdir=$${topdir}/ld"; \ | |
16500 | libsrcdir="$$s/ld"; \ | |
16501 | $(SHELL) $${libsrcdir}/configure \ | |
16502 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
16503 | @stage2_werror_flag@ | |
16504 | @endif ld-bootstrap | |
16505 | ||
16506 | .PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld | |
16507 | maybe-configure-stagefeedback-ld: | |
16508 | @if ld-bootstrap | |
16509 | maybe-configure-stagefeedback-ld: configure-stagefeedback-ld | |
0aed8855 | 16510 | configure-stagefeedback-ld: |
c52c6897 | 16511 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 16512 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld |
c52c6897 PB |
16513 | @r=`${PWD_COMMAND}`; export r; \ |
16514 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 16515 | test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \ |
d545f33b PB |
16516 | $(HOST_EXPORTS) \ |
16517 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16518 | echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \ | |
0aed8855 | 16519 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \ |
d545f33b PB |
16520 | cd $(HOST_SUBDIR)/ld || exit 1; \ |
16521 | case $(srcdir) in \ | |
16522 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
16523 | *) topdir=`echo $(HOST_SUBDIR)/ld/ | \ | |
16524 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
16525 | esac; \ | |
16526 | srcdiroption="--srcdir=$${topdir}/ld"; \ | |
16527 | libsrcdir="$$s/ld"; \ | |
16528 | $(SHELL) $${libsrcdir}/configure \ | |
16529 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
16530 | @stage2_werror_flag@ | |
16531 | @endif ld-bootstrap | |
16532 | ||
16533 | ||
16534 | ||
16535 | ||
16536 | ||
b813574b PB |
16537 | .PHONY: all-ld maybe-all-ld |
16538 | maybe-all-ld: | |
16539 | @if ld | |
d27cc32e | 16540 | TARGET-ld=all |
b813574b PB |
16541 | maybe-all-ld: all-ld |
16542 | all-ld: configure-ld | |
c52c6897 PB |
16543 | @endif ld |
16544 | @if ld-bootstrap | |
16545 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
16546 | @endif ld-bootstrap | |
16547 | @if ld | |
16548 | @r=`${PWD_COMMAND}`; export r; \ | |
04cf1b77 | 16549 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 16550 | $(HOST_EXPORTS) \ |
b00612cc PB |
16551 | (cd $(HOST_SUBDIR)/ld && \ |
16552 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ld)) | |
b813574b | 16553 | @endif ld |
04cf1b77 | 16554 | |
a7254363 | 16555 | |
d545f33b PB |
16556 | |
16557 | .PHONY: all-stage1-ld maybe-all-stage1-ld | |
16558 | .PHONY: clean-stage1-ld maybe-clean-stage1-ld | |
16559 | maybe-all-stage1-ld: | |
16560 | maybe-clean-stage1-ld: | |
16561 | @if ld-bootstrap | |
16562 | maybe-all-stage1-ld: all-stage1-ld | |
16563 | all-stage1: all-stage1-ld | |
f70224b5 | 16564 | TARGET-stage1-ld = $(TARGET-ld) |
d545f33b | 16565 | all-stage1-ld: configure-stage1-ld |
c52c6897 | 16566 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
16567 | @r=`${PWD_COMMAND}`; export r; \ |
16568 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16569 | $(HOST_EXPORTS) \ | |
16570 | cd $(HOST_SUBDIR)/ld && \ | |
c52c6897 | 16571 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 16572 | $(TARGET-stage1-ld) |
d545f33b PB |
16573 | |
16574 | maybe-clean-stage1-ld: clean-stage1-ld | |
16575 | clean-stage1: clean-stage1-ld | |
16576 | clean-stage1-ld: | |
16577 | @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] \ | |
16578 | || exit 0 ; \ | |
c52c6897 | 16579 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
16580 | cd $(HOST_SUBDIR)/ld && \ |
16581 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 16582 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
16583 | @endif ld-bootstrap |
16584 | ||
16585 | ||
16586 | .PHONY: all-stage2-ld maybe-all-stage2-ld | |
16587 | .PHONY: clean-stage2-ld maybe-clean-stage2-ld | |
16588 | maybe-all-stage2-ld: | |
16589 | maybe-clean-stage2-ld: | |
16590 | @if ld-bootstrap | |
16591 | maybe-all-stage2-ld: all-stage2-ld | |
16592 | all-stage2: all-stage2-ld | |
f70224b5 | 16593 | TARGET-stage2-ld = $(TARGET-ld) |
d545f33b | 16594 | all-stage2-ld: configure-stage2-ld |
c52c6897 | 16595 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
16596 | @r=`${PWD_COMMAND}`; export r; \ |
16597 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16598 | $(HOST_EXPORTS) \ | |
16599 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16600 | cd $(HOST_SUBDIR)/ld && \ | |
f70224b5 PB |
16601 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
16602 | $(TARGET-stage2-ld) | |
d545f33b PB |
16603 | |
16604 | maybe-clean-stage2-ld: clean-stage2-ld | |
16605 | clean-stage2: clean-stage2-ld | |
16606 | clean-stage2-ld: | |
16607 | @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] \ | |
16608 | || exit 0 ; \ | |
c52c6897 | 16609 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
16610 | cd $(HOST_SUBDIR)/ld && \ |
16611 | $(MAKE) $(FLAGS_TO_PASS) \ | |
16612 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
16613 | clean | |
16614 | @endif ld-bootstrap | |
16615 | ||
16616 | ||
16617 | .PHONY: all-stage3-ld maybe-all-stage3-ld | |
16618 | .PHONY: clean-stage3-ld maybe-clean-stage3-ld | |
16619 | maybe-all-stage3-ld: | |
16620 | maybe-clean-stage3-ld: | |
16621 | @if ld-bootstrap | |
16622 | maybe-all-stage3-ld: all-stage3-ld | |
16623 | all-stage3: all-stage3-ld | |
f70224b5 | 16624 | TARGET-stage3-ld = $(TARGET-ld) |
d545f33b | 16625 | all-stage3-ld: configure-stage3-ld |
c52c6897 | 16626 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
16627 | @r=`${PWD_COMMAND}`; export r; \ |
16628 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16629 | $(HOST_EXPORTS) \ | |
16630 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16631 | cd $(HOST_SUBDIR)/ld && \ | |
f70224b5 PB |
16632 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
16633 | $(TARGET-stage3-ld) | |
d545f33b PB |
16634 | |
16635 | maybe-clean-stage3-ld: clean-stage3-ld | |
16636 | clean-stage3: clean-stage3-ld | |
16637 | clean-stage3-ld: | |
16638 | @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] \ | |
16639 | || exit 0 ; \ | |
c52c6897 | 16640 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
16641 | cd $(HOST_SUBDIR)/ld && \ |
16642 | $(MAKE) $(FLAGS_TO_PASS) \ | |
16643 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
16644 | clean | |
16645 | @endif ld-bootstrap | |
16646 | ||
16647 | ||
16648 | .PHONY: all-stage4-ld maybe-all-stage4-ld | |
16649 | .PHONY: clean-stage4-ld maybe-clean-stage4-ld | |
16650 | maybe-all-stage4-ld: | |
16651 | maybe-clean-stage4-ld: | |
16652 | @if ld-bootstrap | |
16653 | maybe-all-stage4-ld: all-stage4-ld | |
16654 | all-stage4: all-stage4-ld | |
f70224b5 | 16655 | TARGET-stage4-ld = $(TARGET-ld) |
d545f33b | 16656 | all-stage4-ld: configure-stage4-ld |
c52c6897 | 16657 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
16658 | @r=`${PWD_COMMAND}`; export r; \ |
16659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16660 | $(HOST_EXPORTS) \ | |
16661 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16662 | cd $(HOST_SUBDIR)/ld && \ | |
f70224b5 PB |
16663 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
16664 | $(TARGET-stage4-ld) | |
d545f33b PB |
16665 | |
16666 | maybe-clean-stage4-ld: clean-stage4-ld | |
16667 | clean-stage4: clean-stage4-ld | |
16668 | clean-stage4-ld: | |
16669 | @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] \ | |
16670 | || exit 0 ; \ | |
c52c6897 | 16671 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
16672 | cd $(HOST_SUBDIR)/ld && \ |
16673 | $(MAKE) $(FLAGS_TO_PASS) \ | |
16674 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
16675 | clean | |
16676 | @endif ld-bootstrap | |
16677 | ||
16678 | ||
16679 | .PHONY: all-stageprofile-ld maybe-all-stageprofile-ld | |
16680 | .PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld | |
16681 | maybe-all-stageprofile-ld: | |
16682 | maybe-clean-stageprofile-ld: | |
16683 | @if ld-bootstrap | |
16684 | maybe-all-stageprofile-ld: all-stageprofile-ld | |
16685 | all-stageprofile: all-stageprofile-ld | |
f70224b5 | 16686 | TARGET-stageprofile-ld = $(TARGET-ld) |
d545f33b | 16687 | all-stageprofile-ld: configure-stageprofile-ld |
c52c6897 | 16688 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
16689 | @r=`${PWD_COMMAND}`; export r; \ |
16690 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16691 | $(HOST_EXPORTS) \ | |
16692 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16693 | cd $(HOST_SUBDIR)/ld && \ | |
f70224b5 PB |
16694 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
16695 | $(TARGET-stageprofile-ld) | |
d545f33b PB |
16696 | |
16697 | maybe-clean-stageprofile-ld: clean-stageprofile-ld | |
16698 | clean-stageprofile: clean-stageprofile-ld | |
16699 | clean-stageprofile-ld: | |
16700 | @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] \ | |
16701 | || exit 0 ; \ | |
c52c6897 | 16702 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
16703 | cd $(HOST_SUBDIR)/ld && \ |
16704 | $(MAKE) $(FLAGS_TO_PASS) \ | |
16705 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
16706 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
16707 | @endif ld-bootstrap | |
16708 | ||
16709 | ||
16710 | .PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld | |
16711 | .PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld | |
16712 | maybe-all-stagefeedback-ld: | |
16713 | maybe-clean-stagefeedback-ld: | |
16714 | @if ld-bootstrap | |
16715 | maybe-all-stagefeedback-ld: all-stagefeedback-ld | |
16716 | all-stagefeedback: all-stagefeedback-ld | |
f70224b5 | 16717 | TARGET-stagefeedback-ld = $(TARGET-ld) |
d545f33b | 16718 | all-stagefeedback-ld: configure-stagefeedback-ld |
c52c6897 | 16719 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
16720 | @r=`${PWD_COMMAND}`; export r; \ |
16721 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16722 | $(HOST_EXPORTS) \ | |
16723 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
16724 | cd $(HOST_SUBDIR)/ld && \ | |
f70224b5 PB |
16725 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
16726 | $(TARGET-stagefeedback-ld) | |
d545f33b PB |
16727 | |
16728 | maybe-clean-stagefeedback-ld: clean-stagefeedback-ld | |
16729 | clean-stagefeedback: clean-stagefeedback-ld | |
16730 | clean-stagefeedback-ld: | |
16731 | @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] \ | |
16732 | || exit 0 ; \ | |
c52c6897 | 16733 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
16734 | cd $(HOST_SUBDIR)/ld && \ |
16735 | $(MAKE) $(FLAGS_TO_PASS) \ | |
16736 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
16737 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
16738 | @endif ld-bootstrap | |
16739 | ||
16740 | ||
16741 | ||
16742 | ||
16743 | ||
b813574b PB |
16744 | .PHONY: check-ld maybe-check-ld |
16745 | maybe-check-ld: | |
16746 | @if ld | |
16747 | maybe-check-ld: check-ld | |
04cf1b77 | 16748 | |
b813574b | 16749 | check-ld: |
0aed8855 | 16750 | @: $(MAKE); $(unstage) |
04cf1b77 PB |
16751 | @r=`${PWD_COMMAND}`; export r; \ |
16752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16753 | $(HOST_EXPORTS) \ |
b00612cc PB |
16754 | (cd $(HOST_SUBDIR)/ld && \ |
16755 | $(MAKE) $(FLAGS_TO_PASS) check) | |
04cf1b77 | 16756 | |
b813574b | 16757 | @endif ld |
04cf1b77 | 16758 | |
b813574b PB |
16759 | .PHONY: install-ld maybe-install-ld |
16760 | maybe-install-ld: | |
16761 | @if ld | |
16762 | maybe-install-ld: install-ld | |
04cf1b77 | 16763 | |
b813574b | 16764 | install-ld: installdirs |
0aed8855 | 16765 | @: $(MAKE); $(unstage) |
04cf1b77 PB |
16766 | @r=`${PWD_COMMAND}`; export r; \ |
16767 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16768 | $(HOST_EXPORTS) \ |
b00612cc | 16769 | (cd $(HOST_SUBDIR)/ld && \ |
2da12f12 | 16770 | $(MAKE) $(FLAGS_TO_PASS) install) |
04cf1b77 | 16771 | |
b813574b | 16772 | @endif ld |
04cf1b77 PB |
16773 | |
16774 | # Other targets (info, dvi, etc.) | |
16775 | ||
b813574b PB |
16776 | .PHONY: maybe-info-ld info-ld |
16777 | maybe-info-ld: | |
16778 | @if ld | |
16779 | maybe-info-ld: info-ld | |
04cf1b77 | 16780 | |
b813574b PB |
16781 | info-ld: \ |
16782 | configure-ld | |
16783 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16784 | r=`${PWD_COMMAND}`; export r; \ |
16785 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16786 | $(HOST_EXPORTS) \ |
b813574b | 16787 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16788 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16789 | done; \ | |
b813574b | 16790 | echo "Doing info in ld" ; \ |
b00612cc | 16791 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16792 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16793 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16794 | "RANLIB=$${RANLIB}" \ | |
16795 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16796 | info) \ |
04cf1b77 PB |
16797 | || exit 1 |
16798 | ||
b813574b | 16799 | @endif ld |
04cf1b77 | 16800 | |
b813574b PB |
16801 | .PHONY: maybe-dvi-ld dvi-ld |
16802 | maybe-dvi-ld: | |
16803 | @if ld | |
16804 | maybe-dvi-ld: dvi-ld | |
04cf1b77 | 16805 | |
b813574b PB |
16806 | dvi-ld: \ |
16807 | configure-ld | |
16808 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16809 | r=`${PWD_COMMAND}`; export r; \ |
16810 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16811 | $(HOST_EXPORTS) \ |
b813574b | 16812 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16813 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16814 | done; \ | |
b813574b | 16815 | echo "Doing dvi in ld" ; \ |
b00612cc | 16816 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16817 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16818 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16819 | "RANLIB=$${RANLIB}" \ | |
16820 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16821 | dvi) \ |
04cf1b77 PB |
16822 | || exit 1 |
16823 | ||
b813574b | 16824 | @endif ld |
04cf1b77 | 16825 | |
6d389afc MS |
16826 | .PHONY: maybe-html-ld html-ld |
16827 | maybe-html-ld: | |
16828 | @if ld | |
16829 | maybe-html-ld: html-ld | |
16830 | ||
16831 | html-ld: \ | |
16832 | configure-ld | |
16833 | @[ -f ./ld/Makefile ] || exit 0; \ | |
16834 | r=`${PWD_COMMAND}`; export r; \ | |
16835 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
16836 | $(HOST_EXPORTS) \ |
16837 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16838 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16839 | done; \ | |
16840 | echo "Doing html in ld" ; \ | |
b00612cc | 16841 | (cd $(HOST_SUBDIR)/ld && \ |
6d389afc MS |
16842 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16843 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16844 | "RANLIB=$${RANLIB}" \ | |
16845 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16846 | html) \ | |
16847 | || exit 1 | |
16848 | ||
16849 | @endif ld | |
16850 | ||
b813574b PB |
16851 | .PHONY: maybe-TAGS-ld TAGS-ld |
16852 | maybe-TAGS-ld: | |
16853 | @if ld | |
16854 | maybe-TAGS-ld: TAGS-ld | |
04cf1b77 | 16855 | |
b813574b PB |
16856 | TAGS-ld: \ |
16857 | configure-ld | |
16858 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16859 | r=`${PWD_COMMAND}`; export r; \ |
16860 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16861 | $(HOST_EXPORTS) \ |
b813574b | 16862 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16863 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16864 | done; \ | |
b813574b | 16865 | echo "Doing TAGS in ld" ; \ |
b00612cc | 16866 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16867 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16868 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16869 | "RANLIB=$${RANLIB}" \ | |
16870 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16871 | TAGS) \ |
04cf1b77 PB |
16872 | || exit 1 |
16873 | ||
b813574b | 16874 | @endif ld |
04cf1b77 | 16875 | |
b813574b PB |
16876 | .PHONY: maybe-install-info-ld install-info-ld |
16877 | maybe-install-info-ld: | |
16878 | @if ld | |
16879 | maybe-install-info-ld: install-info-ld | |
04cf1b77 | 16880 | |
b813574b PB |
16881 | install-info-ld: \ |
16882 | configure-ld \ | |
16883 | info-ld | |
16884 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16885 | r=`${PWD_COMMAND}`; export r; \ |
16886 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16887 | $(HOST_EXPORTS) \ |
b813574b | 16888 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16889 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16890 | done; \ | |
b813574b | 16891 | echo "Doing install-info in ld" ; \ |
b00612cc | 16892 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16893 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16894 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16895 | "RANLIB=$${RANLIB}" \ | |
16896 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16897 | install-info) \ |
04cf1b77 PB |
16898 | || exit 1 |
16899 | ||
b813574b | 16900 | @endif ld |
04cf1b77 | 16901 | |
108a6f8e CD |
16902 | .PHONY: maybe-install-html-ld install-html-ld |
16903 | maybe-install-html-ld: | |
16904 | @if ld | |
16905 | maybe-install-html-ld: install-html-ld | |
16906 | ||
16907 | install-html-ld: \ | |
16908 | configure-ld \ | |
16909 | html-ld | |
16910 | @[ -f ./ld/Makefile ] || exit 0; \ | |
16911 | r=`${PWD_COMMAND}`; export r; \ | |
16912 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
16913 | $(HOST_EXPORTS) \ | |
16914 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
16915 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
16916 | done; \ | |
16917 | echo "Doing install-html in ld" ; \ | |
16918 | (cd $(HOST_SUBDIR)/ld && \ | |
16919 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
16920 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16921 | "RANLIB=$${RANLIB}" \ | |
16922 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
16923 | install-html) \ | |
16924 | || exit 1 | |
16925 | ||
16926 | @endif ld | |
16927 | ||
b813574b PB |
16928 | .PHONY: maybe-installcheck-ld installcheck-ld |
16929 | maybe-installcheck-ld: | |
16930 | @if ld | |
16931 | maybe-installcheck-ld: installcheck-ld | |
04cf1b77 | 16932 | |
b813574b PB |
16933 | installcheck-ld: \ |
16934 | configure-ld | |
16935 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16936 | r=`${PWD_COMMAND}`; export r; \ |
16937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16938 | $(HOST_EXPORTS) \ |
b813574b | 16939 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16940 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16941 | done; \ | |
b813574b | 16942 | echo "Doing installcheck in ld" ; \ |
b00612cc | 16943 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16944 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16945 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16946 | "RANLIB=$${RANLIB}" \ | |
16947 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16948 | installcheck) \ |
04cf1b77 PB |
16949 | || exit 1 |
16950 | ||
b813574b | 16951 | @endif ld |
04cf1b77 | 16952 | |
b813574b PB |
16953 | .PHONY: maybe-mostlyclean-ld mostlyclean-ld |
16954 | maybe-mostlyclean-ld: | |
16955 | @if ld | |
16956 | maybe-mostlyclean-ld: mostlyclean-ld | |
04cf1b77 | 16957 | |
b813574b PB |
16958 | mostlyclean-ld: |
16959 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16960 | r=`${PWD_COMMAND}`; export r; \ |
16961 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16962 | $(HOST_EXPORTS) \ |
b813574b | 16963 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16964 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16965 | done; \ | |
b813574b | 16966 | echo "Doing mostlyclean in ld" ; \ |
b00612cc | 16967 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16968 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16969 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16970 | "RANLIB=$${RANLIB}" \ | |
16971 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16972 | mostlyclean) \ |
04cf1b77 PB |
16973 | || exit 1 |
16974 | ||
b813574b | 16975 | @endif ld |
04cf1b77 | 16976 | |
b813574b PB |
16977 | .PHONY: maybe-clean-ld clean-ld |
16978 | maybe-clean-ld: | |
16979 | @if ld | |
16980 | maybe-clean-ld: clean-ld | |
04cf1b77 | 16981 | |
b813574b PB |
16982 | clean-ld: |
16983 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
16984 | r=`${PWD_COMMAND}`; export r; \ |
16985 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 16986 | $(HOST_EXPORTS) \ |
b813574b | 16987 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
16988 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
16989 | done; \ | |
b813574b | 16990 | echo "Doing clean in ld" ; \ |
b00612cc | 16991 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
16992 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
16993 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
16994 | "RANLIB=$${RANLIB}" \ | |
16995 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 16996 | clean) \ |
04cf1b77 PB |
16997 | || exit 1 |
16998 | ||
b813574b | 16999 | @endif ld |
04cf1b77 | 17000 | |
b813574b PB |
17001 | .PHONY: maybe-distclean-ld distclean-ld |
17002 | maybe-distclean-ld: | |
17003 | @if ld | |
17004 | maybe-distclean-ld: distclean-ld | |
04cf1b77 | 17005 | |
b813574b PB |
17006 | distclean-ld: |
17007 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
17008 | r=`${PWD_COMMAND}`; export r; \ |
17009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17010 | $(HOST_EXPORTS) \ |
b813574b | 17011 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
17012 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17013 | done; \ | |
b813574b | 17014 | echo "Doing distclean in ld" ; \ |
b00612cc | 17015 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
17016 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17017 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17018 | "RANLIB=$${RANLIB}" \ | |
17019 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17020 | distclean) \ |
04cf1b77 PB |
17021 | || exit 1 |
17022 | ||
b813574b | 17023 | @endif ld |
04cf1b77 | 17024 | |
b813574b PB |
17025 | .PHONY: maybe-maintainer-clean-ld maintainer-clean-ld |
17026 | maybe-maintainer-clean-ld: | |
17027 | @if ld | |
17028 | maybe-maintainer-clean-ld: maintainer-clean-ld | |
04cf1b77 | 17029 | |
b813574b PB |
17030 | maintainer-clean-ld: |
17031 | @[ -f ./ld/Makefile ] || exit 0; \ | |
04cf1b77 PB |
17032 | r=`${PWD_COMMAND}`; export r; \ |
17033 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17034 | $(HOST_EXPORTS) \ |
b813574b | 17035 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
04cf1b77 PB |
17036 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17037 | done; \ | |
b813574b | 17038 | echo "Doing maintainer-clean in ld" ; \ |
b00612cc | 17039 | (cd $(HOST_SUBDIR)/ld && \ |
04cf1b77 PB |
17040 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17041 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17042 | "RANLIB=$${RANLIB}" \ | |
17043 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17044 | maintainer-clean) \ |
04cf1b77 PB |
17045 | || exit 1 |
17046 | ||
b813574b | 17047 | @endif ld |
04cf1b77 PB |
17048 | |
17049 | ||
a7254363 | 17050 | |
b813574b PB |
17051 | .PHONY: configure-libcpp maybe-configure-libcpp |
17052 | maybe-configure-libcpp: | |
17053 | @if libcpp | |
17054 | maybe-configure-libcpp: configure-libcpp | |
c52c6897 PB |
17055 | configure-libcpp: |
17056 | @endif libcpp | |
17057 | @if libcpp-bootstrap | |
17058 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
17059 | @endif libcpp-bootstrap | |
17060 | @if libcpp | |
17061 | @r=`${PWD_COMMAND}`; export r; \ | |
17062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
17063 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
17064 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ | |
378fce5b | 17065 | $(HOST_EXPORTS) \ |
a7254363 PB |
17066 | echo Configuring in $(HOST_SUBDIR)/libcpp; \ |
17067 | cd "$(HOST_SUBDIR)/libcpp" || exit 1; \ | |
4fa63067 | 17068 | case $(srcdir) in \ |
b00612cc PB |
17069 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
17070 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17071 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 17072 | esac; \ |
b00612cc PB |
17073 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ |
17074 | libsrcdir="$$s/libcpp"; \ | |
4fa63067 | 17075 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 17076 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 17077 | || exit 1 |
b813574b | 17078 | @endif libcpp |
4fa63067 | 17079 | |
a7254363 PB |
17080 | |
17081 | ||
d545f33b PB |
17082 | .PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp |
17083 | maybe-configure-stage1-libcpp: | |
17084 | @if libcpp-bootstrap | |
17085 | maybe-configure-stage1-libcpp: configure-stage1-libcpp | |
0aed8855 | 17086 | configure-stage1-libcpp: |
c52c6897 | 17087 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 17088 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
c52c6897 PB |
17089 | @r=`${PWD_COMMAND}`; export r; \ |
17090 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17091 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
d545f33b PB |
17092 | $(HOST_EXPORTS) \ |
17093 | echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \ | |
0aed8855 | 17094 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ |
d545f33b PB |
17095 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
17096 | case $(srcdir) in \ | |
17097 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17098 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17099 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17100 | esac; \ | |
17101 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ | |
17102 | libsrcdir="$$s/libcpp"; \ | |
17103 | $(SHELL) $${libsrcdir}/configure \ | |
17104 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17105 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
17106 | @endif libcpp-bootstrap | |
17107 | ||
17108 | .PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp | |
17109 | maybe-configure-stage2-libcpp: | |
17110 | @if libcpp-bootstrap | |
17111 | maybe-configure-stage2-libcpp: configure-stage2-libcpp | |
0aed8855 | 17112 | configure-stage2-libcpp: |
c52c6897 | 17113 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 17114 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
c52c6897 PB |
17115 | @r=`${PWD_COMMAND}`; export r; \ |
17116 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17117 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
d545f33b PB |
17118 | $(HOST_EXPORTS) \ |
17119 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17120 | echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \ | |
0aed8855 | 17121 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ |
d545f33b PB |
17122 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
17123 | case $(srcdir) in \ | |
17124 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17125 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17126 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17127 | esac; \ | |
17128 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ | |
17129 | libsrcdir="$$s/libcpp"; \ | |
17130 | $(SHELL) $${libsrcdir}/configure \ | |
17131 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17132 | @stage2_werror_flag@ | |
17133 | @endif libcpp-bootstrap | |
17134 | ||
17135 | .PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp | |
17136 | maybe-configure-stage3-libcpp: | |
17137 | @if libcpp-bootstrap | |
17138 | maybe-configure-stage3-libcpp: configure-stage3-libcpp | |
0aed8855 | 17139 | configure-stage3-libcpp: |
c52c6897 | 17140 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 17141 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
c52c6897 PB |
17142 | @r=`${PWD_COMMAND}`; export r; \ |
17143 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17144 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
d545f33b PB |
17145 | $(HOST_EXPORTS) \ |
17146 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17147 | echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \ | |
0aed8855 | 17148 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ |
d545f33b PB |
17149 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
17150 | case $(srcdir) in \ | |
17151 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17152 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17153 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17154 | esac; \ | |
17155 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ | |
17156 | libsrcdir="$$s/libcpp"; \ | |
17157 | $(SHELL) $${libsrcdir}/configure \ | |
17158 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17159 | @stage2_werror_flag@ | |
17160 | @endif libcpp-bootstrap | |
17161 | ||
17162 | .PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp | |
17163 | maybe-configure-stage4-libcpp: | |
17164 | @if libcpp-bootstrap | |
17165 | maybe-configure-stage4-libcpp: configure-stage4-libcpp | |
0aed8855 | 17166 | configure-stage4-libcpp: |
c52c6897 | 17167 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 17168 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
c52c6897 PB |
17169 | @r=`${PWD_COMMAND}`; export r; \ |
17170 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17171 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
d545f33b PB |
17172 | $(HOST_EXPORTS) \ |
17173 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17174 | echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \ | |
0aed8855 | 17175 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ |
d545f33b PB |
17176 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
17177 | case $(srcdir) in \ | |
17178 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17179 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17180 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17181 | esac; \ | |
17182 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ | |
17183 | libsrcdir="$$s/libcpp"; \ | |
17184 | $(SHELL) $${libsrcdir}/configure \ | |
17185 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17186 | @stage2_werror_flag@ | |
17187 | @endif libcpp-bootstrap | |
17188 | ||
17189 | .PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp | |
17190 | maybe-configure-stageprofile-libcpp: | |
17191 | @if libcpp-bootstrap | |
17192 | maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp | |
0aed8855 | 17193 | configure-stageprofile-libcpp: |
c52c6897 | 17194 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 17195 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
c52c6897 PB |
17196 | @r=`${PWD_COMMAND}`; export r; \ |
17197 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17198 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
d545f33b PB |
17199 | $(HOST_EXPORTS) \ |
17200 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17201 | echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \ | |
0aed8855 | 17202 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ |
d545f33b PB |
17203 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
17204 | case $(srcdir) in \ | |
17205 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17206 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17207 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17208 | esac; \ | |
17209 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ | |
17210 | libsrcdir="$$s/libcpp"; \ | |
17211 | $(SHELL) $${libsrcdir}/configure \ | |
17212 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17213 | @stage2_werror_flag@ | |
17214 | @endif libcpp-bootstrap | |
17215 | ||
17216 | .PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp | |
17217 | maybe-configure-stagefeedback-libcpp: | |
17218 | @if libcpp-bootstrap | |
17219 | maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp | |
0aed8855 | 17220 | configure-stagefeedback-libcpp: |
c52c6897 | 17221 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 17222 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp |
c52c6897 PB |
17223 | @r=`${PWD_COMMAND}`; export r; \ |
17224 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17225 | test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \ |
d545f33b PB |
17226 | $(HOST_EXPORTS) \ |
17227 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17228 | echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \ | |
0aed8855 | 17229 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \ |
d545f33b PB |
17230 | cd $(HOST_SUBDIR)/libcpp || exit 1; \ |
17231 | case $(srcdir) in \ | |
17232 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17233 | *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \ | |
17234 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17235 | esac; \ | |
17236 | srcdiroption="--srcdir=$${topdir}/libcpp"; \ | |
17237 | libsrcdir="$$s/libcpp"; \ | |
17238 | $(SHELL) $${libsrcdir}/configure \ | |
17239 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17240 | @stage2_werror_flag@ | |
17241 | @endif libcpp-bootstrap | |
17242 | ||
17243 | ||
17244 | ||
17245 | ||
17246 | ||
b813574b PB |
17247 | .PHONY: all-libcpp maybe-all-libcpp |
17248 | maybe-all-libcpp: | |
17249 | @if libcpp | |
d27cc32e | 17250 | TARGET-libcpp=all |
b813574b PB |
17251 | maybe-all-libcpp: all-libcpp |
17252 | all-libcpp: configure-libcpp | |
c52c6897 PB |
17253 | @endif libcpp |
17254 | @if libcpp-bootstrap | |
17255 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
17256 | @endif libcpp-bootstrap | |
17257 | @if libcpp | |
17258 | @r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 17259 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 17260 | $(HOST_EXPORTS) \ |
b00612cc PB |
17261 | (cd $(HOST_SUBDIR)/libcpp && \ |
17262 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libcpp)) | |
b813574b | 17263 | @endif libcpp |
4fa63067 | 17264 | |
a7254363 | 17265 | |
d545f33b PB |
17266 | |
17267 | .PHONY: all-stage1-libcpp maybe-all-stage1-libcpp | |
17268 | .PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp | |
17269 | maybe-all-stage1-libcpp: | |
17270 | maybe-clean-stage1-libcpp: | |
17271 | @if libcpp-bootstrap | |
17272 | maybe-all-stage1-libcpp: all-stage1-libcpp | |
17273 | all-stage1: all-stage1-libcpp | |
f70224b5 | 17274 | TARGET-stage1-libcpp = $(TARGET-libcpp) |
d545f33b | 17275 | all-stage1-libcpp: configure-stage1-libcpp |
c52c6897 | 17276 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
17277 | @r=`${PWD_COMMAND}`; export r; \ |
17278 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17279 | $(HOST_EXPORTS) \ | |
17280 | cd $(HOST_SUBDIR)/libcpp && \ | |
c52c6897 | 17281 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 17282 | $(TARGET-stage1-libcpp) |
d545f33b PB |
17283 | |
17284 | maybe-clean-stage1-libcpp: clean-stage1-libcpp | |
17285 | clean-stage1: clean-stage1-libcpp | |
17286 | clean-stage1-libcpp: | |
17287 | @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] \ | |
17288 | || exit 0 ; \ | |
c52c6897 | 17289 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
17290 | cd $(HOST_SUBDIR)/libcpp && \ |
17291 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 17292 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
17293 | @endif libcpp-bootstrap |
17294 | ||
17295 | ||
17296 | .PHONY: all-stage2-libcpp maybe-all-stage2-libcpp | |
17297 | .PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp | |
17298 | maybe-all-stage2-libcpp: | |
17299 | maybe-clean-stage2-libcpp: | |
17300 | @if libcpp-bootstrap | |
17301 | maybe-all-stage2-libcpp: all-stage2-libcpp | |
17302 | all-stage2: all-stage2-libcpp | |
f70224b5 | 17303 | TARGET-stage2-libcpp = $(TARGET-libcpp) |
d545f33b | 17304 | all-stage2-libcpp: configure-stage2-libcpp |
c52c6897 | 17305 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
17306 | @r=`${PWD_COMMAND}`; export r; \ |
17307 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17308 | $(HOST_EXPORTS) \ | |
17309 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17310 | cd $(HOST_SUBDIR)/libcpp && \ | |
f70224b5 PB |
17311 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
17312 | $(TARGET-stage2-libcpp) | |
d545f33b PB |
17313 | |
17314 | maybe-clean-stage2-libcpp: clean-stage2-libcpp | |
17315 | clean-stage2: clean-stage2-libcpp | |
17316 | clean-stage2-libcpp: | |
17317 | @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] \ | |
17318 | || exit 0 ; \ | |
c52c6897 | 17319 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
17320 | cd $(HOST_SUBDIR)/libcpp && \ |
17321 | $(MAKE) $(FLAGS_TO_PASS) \ | |
17322 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
17323 | clean | |
17324 | @endif libcpp-bootstrap | |
17325 | ||
17326 | ||
17327 | .PHONY: all-stage3-libcpp maybe-all-stage3-libcpp | |
17328 | .PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp | |
17329 | maybe-all-stage3-libcpp: | |
17330 | maybe-clean-stage3-libcpp: | |
17331 | @if libcpp-bootstrap | |
17332 | maybe-all-stage3-libcpp: all-stage3-libcpp | |
17333 | all-stage3: all-stage3-libcpp | |
f70224b5 | 17334 | TARGET-stage3-libcpp = $(TARGET-libcpp) |
d545f33b | 17335 | all-stage3-libcpp: configure-stage3-libcpp |
c52c6897 | 17336 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
17337 | @r=`${PWD_COMMAND}`; export r; \ |
17338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17339 | $(HOST_EXPORTS) \ | |
17340 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17341 | cd $(HOST_SUBDIR)/libcpp && \ | |
f70224b5 PB |
17342 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
17343 | $(TARGET-stage3-libcpp) | |
d545f33b PB |
17344 | |
17345 | maybe-clean-stage3-libcpp: clean-stage3-libcpp | |
17346 | clean-stage3: clean-stage3-libcpp | |
17347 | clean-stage3-libcpp: | |
17348 | @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] \ | |
17349 | || exit 0 ; \ | |
c52c6897 | 17350 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
17351 | cd $(HOST_SUBDIR)/libcpp && \ |
17352 | $(MAKE) $(FLAGS_TO_PASS) \ | |
17353 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
17354 | clean | |
17355 | @endif libcpp-bootstrap | |
17356 | ||
17357 | ||
17358 | .PHONY: all-stage4-libcpp maybe-all-stage4-libcpp | |
17359 | .PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp | |
17360 | maybe-all-stage4-libcpp: | |
17361 | maybe-clean-stage4-libcpp: | |
17362 | @if libcpp-bootstrap | |
17363 | maybe-all-stage4-libcpp: all-stage4-libcpp | |
17364 | all-stage4: all-stage4-libcpp | |
f70224b5 | 17365 | TARGET-stage4-libcpp = $(TARGET-libcpp) |
d545f33b | 17366 | all-stage4-libcpp: configure-stage4-libcpp |
c52c6897 | 17367 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
17368 | @r=`${PWD_COMMAND}`; export r; \ |
17369 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17370 | $(HOST_EXPORTS) \ | |
17371 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17372 | cd $(HOST_SUBDIR)/libcpp && \ | |
f70224b5 PB |
17373 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
17374 | $(TARGET-stage4-libcpp) | |
d545f33b PB |
17375 | |
17376 | maybe-clean-stage4-libcpp: clean-stage4-libcpp | |
17377 | clean-stage4: clean-stage4-libcpp | |
17378 | clean-stage4-libcpp: | |
17379 | @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] \ | |
17380 | || exit 0 ; \ | |
c52c6897 | 17381 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
17382 | cd $(HOST_SUBDIR)/libcpp && \ |
17383 | $(MAKE) $(FLAGS_TO_PASS) \ | |
17384 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
17385 | clean | |
17386 | @endif libcpp-bootstrap | |
17387 | ||
17388 | ||
17389 | .PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp | |
17390 | .PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp | |
17391 | maybe-all-stageprofile-libcpp: | |
17392 | maybe-clean-stageprofile-libcpp: | |
17393 | @if libcpp-bootstrap | |
17394 | maybe-all-stageprofile-libcpp: all-stageprofile-libcpp | |
17395 | all-stageprofile: all-stageprofile-libcpp | |
f70224b5 | 17396 | TARGET-stageprofile-libcpp = $(TARGET-libcpp) |
d545f33b | 17397 | all-stageprofile-libcpp: configure-stageprofile-libcpp |
c52c6897 | 17398 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
17399 | @r=`${PWD_COMMAND}`; export r; \ |
17400 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17401 | $(HOST_EXPORTS) \ | |
17402 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17403 | cd $(HOST_SUBDIR)/libcpp && \ | |
f70224b5 PB |
17404 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
17405 | $(TARGET-stageprofile-libcpp) | |
d545f33b PB |
17406 | |
17407 | maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp | |
17408 | clean-stageprofile: clean-stageprofile-libcpp | |
17409 | clean-stageprofile-libcpp: | |
17410 | @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] \ | |
17411 | || exit 0 ; \ | |
c52c6897 | 17412 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
17413 | cd $(HOST_SUBDIR)/libcpp && \ |
17414 | $(MAKE) $(FLAGS_TO_PASS) \ | |
17415 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
17416 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
17417 | @endif libcpp-bootstrap | |
17418 | ||
17419 | ||
17420 | .PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp | |
17421 | .PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp | |
17422 | maybe-all-stagefeedback-libcpp: | |
17423 | maybe-clean-stagefeedback-libcpp: | |
17424 | @if libcpp-bootstrap | |
17425 | maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp | |
17426 | all-stagefeedback: all-stagefeedback-libcpp | |
f70224b5 | 17427 | TARGET-stagefeedback-libcpp = $(TARGET-libcpp) |
d545f33b | 17428 | all-stagefeedback-libcpp: configure-stagefeedback-libcpp |
c52c6897 | 17429 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
17430 | @r=`${PWD_COMMAND}`; export r; \ |
17431 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17432 | $(HOST_EXPORTS) \ | |
17433 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17434 | cd $(HOST_SUBDIR)/libcpp && \ | |
f70224b5 PB |
17435 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
17436 | $(TARGET-stagefeedback-libcpp) | |
d545f33b PB |
17437 | |
17438 | maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp | |
17439 | clean-stagefeedback: clean-stagefeedback-libcpp | |
17440 | clean-stagefeedback-libcpp: | |
17441 | @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] \ | |
17442 | || exit 0 ; \ | |
c52c6897 | 17443 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
17444 | cd $(HOST_SUBDIR)/libcpp && \ |
17445 | $(MAKE) $(FLAGS_TO_PASS) \ | |
17446 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
17447 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
17448 | @endif libcpp-bootstrap | |
17449 | ||
17450 | ||
17451 | ||
17452 | ||
17453 | ||
b813574b PB |
17454 | .PHONY: check-libcpp maybe-check-libcpp |
17455 | maybe-check-libcpp: | |
17456 | @if libcpp | |
17457 | maybe-check-libcpp: check-libcpp | |
4fa63067 | 17458 | |
b813574b | 17459 | check-libcpp: |
0aed8855 | 17460 | @: $(MAKE); $(unstage) |
4fa63067 NN |
17461 | @r=`${PWD_COMMAND}`; export r; \ |
17462 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17463 | $(HOST_EXPORTS) \ |
b00612cc PB |
17464 | (cd $(HOST_SUBDIR)/libcpp && \ |
17465 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 17466 | |
b813574b | 17467 | @endif libcpp |
4fa63067 | 17468 | |
b813574b PB |
17469 | .PHONY: install-libcpp maybe-install-libcpp |
17470 | maybe-install-libcpp: | |
17471 | @if libcpp | |
17472 | maybe-install-libcpp: install-libcpp | |
17473 | ||
17474 | install-libcpp: installdirs | |
0aed8855 | 17475 | @: $(MAKE); $(unstage) |
4fa63067 NN |
17476 | @r=`${PWD_COMMAND}`; export r; \ |
17477 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17478 | $(HOST_EXPORTS) \ |
b00612cc | 17479 | (cd $(HOST_SUBDIR)/libcpp && \ |
2da12f12 | 17480 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 17481 | |
b813574b | 17482 | @endif libcpp |
4fa63067 NN |
17483 | |
17484 | # Other targets (info, dvi, etc.) | |
17485 | ||
b813574b PB |
17486 | .PHONY: maybe-info-libcpp info-libcpp |
17487 | maybe-info-libcpp: | |
17488 | @if libcpp | |
17489 | maybe-info-libcpp: info-libcpp | |
4fa63067 | 17490 | |
b813574b PB |
17491 | info-libcpp: \ |
17492 | configure-libcpp | |
17493 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17494 | r=`${PWD_COMMAND}`; export r; \ |
17495 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17496 | $(HOST_EXPORTS) \ |
b813574b | 17497 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17498 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17499 | done; \ | |
b813574b | 17500 | echo "Doing info in libcpp" ; \ |
b00612cc | 17501 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17502 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17503 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17504 | "RANLIB=$${RANLIB}" \ | |
17505 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17506 | info) \ |
2a4cbe27 NN |
17507 | || exit 1 |
17508 | ||
b813574b | 17509 | @endif libcpp |
2a4cbe27 | 17510 | |
b813574b PB |
17511 | .PHONY: maybe-dvi-libcpp dvi-libcpp |
17512 | maybe-dvi-libcpp: | |
17513 | @if libcpp | |
17514 | maybe-dvi-libcpp: dvi-libcpp | |
2a4cbe27 | 17515 | |
b813574b PB |
17516 | dvi-libcpp: \ |
17517 | configure-libcpp | |
17518 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17519 | r=`${PWD_COMMAND}`; export r; \ |
17520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17521 | $(HOST_EXPORTS) \ |
b813574b | 17522 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17523 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17524 | done; \ | |
b813574b | 17525 | echo "Doing dvi in libcpp" ; \ |
b00612cc | 17526 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17527 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17528 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17529 | "RANLIB=$${RANLIB}" \ | |
17530 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17531 | dvi) \ |
2a4cbe27 NN |
17532 | || exit 1 |
17533 | ||
b813574b | 17534 | @endif libcpp |
2a4cbe27 | 17535 | |
6d389afc MS |
17536 | .PHONY: maybe-html-libcpp html-libcpp |
17537 | maybe-html-libcpp: | |
17538 | @if libcpp | |
17539 | maybe-html-libcpp: html-libcpp | |
17540 | ||
17541 | html-libcpp: \ | |
17542 | configure-libcpp | |
17543 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
17544 | r=`${PWD_COMMAND}`; export r; \ | |
17545 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
17546 | $(HOST_EXPORTS) \ |
17547 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17548 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17549 | done; \ | |
17550 | echo "Doing html in libcpp" ; \ | |
b00612cc | 17551 | (cd $(HOST_SUBDIR)/libcpp && \ |
6d389afc MS |
17552 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17553 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17554 | "RANLIB=$${RANLIB}" \ | |
17555 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
17556 | html) \ | |
17557 | || exit 1 | |
17558 | ||
17559 | @endif libcpp | |
17560 | ||
b813574b PB |
17561 | .PHONY: maybe-TAGS-libcpp TAGS-libcpp |
17562 | maybe-TAGS-libcpp: | |
17563 | @if libcpp | |
17564 | maybe-TAGS-libcpp: TAGS-libcpp | |
2a4cbe27 | 17565 | |
b813574b PB |
17566 | TAGS-libcpp: \ |
17567 | configure-libcpp | |
17568 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17569 | r=`${PWD_COMMAND}`; export r; \ |
17570 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17571 | $(HOST_EXPORTS) \ |
b813574b | 17572 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17573 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17574 | done; \ | |
b813574b | 17575 | echo "Doing TAGS in libcpp" ; \ |
b00612cc | 17576 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17577 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17578 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17579 | "RANLIB=$${RANLIB}" \ | |
17580 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17581 | TAGS) \ |
2a4cbe27 NN |
17582 | || exit 1 |
17583 | ||
b813574b | 17584 | @endif libcpp |
2a4cbe27 | 17585 | |
b813574b PB |
17586 | .PHONY: maybe-install-info-libcpp install-info-libcpp |
17587 | maybe-install-info-libcpp: | |
17588 | @if libcpp | |
17589 | maybe-install-info-libcpp: install-info-libcpp | |
2a4cbe27 | 17590 | |
b813574b PB |
17591 | install-info-libcpp: \ |
17592 | configure-libcpp \ | |
17593 | info-libcpp | |
17594 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17595 | r=`${PWD_COMMAND}`; export r; \ |
17596 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17597 | $(HOST_EXPORTS) \ |
b813574b | 17598 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17599 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17600 | done; \ | |
b813574b | 17601 | echo "Doing install-info in libcpp" ; \ |
b00612cc | 17602 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17603 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17604 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17605 | "RANLIB=$${RANLIB}" \ | |
17606 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17607 | install-info) \ |
2a4cbe27 NN |
17608 | || exit 1 |
17609 | ||
b813574b | 17610 | @endif libcpp |
2a4cbe27 | 17611 | |
108a6f8e CD |
17612 | .PHONY: maybe-install-html-libcpp install-html-libcpp |
17613 | maybe-install-html-libcpp: | |
17614 | @if libcpp | |
17615 | maybe-install-html-libcpp: install-html-libcpp | |
17616 | ||
17617 | install-html-libcpp: \ | |
17618 | configure-libcpp \ | |
17619 | html-libcpp | |
17620 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
17621 | r=`${PWD_COMMAND}`; export r; \ | |
17622 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17623 | $(HOST_EXPORTS) \ | |
17624 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
17625 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
17626 | done; \ | |
17627 | echo "Doing install-html in libcpp" ; \ | |
17628 | (cd $(HOST_SUBDIR)/libcpp && \ | |
17629 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
17630 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17631 | "RANLIB=$${RANLIB}" \ | |
17632 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
17633 | install-html) \ | |
17634 | || exit 1 | |
17635 | ||
17636 | @endif libcpp | |
17637 | ||
b813574b PB |
17638 | .PHONY: maybe-installcheck-libcpp installcheck-libcpp |
17639 | maybe-installcheck-libcpp: | |
17640 | @if libcpp | |
17641 | maybe-installcheck-libcpp: installcheck-libcpp | |
2a4cbe27 | 17642 | |
b813574b PB |
17643 | installcheck-libcpp: \ |
17644 | configure-libcpp | |
17645 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17646 | r=`${PWD_COMMAND}`; export r; \ |
17647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17648 | $(HOST_EXPORTS) \ |
b813574b | 17649 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17650 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17651 | done; \ | |
b813574b | 17652 | echo "Doing installcheck in libcpp" ; \ |
b00612cc | 17653 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17654 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17655 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17656 | "RANLIB=$${RANLIB}" \ | |
17657 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17658 | installcheck) \ |
2a4cbe27 NN |
17659 | || exit 1 |
17660 | ||
b813574b | 17661 | @endif libcpp |
2a4cbe27 | 17662 | |
b813574b PB |
17663 | .PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp |
17664 | maybe-mostlyclean-libcpp: | |
17665 | @if libcpp | |
17666 | maybe-mostlyclean-libcpp: mostlyclean-libcpp | |
2a4cbe27 | 17667 | |
b813574b PB |
17668 | mostlyclean-libcpp: |
17669 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17670 | r=`${PWD_COMMAND}`; export r; \ |
17671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17672 | $(HOST_EXPORTS) \ |
b813574b | 17673 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17674 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17675 | done; \ | |
b813574b | 17676 | echo "Doing mostlyclean in libcpp" ; \ |
b00612cc | 17677 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17678 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17679 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17680 | "RANLIB=$${RANLIB}" \ | |
17681 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17682 | mostlyclean) \ |
2a4cbe27 NN |
17683 | || exit 1 |
17684 | ||
b813574b | 17685 | @endif libcpp |
2a4cbe27 | 17686 | |
b813574b PB |
17687 | .PHONY: maybe-clean-libcpp clean-libcpp |
17688 | maybe-clean-libcpp: | |
17689 | @if libcpp | |
17690 | maybe-clean-libcpp: clean-libcpp | |
2a4cbe27 | 17691 | |
b813574b PB |
17692 | clean-libcpp: |
17693 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17694 | r=`${PWD_COMMAND}`; export r; \ |
17695 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17696 | $(HOST_EXPORTS) \ |
b813574b | 17697 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17698 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17699 | done; \ | |
b813574b | 17700 | echo "Doing clean in libcpp" ; \ |
b00612cc | 17701 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17702 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17703 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17704 | "RANLIB=$${RANLIB}" \ | |
17705 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17706 | clean) \ |
2a4cbe27 NN |
17707 | || exit 1 |
17708 | ||
b813574b | 17709 | @endif libcpp |
2a4cbe27 | 17710 | |
b813574b PB |
17711 | .PHONY: maybe-distclean-libcpp distclean-libcpp |
17712 | maybe-distclean-libcpp: | |
17713 | @if libcpp | |
17714 | maybe-distclean-libcpp: distclean-libcpp | |
2a4cbe27 | 17715 | |
b813574b PB |
17716 | distclean-libcpp: |
17717 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17718 | r=`${PWD_COMMAND}`; export r; \ |
17719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17720 | $(HOST_EXPORTS) \ |
b813574b | 17721 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17722 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17723 | done; \ | |
b813574b | 17724 | echo "Doing distclean in libcpp" ; \ |
b00612cc | 17725 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17726 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17727 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17728 | "RANLIB=$${RANLIB}" \ | |
17729 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17730 | distclean) \ |
2a4cbe27 NN |
17731 | || exit 1 |
17732 | ||
b813574b | 17733 | @endif libcpp |
2a4cbe27 | 17734 | |
b813574b PB |
17735 | .PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp |
17736 | maybe-maintainer-clean-libcpp: | |
17737 | @if libcpp | |
17738 | maybe-maintainer-clean-libcpp: maintainer-clean-libcpp | |
2a4cbe27 | 17739 | |
b813574b PB |
17740 | maintainer-clean-libcpp: |
17741 | @[ -f ./libcpp/Makefile ] || exit 0; \ | |
b40e3958 L |
17742 | r=`${PWD_COMMAND}`; export r; \ |
17743 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 17744 | $(HOST_EXPORTS) \ |
b813574b | 17745 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
17746 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
17747 | done; \ | |
b813574b | 17748 | echo "Doing maintainer-clean in libcpp" ; \ |
b00612cc | 17749 | (cd $(HOST_SUBDIR)/libcpp && \ |
2a4cbe27 NN |
17750 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
17751 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
17752 | "RANLIB=$${RANLIB}" \ | |
17753 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 17754 | maintainer-clean) \ |
2a4cbe27 NN |
17755 | || exit 1 |
17756 | ||
b813574b | 17757 | @endif libcpp |
2a4cbe27 | 17758 | |
2a4cbe27 | 17759 | |
a7254363 | 17760 | |
be01d343 PB |
17761 | .PHONY: configure-libdecnumber maybe-configure-libdecnumber |
17762 | maybe-configure-libdecnumber: | |
17763 | @if libdecnumber | |
17764 | maybe-configure-libdecnumber: configure-libdecnumber | |
c52c6897 PB |
17765 | configure-libdecnumber: |
17766 | @endif libdecnumber | |
17767 | @if libdecnumber-bootstrap | |
17768 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
17769 | @endif libdecnumber-bootstrap | |
17770 | @if libdecnumber | |
17771 | @r=`${PWD_COMMAND}`; export r; \ | |
17772 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
be01d343 PB |
17773 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
17774 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ | |
be01d343 PB |
17775 | $(HOST_EXPORTS) \ |
17776 | echo Configuring in $(HOST_SUBDIR)/libdecnumber; \ | |
17777 | cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \ | |
17778 | case $(srcdir) in \ | |
17779 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17780 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17781 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17782 | esac; \ | |
17783 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17784 | libsrcdir="$$s/libdecnumber"; \ | |
17785 | $(SHELL) $${libsrcdir}/configure \ | |
17786 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17787 | || exit 1 | |
17788 | @endif libdecnumber | |
17789 | ||
17790 | ||
17791 | ||
17792 | .PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber | |
17793 | maybe-configure-stage1-libdecnumber: | |
17794 | @if libdecnumber-bootstrap | |
17795 | maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber | |
0aed8855 | 17796 | configure-stage1-libdecnumber: |
c52c6897 | 17797 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 17798 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
c52c6897 PB |
17799 | @r=`${PWD_COMMAND}`; export r; \ |
17800 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17801 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
be01d343 PB |
17802 | $(HOST_EXPORTS) \ |
17803 | echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \ | |
0aed8855 | 17804 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ |
be01d343 PB |
17805 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
17806 | case $(srcdir) in \ | |
17807 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17808 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17809 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17810 | esac; \ | |
17811 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17812 | libsrcdir="$$s/libdecnumber"; \ | |
17813 | $(SHELL) $${libsrcdir}/configure \ | |
17814 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17815 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
17816 | @endif libdecnumber-bootstrap | |
17817 | ||
17818 | .PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber | |
17819 | maybe-configure-stage2-libdecnumber: | |
17820 | @if libdecnumber-bootstrap | |
17821 | maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber | |
0aed8855 | 17822 | configure-stage2-libdecnumber: |
c52c6897 | 17823 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 17824 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
c52c6897 PB |
17825 | @r=`${PWD_COMMAND}`; export r; \ |
17826 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17827 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
be01d343 PB |
17828 | $(HOST_EXPORTS) \ |
17829 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17830 | echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \ | |
0aed8855 | 17831 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ |
be01d343 PB |
17832 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
17833 | case $(srcdir) in \ | |
17834 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17835 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17836 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17837 | esac; \ | |
17838 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17839 | libsrcdir="$$s/libdecnumber"; \ | |
17840 | $(SHELL) $${libsrcdir}/configure \ | |
17841 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17842 | @stage2_werror_flag@ | |
17843 | @endif libdecnumber-bootstrap | |
17844 | ||
17845 | .PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber | |
17846 | maybe-configure-stage3-libdecnumber: | |
17847 | @if libdecnumber-bootstrap | |
17848 | maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber | |
0aed8855 | 17849 | configure-stage3-libdecnumber: |
c52c6897 | 17850 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 17851 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
c52c6897 PB |
17852 | @r=`${PWD_COMMAND}`; export r; \ |
17853 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17854 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
be01d343 PB |
17855 | $(HOST_EXPORTS) \ |
17856 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17857 | echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \ | |
0aed8855 | 17858 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ |
be01d343 PB |
17859 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
17860 | case $(srcdir) in \ | |
17861 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17862 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17863 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17864 | esac; \ | |
17865 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17866 | libsrcdir="$$s/libdecnumber"; \ | |
17867 | $(SHELL) $${libsrcdir}/configure \ | |
17868 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17869 | @stage2_werror_flag@ | |
17870 | @endif libdecnumber-bootstrap | |
17871 | ||
17872 | .PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber | |
17873 | maybe-configure-stage4-libdecnumber: | |
17874 | @if libdecnumber-bootstrap | |
17875 | maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber | |
0aed8855 | 17876 | configure-stage4-libdecnumber: |
c52c6897 | 17877 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 17878 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
c52c6897 PB |
17879 | @r=`${PWD_COMMAND}`; export r; \ |
17880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17881 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
be01d343 PB |
17882 | $(HOST_EXPORTS) \ |
17883 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17884 | echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \ | |
0aed8855 | 17885 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ |
be01d343 PB |
17886 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
17887 | case $(srcdir) in \ | |
17888 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17889 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17890 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17891 | esac; \ | |
17892 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17893 | libsrcdir="$$s/libdecnumber"; \ | |
17894 | $(SHELL) $${libsrcdir}/configure \ | |
17895 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17896 | @stage2_werror_flag@ | |
17897 | @endif libdecnumber-bootstrap | |
17898 | ||
17899 | .PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber | |
17900 | maybe-configure-stageprofile-libdecnumber: | |
17901 | @if libdecnumber-bootstrap | |
17902 | maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber | |
0aed8855 | 17903 | configure-stageprofile-libdecnumber: |
c52c6897 | 17904 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 17905 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
c52c6897 PB |
17906 | @r=`${PWD_COMMAND}`; export r; \ |
17907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17908 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
be01d343 PB |
17909 | $(HOST_EXPORTS) \ |
17910 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17911 | echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \ | |
0aed8855 | 17912 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ |
be01d343 PB |
17913 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
17914 | case $(srcdir) in \ | |
17915 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17916 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17917 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17918 | esac; \ | |
17919 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17920 | libsrcdir="$$s/libdecnumber"; \ | |
17921 | $(SHELL) $${libsrcdir}/configure \ | |
17922 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17923 | @stage2_werror_flag@ | |
17924 | @endif libdecnumber-bootstrap | |
17925 | ||
17926 | .PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber | |
17927 | maybe-configure-stagefeedback-libdecnumber: | |
17928 | @if libdecnumber-bootstrap | |
17929 | maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber | |
0aed8855 | 17930 | configure-stagefeedback-libdecnumber: |
c52c6897 | 17931 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 17932 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber |
c52c6897 PB |
17933 | @r=`${PWD_COMMAND}`; export r; \ |
17934 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 17935 | test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \ |
be01d343 PB |
17936 | $(HOST_EXPORTS) \ |
17937 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
17938 | echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \ | |
0aed8855 | 17939 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \ |
be01d343 PB |
17940 | cd $(HOST_SUBDIR)/libdecnumber || exit 1; \ |
17941 | case $(srcdir) in \ | |
17942 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
17943 | *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \ | |
17944 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
17945 | esac; \ | |
17946 | srcdiroption="--srcdir=$${topdir}/libdecnumber"; \ | |
17947 | libsrcdir="$$s/libdecnumber"; \ | |
17948 | $(SHELL) $${libsrcdir}/configure \ | |
17949 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
17950 | @stage2_werror_flag@ | |
17951 | @endif libdecnumber-bootstrap | |
17952 | ||
17953 | ||
17954 | ||
17955 | ||
17956 | ||
17957 | .PHONY: all-libdecnumber maybe-all-libdecnumber | |
17958 | maybe-all-libdecnumber: | |
17959 | @if libdecnumber | |
17960 | TARGET-libdecnumber=all | |
17961 | maybe-all-libdecnumber: all-libdecnumber | |
17962 | all-libdecnumber: configure-libdecnumber | |
c52c6897 PB |
17963 | @endif libdecnumber |
17964 | @if libdecnumber-bootstrap | |
17965 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
17966 | @endif libdecnumber-bootstrap | |
17967 | @if libdecnumber | |
17968 | @r=`${PWD_COMMAND}`; export r; \ | |
be01d343 PB |
17969 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
17970 | $(HOST_EXPORTS) \ | |
17971 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
17972 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libdecnumber)) | |
17973 | @endif libdecnumber | |
17974 | ||
17975 | ||
17976 | ||
17977 | .PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber | |
17978 | .PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber | |
17979 | maybe-all-stage1-libdecnumber: | |
17980 | maybe-clean-stage1-libdecnumber: | |
17981 | @if libdecnumber-bootstrap | |
17982 | maybe-all-stage1-libdecnumber: all-stage1-libdecnumber | |
17983 | all-stage1: all-stage1-libdecnumber | |
17984 | TARGET-stage1-libdecnumber = $(TARGET-libdecnumber) | |
17985 | all-stage1-libdecnumber: configure-stage1-libdecnumber | |
c52c6897 | 17986 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
be01d343 PB |
17987 | @r=`${PWD_COMMAND}`; export r; \ |
17988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
17989 | $(HOST_EXPORTS) \ | |
17990 | cd $(HOST_SUBDIR)/libdecnumber && \ | |
c52c6897 | 17991 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
be01d343 PB |
17992 | $(TARGET-stage1-libdecnumber) |
17993 | ||
17994 | maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber | |
17995 | clean-stage1: clean-stage1-libdecnumber | |
17996 | clean-stage1-libdecnumber: | |
17997 | @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] \ | |
17998 | || exit 0 ; \ | |
c52c6897 | 17999 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
be01d343 PB |
18000 | cd $(HOST_SUBDIR)/libdecnumber && \ |
18001 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 18002 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
be01d343 PB |
18003 | @endif libdecnumber-bootstrap |
18004 | ||
18005 | ||
18006 | .PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber | |
18007 | .PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber | |
18008 | maybe-all-stage2-libdecnumber: | |
18009 | maybe-clean-stage2-libdecnumber: | |
18010 | @if libdecnumber-bootstrap | |
18011 | maybe-all-stage2-libdecnumber: all-stage2-libdecnumber | |
18012 | all-stage2: all-stage2-libdecnumber | |
18013 | TARGET-stage2-libdecnumber = $(TARGET-libdecnumber) | |
18014 | all-stage2-libdecnumber: configure-stage2-libdecnumber | |
c52c6897 | 18015 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
be01d343 PB |
18016 | @r=`${PWD_COMMAND}`; export r; \ |
18017 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18018 | $(HOST_EXPORTS) \ | |
18019 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18020 | cd $(HOST_SUBDIR)/libdecnumber && \ | |
18021 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18022 | $(TARGET-stage2-libdecnumber) | |
18023 | ||
18024 | maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber | |
18025 | clean-stage2: clean-stage2-libdecnumber | |
18026 | clean-stage2-libdecnumber: | |
18027 | @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] \ | |
18028 | || exit 0 ; \ | |
c52c6897 | 18029 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
be01d343 PB |
18030 | cd $(HOST_SUBDIR)/libdecnumber && \ |
18031 | $(MAKE) $(FLAGS_TO_PASS) \ | |
18032 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18033 | clean | |
18034 | @endif libdecnumber-bootstrap | |
18035 | ||
18036 | ||
18037 | .PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber | |
18038 | .PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber | |
18039 | maybe-all-stage3-libdecnumber: | |
18040 | maybe-clean-stage3-libdecnumber: | |
18041 | @if libdecnumber-bootstrap | |
18042 | maybe-all-stage3-libdecnumber: all-stage3-libdecnumber | |
18043 | all-stage3: all-stage3-libdecnumber | |
18044 | TARGET-stage3-libdecnumber = $(TARGET-libdecnumber) | |
18045 | all-stage3-libdecnumber: configure-stage3-libdecnumber | |
c52c6897 | 18046 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
be01d343 PB |
18047 | @r=`${PWD_COMMAND}`; export r; \ |
18048 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18049 | $(HOST_EXPORTS) \ | |
18050 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18051 | cd $(HOST_SUBDIR)/libdecnumber && \ | |
18052 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18053 | $(TARGET-stage3-libdecnumber) | |
18054 | ||
18055 | maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber | |
18056 | clean-stage3: clean-stage3-libdecnumber | |
18057 | clean-stage3-libdecnumber: | |
18058 | @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] \ | |
18059 | || exit 0 ; \ | |
c52c6897 | 18060 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
be01d343 PB |
18061 | cd $(HOST_SUBDIR)/libdecnumber && \ |
18062 | $(MAKE) $(FLAGS_TO_PASS) \ | |
18063 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18064 | clean | |
18065 | @endif libdecnumber-bootstrap | |
18066 | ||
18067 | ||
18068 | .PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber | |
18069 | .PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber | |
18070 | maybe-all-stage4-libdecnumber: | |
18071 | maybe-clean-stage4-libdecnumber: | |
18072 | @if libdecnumber-bootstrap | |
18073 | maybe-all-stage4-libdecnumber: all-stage4-libdecnumber | |
18074 | all-stage4: all-stage4-libdecnumber | |
18075 | TARGET-stage4-libdecnumber = $(TARGET-libdecnumber) | |
18076 | all-stage4-libdecnumber: configure-stage4-libdecnumber | |
c52c6897 | 18077 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
be01d343 PB |
18078 | @r=`${PWD_COMMAND}`; export r; \ |
18079 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18080 | $(HOST_EXPORTS) \ | |
18081 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18082 | cd $(HOST_SUBDIR)/libdecnumber && \ | |
18083 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18084 | $(TARGET-stage4-libdecnumber) | |
18085 | ||
18086 | maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber | |
18087 | clean-stage4: clean-stage4-libdecnumber | |
18088 | clean-stage4-libdecnumber: | |
18089 | @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] \ | |
18090 | || exit 0 ; \ | |
c52c6897 | 18091 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
be01d343 PB |
18092 | cd $(HOST_SUBDIR)/libdecnumber && \ |
18093 | $(MAKE) $(FLAGS_TO_PASS) \ | |
18094 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18095 | clean | |
18096 | @endif libdecnumber-bootstrap | |
18097 | ||
18098 | ||
18099 | .PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber | |
18100 | .PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber | |
18101 | maybe-all-stageprofile-libdecnumber: | |
18102 | maybe-clean-stageprofile-libdecnumber: | |
18103 | @if libdecnumber-bootstrap | |
18104 | maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber | |
18105 | all-stageprofile: all-stageprofile-libdecnumber | |
18106 | TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber) | |
18107 | all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber | |
c52c6897 | 18108 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
be01d343 PB |
18109 | @r=`${PWD_COMMAND}`; export r; \ |
18110 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18111 | $(HOST_EXPORTS) \ | |
18112 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18113 | cd $(HOST_SUBDIR)/libdecnumber && \ | |
18114 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ | |
18115 | $(TARGET-stageprofile-libdecnumber) | |
18116 | ||
18117 | maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber | |
18118 | clean-stageprofile: clean-stageprofile-libdecnumber | |
18119 | clean-stageprofile-libdecnumber: | |
18120 | @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] \ | |
18121 | || exit 0 ; \ | |
c52c6897 | 18122 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
be01d343 PB |
18123 | cd $(HOST_SUBDIR)/libdecnumber && \ |
18124 | $(MAKE) $(FLAGS_TO_PASS) \ | |
18125 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18126 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
18127 | @endif libdecnumber-bootstrap | |
18128 | ||
18129 | ||
18130 | .PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber | |
18131 | .PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber | |
18132 | maybe-all-stagefeedback-libdecnumber: | |
18133 | maybe-clean-stagefeedback-libdecnumber: | |
18134 | @if libdecnumber-bootstrap | |
18135 | maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber | |
18136 | all-stagefeedback: all-stagefeedback-libdecnumber | |
18137 | TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber) | |
18138 | all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber | |
c52c6897 | 18139 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
be01d343 PB |
18140 | @r=`${PWD_COMMAND}`; export r; \ |
18141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18142 | $(HOST_EXPORTS) \ | |
18143 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18144 | cd $(HOST_SUBDIR)/libdecnumber && \ | |
18145 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ | |
18146 | $(TARGET-stagefeedback-libdecnumber) | |
18147 | ||
18148 | maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber | |
18149 | clean-stagefeedback: clean-stagefeedback-libdecnumber | |
18150 | clean-stagefeedback-libdecnumber: | |
18151 | @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] \ | |
18152 | || exit 0 ; \ | |
c52c6897 | 18153 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
be01d343 PB |
18154 | cd $(HOST_SUBDIR)/libdecnumber && \ |
18155 | $(MAKE) $(FLAGS_TO_PASS) \ | |
18156 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
18157 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
18158 | @endif libdecnumber-bootstrap | |
18159 | ||
18160 | ||
18161 | ||
18162 | ||
18163 | ||
18164 | .PHONY: check-libdecnumber maybe-check-libdecnumber | |
18165 | maybe-check-libdecnumber: | |
18166 | @if libdecnumber | |
18167 | maybe-check-libdecnumber: check-libdecnumber | |
18168 | ||
18169 | check-libdecnumber: | |
0aed8855 | 18170 | @: $(MAKE); $(unstage) |
be01d343 PB |
18171 | @r=`${PWD_COMMAND}`; export r; \ |
18172 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18173 | $(HOST_EXPORTS) \ | |
18174 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18175 | $(MAKE) $(FLAGS_TO_PASS) check) | |
18176 | ||
18177 | @endif libdecnumber | |
18178 | ||
18179 | .PHONY: install-libdecnumber maybe-install-libdecnumber | |
18180 | maybe-install-libdecnumber: | |
18181 | @if libdecnumber | |
18182 | maybe-install-libdecnumber: install-libdecnumber | |
18183 | ||
18184 | install-libdecnumber: installdirs | |
0aed8855 | 18185 | @: $(MAKE); $(unstage) |
be01d343 PB |
18186 | @r=`${PWD_COMMAND}`; export r; \ |
18187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18188 | $(HOST_EXPORTS) \ | |
18189 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18190 | $(MAKE) $(FLAGS_TO_PASS) install) | |
18191 | ||
18192 | @endif libdecnumber | |
18193 | ||
18194 | # Other targets (info, dvi, etc.) | |
18195 | ||
18196 | .PHONY: maybe-info-libdecnumber info-libdecnumber | |
18197 | maybe-info-libdecnumber: | |
18198 | @if libdecnumber | |
18199 | maybe-info-libdecnumber: info-libdecnumber | |
18200 | ||
18201 | info-libdecnumber: \ | |
18202 | configure-libdecnumber | |
18203 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18204 | r=`${PWD_COMMAND}`; export r; \ | |
18205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18206 | $(HOST_EXPORTS) \ | |
18207 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18208 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18209 | done; \ | |
18210 | echo "Doing info in libdecnumber" ; \ | |
18211 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
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}" \ | |
18216 | info) \ | |
18217 | || exit 1 | |
18218 | ||
18219 | @endif libdecnumber | |
18220 | ||
18221 | .PHONY: maybe-dvi-libdecnumber dvi-libdecnumber | |
18222 | maybe-dvi-libdecnumber: | |
18223 | @if libdecnumber | |
18224 | maybe-dvi-libdecnumber: dvi-libdecnumber | |
18225 | ||
18226 | dvi-libdecnumber: \ | |
18227 | configure-libdecnumber | |
18228 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18229 | r=`${PWD_COMMAND}`; export r; \ | |
18230 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18231 | $(HOST_EXPORTS) \ | |
18232 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18233 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18234 | done; \ | |
18235 | echo "Doing dvi in libdecnumber" ; \ | |
18236 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18237 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18238 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18239 | "RANLIB=$${RANLIB}" \ | |
18240 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18241 | dvi) \ | |
18242 | || exit 1 | |
18243 | ||
18244 | @endif libdecnumber | |
18245 | ||
18246 | .PHONY: maybe-html-libdecnumber html-libdecnumber | |
18247 | maybe-html-libdecnumber: | |
18248 | @if libdecnumber | |
18249 | maybe-html-libdecnumber: html-libdecnumber | |
18250 | ||
18251 | html-libdecnumber: \ | |
18252 | configure-libdecnumber | |
18253 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18254 | r=`${PWD_COMMAND}`; export r; \ | |
18255 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18256 | $(HOST_EXPORTS) \ | |
18257 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18258 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18259 | done; \ | |
18260 | echo "Doing html in libdecnumber" ; \ | |
18261 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18262 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18263 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18264 | "RANLIB=$${RANLIB}" \ | |
18265 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18266 | html) \ | |
18267 | || exit 1 | |
18268 | ||
18269 | @endif libdecnumber | |
18270 | ||
18271 | .PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber | |
18272 | maybe-TAGS-libdecnumber: | |
18273 | @if libdecnumber | |
18274 | maybe-TAGS-libdecnumber: TAGS-libdecnumber | |
18275 | ||
18276 | TAGS-libdecnumber: \ | |
18277 | configure-libdecnumber | |
18278 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18279 | r=`${PWD_COMMAND}`; export r; \ | |
18280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18281 | $(HOST_EXPORTS) \ | |
18282 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18283 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18284 | done; \ | |
18285 | echo "Doing TAGS in libdecnumber" ; \ | |
18286 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
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}" \ | |
18291 | TAGS) \ | |
18292 | || exit 1 | |
18293 | ||
18294 | @endif libdecnumber | |
18295 | ||
18296 | .PHONY: maybe-install-info-libdecnumber install-info-libdecnumber | |
18297 | maybe-install-info-libdecnumber: | |
18298 | @if libdecnumber | |
18299 | maybe-install-info-libdecnumber: install-info-libdecnumber | |
18300 | ||
18301 | install-info-libdecnumber: \ | |
18302 | configure-libdecnumber \ | |
18303 | info-libdecnumber | |
18304 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18305 | r=`${PWD_COMMAND}`; export r; \ | |
18306 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18307 | $(HOST_EXPORTS) \ | |
18308 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18309 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18310 | done; \ | |
18311 | echo "Doing install-info in libdecnumber" ; \ | |
18312 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18313 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18314 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18315 | "RANLIB=$${RANLIB}" \ | |
18316 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18317 | install-info) \ | |
18318 | || exit 1 | |
18319 | ||
18320 | @endif libdecnumber | |
18321 | ||
108a6f8e CD |
18322 | .PHONY: maybe-install-html-libdecnumber install-html-libdecnumber |
18323 | maybe-install-html-libdecnumber: | |
18324 | @if libdecnumber | |
18325 | maybe-install-html-libdecnumber: install-html-libdecnumber | |
18326 | ||
18327 | install-html-libdecnumber: \ | |
18328 | configure-libdecnumber \ | |
18329 | html-libdecnumber | |
18330 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18331 | r=`${PWD_COMMAND}`; export r; \ | |
18332 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18333 | $(HOST_EXPORTS) \ | |
18334 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18335 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18336 | done; \ | |
18337 | echo "Doing install-html in libdecnumber" ; \ | |
18338 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18339 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18340 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18341 | "RANLIB=$${RANLIB}" \ | |
18342 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18343 | install-html) \ | |
18344 | || exit 1 | |
18345 | ||
18346 | @endif libdecnumber | |
18347 | ||
be01d343 PB |
18348 | .PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber |
18349 | maybe-installcheck-libdecnumber: | |
18350 | @if libdecnumber | |
18351 | maybe-installcheck-libdecnumber: installcheck-libdecnumber | |
18352 | ||
18353 | installcheck-libdecnumber: \ | |
18354 | configure-libdecnumber | |
18355 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18356 | r=`${PWD_COMMAND}`; export r; \ | |
18357 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18358 | $(HOST_EXPORTS) \ | |
18359 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18360 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18361 | done; \ | |
18362 | echo "Doing installcheck in libdecnumber" ; \ | |
18363 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18364 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18365 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18366 | "RANLIB=$${RANLIB}" \ | |
18367 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18368 | installcheck) \ | |
18369 | || exit 1 | |
18370 | ||
18371 | @endif libdecnumber | |
18372 | ||
18373 | .PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber | |
18374 | maybe-mostlyclean-libdecnumber: | |
18375 | @if libdecnumber | |
18376 | maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber | |
18377 | ||
18378 | mostlyclean-libdecnumber: | |
18379 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18380 | r=`${PWD_COMMAND}`; export r; \ | |
18381 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18382 | $(HOST_EXPORTS) \ | |
18383 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18384 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18385 | done; \ | |
18386 | echo "Doing mostlyclean in libdecnumber" ; \ | |
18387 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18388 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18389 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18390 | "RANLIB=$${RANLIB}" \ | |
18391 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18392 | mostlyclean) \ | |
18393 | || exit 1 | |
18394 | ||
18395 | @endif libdecnumber | |
18396 | ||
18397 | .PHONY: maybe-clean-libdecnumber clean-libdecnumber | |
18398 | maybe-clean-libdecnumber: | |
18399 | @if libdecnumber | |
18400 | maybe-clean-libdecnumber: clean-libdecnumber | |
18401 | ||
18402 | clean-libdecnumber: | |
18403 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18404 | r=`${PWD_COMMAND}`; export r; \ | |
18405 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18406 | $(HOST_EXPORTS) \ | |
18407 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18408 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18409 | done; \ | |
18410 | echo "Doing clean in libdecnumber" ; \ | |
18411 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18412 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18413 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18414 | "RANLIB=$${RANLIB}" \ | |
18415 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18416 | clean) \ | |
18417 | || exit 1 | |
18418 | ||
18419 | @endif libdecnumber | |
18420 | ||
18421 | .PHONY: maybe-distclean-libdecnumber distclean-libdecnumber | |
18422 | maybe-distclean-libdecnumber: | |
18423 | @if libdecnumber | |
18424 | maybe-distclean-libdecnumber: distclean-libdecnumber | |
18425 | ||
18426 | distclean-libdecnumber: | |
18427 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18428 | r=`${PWD_COMMAND}`; export r; \ | |
18429 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18430 | $(HOST_EXPORTS) \ | |
18431 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18432 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18433 | done; \ | |
18434 | echo "Doing distclean in libdecnumber" ; \ | |
18435 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18436 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18437 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18438 | "RANLIB=$${RANLIB}" \ | |
18439 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18440 | distclean) \ | |
18441 | || exit 1 | |
18442 | ||
18443 | @endif libdecnumber | |
18444 | ||
18445 | .PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber | |
18446 | maybe-maintainer-clean-libdecnumber: | |
18447 | @if libdecnumber | |
18448 | maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber | |
18449 | ||
18450 | maintainer-clean-libdecnumber: | |
18451 | @[ -f ./libdecnumber/Makefile ] || exit 0; \ | |
18452 | r=`${PWD_COMMAND}`; export r; \ | |
18453 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18454 | $(HOST_EXPORTS) \ | |
18455 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18456 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18457 | done; \ | |
18458 | echo "Doing maintainer-clean in libdecnumber" ; \ | |
18459 | (cd $(HOST_SUBDIR)/libdecnumber && \ | |
18460 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18461 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18462 | "RANLIB=$${RANLIB}" \ | |
18463 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18464 | maintainer-clean) \ | |
18465 | || exit 1 | |
18466 | ||
18467 | @endif libdecnumber | |
18468 | ||
18469 | ||
18470 | ||
b813574b PB |
18471 | .PHONY: configure-libgui maybe-configure-libgui |
18472 | maybe-configure-libgui: | |
18473 | @if libgui | |
18474 | maybe-configure-libgui: configure-libgui | |
c52c6897 | 18475 | configure-libgui: |
0aed8855 | 18476 | @: $(MAKE); $(unstage) |
c52c6897 | 18477 | @r=`${PWD_COMMAND}`; export r; \ |
4b1cb4fe | 18478 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
18479 | test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \ |
18480 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \ | |
378fce5b | 18481 | $(HOST_EXPORTS) \ |
a7254363 PB |
18482 | echo Configuring in $(HOST_SUBDIR)/libgui; \ |
18483 | cd "$(HOST_SUBDIR)/libgui" || exit 1; \ | |
4b1cb4fe | 18484 | case $(srcdir) in \ |
b00612cc PB |
18485 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
18486 | *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \ | |
18487 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4b1cb4fe | 18488 | esac; \ |
b00612cc PB |
18489 | srcdiroption="--srcdir=$${topdir}/libgui"; \ |
18490 | libsrcdir="$$s/libgui"; \ | |
4b1cb4fe | 18491 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 18492 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4b1cb4fe | 18493 | || exit 1 |
b813574b | 18494 | @endif libgui |
4b1cb4fe | 18495 | |
a7254363 PB |
18496 | |
18497 | ||
d545f33b PB |
18498 | |
18499 | ||
b813574b PB |
18500 | .PHONY: all-libgui maybe-all-libgui |
18501 | maybe-all-libgui: | |
18502 | @if libgui | |
d27cc32e | 18503 | TARGET-libgui=all |
b813574b PB |
18504 | maybe-all-libgui: all-libgui |
18505 | all-libgui: configure-libgui | |
0aed8855 | 18506 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
18507 | @r=`${PWD_COMMAND}`; export r; \ |
18508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18509 | $(HOST_EXPORTS) \ |
b00612cc PB |
18510 | (cd $(HOST_SUBDIR)/libgui && \ |
18511 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgui)) | |
b813574b | 18512 | @endif libgui |
4b1cb4fe | 18513 | |
a7254363 | 18514 | |
d545f33b PB |
18515 | |
18516 | ||
b813574b PB |
18517 | .PHONY: check-libgui maybe-check-libgui |
18518 | maybe-check-libgui: | |
18519 | @if libgui | |
18520 | maybe-check-libgui: check-libgui | |
4b1cb4fe | 18521 | |
b813574b | 18522 | check-libgui: |
0aed8855 | 18523 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
18524 | @r=`${PWD_COMMAND}`; export r; \ |
18525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18526 | $(HOST_EXPORTS) \ |
b00612cc PB |
18527 | (cd $(HOST_SUBDIR)/libgui && \ |
18528 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4b1cb4fe | 18529 | |
b813574b | 18530 | @endif libgui |
4b1cb4fe | 18531 | |
b813574b PB |
18532 | .PHONY: install-libgui maybe-install-libgui |
18533 | maybe-install-libgui: | |
18534 | @if libgui | |
18535 | maybe-install-libgui: install-libgui | |
4b1cb4fe | 18536 | |
b813574b | 18537 | install-libgui: installdirs |
0aed8855 | 18538 | @: $(MAKE); $(unstage) |
b813574b PB |
18539 | @r=`${PWD_COMMAND}`; export r; \ |
18540 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 18541 | $(HOST_EXPORTS) \ |
b00612cc | 18542 | (cd $(HOST_SUBDIR)/libgui && \ |
2da12f12 | 18543 | $(MAKE) $(FLAGS_TO_PASS) install) |
4b1cb4fe | 18544 | |
b813574b | 18545 | @endif libgui |
4b1cb4fe DD |
18546 | |
18547 | # Other targets (info, dvi, etc.) | |
18548 | ||
b813574b PB |
18549 | .PHONY: maybe-info-libgui info-libgui |
18550 | maybe-info-libgui: | |
18551 | @if libgui | |
18552 | maybe-info-libgui: info-libgui | |
4b1cb4fe | 18553 | |
b813574b PB |
18554 | info-libgui: \ |
18555 | configure-libgui | |
0aed8855 | 18556 | @: $(MAKE); $(unstage) |
b813574b | 18557 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18558 | r=`${PWD_COMMAND}`; export r; \ |
18559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18560 | $(HOST_EXPORTS) \ |
b813574b | 18561 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18562 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18563 | done; \ | |
b813574b | 18564 | echo "Doing info in libgui" ; \ |
b00612cc | 18565 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18566 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18567 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18568 | "RANLIB=$${RANLIB}" \ | |
18569 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18570 | info) \ |
4b1cb4fe DD |
18571 | || exit 1 |
18572 | ||
b813574b | 18573 | @endif libgui |
4b1cb4fe | 18574 | |
b813574b PB |
18575 | .PHONY: maybe-dvi-libgui dvi-libgui |
18576 | maybe-dvi-libgui: | |
18577 | @if libgui | |
18578 | maybe-dvi-libgui: dvi-libgui | |
4b1cb4fe | 18579 | |
b813574b PB |
18580 | dvi-libgui: \ |
18581 | configure-libgui | |
0aed8855 | 18582 | @: $(MAKE); $(unstage) |
b813574b | 18583 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18584 | r=`${PWD_COMMAND}`; export r; \ |
18585 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18586 | $(HOST_EXPORTS) \ |
b813574b | 18587 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18588 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18589 | done; \ | |
b813574b | 18590 | echo "Doing dvi in libgui" ; \ |
b00612cc | 18591 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18592 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18593 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18594 | "RANLIB=$${RANLIB}" \ | |
18595 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18596 | dvi) \ |
4b1cb4fe DD |
18597 | || exit 1 |
18598 | ||
b813574b | 18599 | @endif libgui |
4b1cb4fe | 18600 | |
6d389afc MS |
18601 | .PHONY: maybe-html-libgui html-libgui |
18602 | maybe-html-libgui: | |
18603 | @if libgui | |
18604 | maybe-html-libgui: html-libgui | |
18605 | ||
18606 | html-libgui: \ | |
18607 | configure-libgui | |
0aed8855 | 18608 | @: $(MAKE); $(unstage) |
6d389afc MS |
18609 | @[ -f ./libgui/Makefile ] || exit 0; \ |
18610 | r=`${PWD_COMMAND}`; export r; \ | |
18611 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
18612 | $(HOST_EXPORTS) \ |
18613 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18614 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18615 | done; \ | |
18616 | echo "Doing html in libgui" ; \ | |
b00612cc | 18617 | (cd $(HOST_SUBDIR)/libgui && \ |
6d389afc MS |
18618 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18619 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18620 | "RANLIB=$${RANLIB}" \ | |
18621 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18622 | html) \ | |
18623 | || exit 1 | |
18624 | ||
18625 | @endif libgui | |
18626 | ||
b813574b PB |
18627 | .PHONY: maybe-TAGS-libgui TAGS-libgui |
18628 | maybe-TAGS-libgui: | |
18629 | @if libgui | |
18630 | maybe-TAGS-libgui: TAGS-libgui | |
4b1cb4fe | 18631 | |
b813574b PB |
18632 | TAGS-libgui: \ |
18633 | configure-libgui | |
0aed8855 | 18634 | @: $(MAKE); $(unstage) |
b813574b | 18635 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18636 | r=`${PWD_COMMAND}`; export r; \ |
18637 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18638 | $(HOST_EXPORTS) \ |
b813574b | 18639 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18640 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18641 | done; \ | |
b813574b | 18642 | echo "Doing TAGS in libgui" ; \ |
b00612cc | 18643 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18644 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18645 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18646 | "RANLIB=$${RANLIB}" \ | |
18647 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18648 | TAGS) \ |
4b1cb4fe DD |
18649 | || exit 1 |
18650 | ||
b813574b | 18651 | @endif libgui |
4b1cb4fe | 18652 | |
b813574b PB |
18653 | .PHONY: maybe-install-info-libgui install-info-libgui |
18654 | maybe-install-info-libgui: | |
18655 | @if libgui | |
18656 | maybe-install-info-libgui: install-info-libgui | |
4b1cb4fe | 18657 | |
b813574b PB |
18658 | install-info-libgui: \ |
18659 | configure-libgui \ | |
18660 | info-libgui | |
0aed8855 | 18661 | @: $(MAKE); $(unstage) |
b813574b | 18662 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18663 | r=`${PWD_COMMAND}`; export r; \ |
18664 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18665 | $(HOST_EXPORTS) \ |
b813574b | 18666 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18667 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18668 | done; \ | |
b813574b | 18669 | echo "Doing install-info in libgui" ; \ |
b00612cc | 18670 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18671 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18672 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18673 | "RANLIB=$${RANLIB}" \ | |
18674 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18675 | install-info) \ |
4b1cb4fe DD |
18676 | || exit 1 |
18677 | ||
b813574b | 18678 | @endif libgui |
4b1cb4fe | 18679 | |
108a6f8e CD |
18680 | .PHONY: maybe-install-html-libgui install-html-libgui |
18681 | maybe-install-html-libgui: | |
18682 | @if libgui | |
18683 | maybe-install-html-libgui: install-html-libgui | |
18684 | ||
18685 | install-html-libgui: \ | |
18686 | configure-libgui \ | |
18687 | html-libgui | |
18688 | @: $(MAKE); $(unstage) | |
18689 | @[ -f ./libgui/Makefile ] || exit 0; \ | |
18690 | r=`${PWD_COMMAND}`; export r; \ | |
18691 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
18692 | $(HOST_EXPORTS) \ | |
18693 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
18694 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
18695 | done; \ | |
18696 | echo "Doing install-html in libgui" ; \ | |
18697 | (cd $(HOST_SUBDIR)/libgui && \ | |
18698 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
18699 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18700 | "RANLIB=$${RANLIB}" \ | |
18701 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
18702 | install-html) \ | |
18703 | || exit 1 | |
18704 | ||
18705 | @endif libgui | |
18706 | ||
b813574b PB |
18707 | .PHONY: maybe-installcheck-libgui installcheck-libgui |
18708 | maybe-installcheck-libgui: | |
18709 | @if libgui | |
18710 | maybe-installcheck-libgui: installcheck-libgui | |
4b1cb4fe | 18711 | |
b813574b PB |
18712 | installcheck-libgui: \ |
18713 | configure-libgui | |
0aed8855 | 18714 | @: $(MAKE); $(unstage) |
b813574b | 18715 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18716 | r=`${PWD_COMMAND}`; export r; \ |
18717 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18718 | $(HOST_EXPORTS) \ |
b813574b | 18719 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18720 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18721 | done; \ | |
b813574b | 18722 | echo "Doing installcheck in libgui" ; \ |
b00612cc | 18723 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18724 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18725 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18726 | "RANLIB=$${RANLIB}" \ | |
18727 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18728 | installcheck) \ |
4b1cb4fe DD |
18729 | || exit 1 |
18730 | ||
b813574b | 18731 | @endif libgui |
4b1cb4fe | 18732 | |
b813574b PB |
18733 | .PHONY: maybe-mostlyclean-libgui mostlyclean-libgui |
18734 | maybe-mostlyclean-libgui: | |
18735 | @if libgui | |
18736 | maybe-mostlyclean-libgui: mostlyclean-libgui | |
4b1cb4fe | 18737 | |
b813574b | 18738 | mostlyclean-libgui: |
0aed8855 | 18739 | @: $(MAKE); $(unstage) |
b813574b | 18740 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18741 | r=`${PWD_COMMAND}`; export r; \ |
18742 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18743 | $(HOST_EXPORTS) \ |
b813574b | 18744 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18745 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18746 | done; \ | |
b813574b | 18747 | echo "Doing mostlyclean in libgui" ; \ |
b00612cc | 18748 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18749 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18750 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18751 | "RANLIB=$${RANLIB}" \ | |
18752 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18753 | mostlyclean) \ |
4b1cb4fe DD |
18754 | || exit 1 |
18755 | ||
b813574b | 18756 | @endif libgui |
4b1cb4fe | 18757 | |
b813574b PB |
18758 | .PHONY: maybe-clean-libgui clean-libgui |
18759 | maybe-clean-libgui: | |
18760 | @if libgui | |
18761 | maybe-clean-libgui: clean-libgui | |
4b1cb4fe | 18762 | |
b813574b | 18763 | clean-libgui: |
0aed8855 | 18764 | @: $(MAKE); $(unstage) |
b813574b | 18765 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18766 | r=`${PWD_COMMAND}`; export r; \ |
18767 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18768 | $(HOST_EXPORTS) \ |
b813574b | 18769 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18770 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18771 | done; \ | |
b813574b | 18772 | echo "Doing clean in libgui" ; \ |
b00612cc | 18773 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18774 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18775 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18776 | "RANLIB=$${RANLIB}" \ | |
18777 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18778 | clean) \ |
4b1cb4fe DD |
18779 | || exit 1 |
18780 | ||
b813574b | 18781 | @endif libgui |
4b1cb4fe | 18782 | |
b813574b PB |
18783 | .PHONY: maybe-distclean-libgui distclean-libgui |
18784 | maybe-distclean-libgui: | |
18785 | @if libgui | |
18786 | maybe-distclean-libgui: distclean-libgui | |
4b1cb4fe | 18787 | |
b813574b | 18788 | distclean-libgui: |
0aed8855 | 18789 | @: $(MAKE); $(unstage) |
b813574b | 18790 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18791 | r=`${PWD_COMMAND}`; export r; \ |
18792 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18793 | $(HOST_EXPORTS) \ |
b813574b | 18794 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18795 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18796 | done; \ | |
b813574b | 18797 | echo "Doing distclean in libgui" ; \ |
b00612cc | 18798 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18799 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18800 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18801 | "RANLIB=$${RANLIB}" \ | |
18802 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18803 | distclean) \ |
4b1cb4fe DD |
18804 | || exit 1 |
18805 | ||
b813574b | 18806 | @endif libgui |
4b1cb4fe | 18807 | |
b813574b PB |
18808 | .PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui |
18809 | maybe-maintainer-clean-libgui: | |
18810 | @if libgui | |
18811 | maybe-maintainer-clean-libgui: maintainer-clean-libgui | |
4b1cb4fe | 18812 | |
b813574b | 18813 | maintainer-clean-libgui: |
0aed8855 | 18814 | @: $(MAKE); $(unstage) |
b813574b | 18815 | @[ -f ./libgui/Makefile ] || exit 0; \ |
4b1cb4fe DD |
18816 | r=`${PWD_COMMAND}`; export r; \ |
18817 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 18818 | $(HOST_EXPORTS) \ |
b813574b | 18819 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4b1cb4fe DD |
18820 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
18821 | done; \ | |
b813574b | 18822 | echo "Doing maintainer-clean in libgui" ; \ |
b00612cc | 18823 | (cd $(HOST_SUBDIR)/libgui && \ |
4b1cb4fe DD |
18824 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
18825 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
18826 | "RANLIB=$${RANLIB}" \ | |
18827 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 18828 | maintainer-clean) \ |
4b1cb4fe DD |
18829 | || exit 1 |
18830 | ||
b813574b | 18831 | @endif libgui |
4b1cb4fe DD |
18832 | |
18833 | ||
a7254363 | 18834 | |
b813574b PB |
18835 | .PHONY: configure-libiberty maybe-configure-libiberty |
18836 | maybe-configure-libiberty: | |
18837 | @if libiberty | |
18838 | maybe-configure-libiberty: configure-libiberty | |
c52c6897 PB |
18839 | configure-libiberty: |
18840 | @endif libiberty | |
18841 | @if libiberty-bootstrap | |
18842 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
18843 | @endif libiberty-bootstrap | |
18844 | @if libiberty | |
18845 | @r=`${PWD_COMMAND}`; export r; \ | |
18846 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
18847 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
18848 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ | |
378fce5b | 18849 | $(HOST_EXPORTS) \ |
a7254363 PB |
18850 | echo Configuring in $(HOST_SUBDIR)/libiberty; \ |
18851 | cd "$(HOST_SUBDIR)/libiberty" || exit 1; \ | |
4fa63067 | 18852 | case $(srcdir) in \ |
b00612cc PB |
18853 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
18854 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
18855 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 18856 | esac; \ |
b00612cc PB |
18857 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
18858 | libsrcdir="$$s/libiberty"; \ | |
4fa63067 | 18859 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 18860 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 18861 | || exit 1 |
b813574b | 18862 | @endif libiberty |
2a4cbe27 | 18863 | |
a7254363 PB |
18864 | |
18865 | ||
d545f33b PB |
18866 | .PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty |
18867 | maybe-configure-stage1-libiberty: | |
18868 | @if libiberty-bootstrap | |
18869 | maybe-configure-stage1-libiberty: configure-stage1-libiberty | |
0aed8855 | 18870 | configure-stage1-libiberty: |
c52c6897 | 18871 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 18872 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
c52c6897 PB |
18873 | @r=`${PWD_COMMAND}`; export r; \ |
18874 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 18875 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
d545f33b PB |
18876 | $(HOST_EXPORTS) \ |
18877 | echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \ | |
0aed8855 | 18878 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ |
d545f33b PB |
18879 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
18880 | case $(srcdir) in \ | |
18881 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
18882 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
18883 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
18884 | esac; \ | |
18885 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
18886 | libsrcdir="$$s/libiberty"; \ | |
18887 | $(SHELL) $${libsrcdir}/configure \ | |
18888 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
18889 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
18890 | @endif libiberty-bootstrap | |
18891 | ||
18892 | .PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty | |
18893 | maybe-configure-stage2-libiberty: | |
18894 | @if libiberty-bootstrap | |
18895 | maybe-configure-stage2-libiberty: configure-stage2-libiberty | |
0aed8855 | 18896 | configure-stage2-libiberty: |
c52c6897 | 18897 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 18898 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
c52c6897 PB |
18899 | @r=`${PWD_COMMAND}`; export r; \ |
18900 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 18901 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
d545f33b PB |
18902 | $(HOST_EXPORTS) \ |
18903 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18904 | echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \ | |
0aed8855 | 18905 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ |
d545f33b PB |
18906 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
18907 | case $(srcdir) in \ | |
18908 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
18909 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
18910 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
18911 | esac; \ | |
18912 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
18913 | libsrcdir="$$s/libiberty"; \ | |
18914 | $(SHELL) $${libsrcdir}/configure \ | |
18915 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
18916 | @stage2_werror_flag@ | |
18917 | @endif libiberty-bootstrap | |
18918 | ||
18919 | .PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty | |
18920 | maybe-configure-stage3-libiberty: | |
18921 | @if libiberty-bootstrap | |
18922 | maybe-configure-stage3-libiberty: configure-stage3-libiberty | |
0aed8855 | 18923 | configure-stage3-libiberty: |
c52c6897 | 18924 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 18925 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
c52c6897 PB |
18926 | @r=`${PWD_COMMAND}`; export r; \ |
18927 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 18928 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
d545f33b PB |
18929 | $(HOST_EXPORTS) \ |
18930 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18931 | echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \ | |
0aed8855 | 18932 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ |
d545f33b PB |
18933 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
18934 | case $(srcdir) in \ | |
18935 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
18936 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
18937 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
18938 | esac; \ | |
18939 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
18940 | libsrcdir="$$s/libiberty"; \ | |
18941 | $(SHELL) $${libsrcdir}/configure \ | |
18942 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
18943 | @stage2_werror_flag@ | |
18944 | @endif libiberty-bootstrap | |
18945 | ||
18946 | .PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty | |
18947 | maybe-configure-stage4-libiberty: | |
18948 | @if libiberty-bootstrap | |
18949 | maybe-configure-stage4-libiberty: configure-stage4-libiberty | |
0aed8855 | 18950 | configure-stage4-libiberty: |
c52c6897 | 18951 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 18952 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
c52c6897 PB |
18953 | @r=`${PWD_COMMAND}`; export r; \ |
18954 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 18955 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
d545f33b PB |
18956 | $(HOST_EXPORTS) \ |
18957 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18958 | echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \ | |
0aed8855 | 18959 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ |
d545f33b PB |
18960 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
18961 | case $(srcdir) in \ | |
18962 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
18963 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
18964 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
18965 | esac; \ | |
18966 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
18967 | libsrcdir="$$s/libiberty"; \ | |
18968 | $(SHELL) $${libsrcdir}/configure \ | |
18969 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
18970 | @stage2_werror_flag@ | |
18971 | @endif libiberty-bootstrap | |
18972 | ||
18973 | .PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty | |
18974 | maybe-configure-stageprofile-libiberty: | |
18975 | @if libiberty-bootstrap | |
18976 | maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty | |
0aed8855 | 18977 | configure-stageprofile-libiberty: |
c52c6897 | 18978 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 18979 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
c52c6897 PB |
18980 | @r=`${PWD_COMMAND}`; export r; \ |
18981 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 18982 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
d545f33b PB |
18983 | $(HOST_EXPORTS) \ |
18984 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
18985 | echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \ | |
0aed8855 | 18986 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ |
d545f33b PB |
18987 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
18988 | case $(srcdir) in \ | |
18989 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
18990 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
18991 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
18992 | esac; \ | |
18993 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
18994 | libsrcdir="$$s/libiberty"; \ | |
18995 | $(SHELL) $${libsrcdir}/configure \ | |
18996 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
18997 | @stage2_werror_flag@ | |
18998 | @endif libiberty-bootstrap | |
18999 | ||
19000 | .PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty | |
19001 | maybe-configure-stagefeedback-libiberty: | |
19002 | @if libiberty-bootstrap | |
19003 | maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty | |
0aed8855 | 19004 | configure-stagefeedback-libiberty: |
c52c6897 | 19005 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 19006 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty |
c52c6897 PB |
19007 | @r=`${PWD_COMMAND}`; export r; \ |
19008 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 19009 | test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \ |
d545f33b PB |
19010 | $(HOST_EXPORTS) \ |
19011 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19012 | echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \ | |
0aed8855 | 19013 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \ |
d545f33b PB |
19014 | cd $(HOST_SUBDIR)/libiberty || exit 1; \ |
19015 | case $(srcdir) in \ | |
19016 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
19017 | *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \ | |
19018 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
19019 | esac; \ | |
19020 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
19021 | libsrcdir="$$s/libiberty"; \ | |
19022 | $(SHELL) $${libsrcdir}/configure \ | |
19023 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
19024 | @stage2_werror_flag@ | |
19025 | @endif libiberty-bootstrap | |
19026 | ||
19027 | ||
19028 | ||
19029 | ||
19030 | ||
b813574b PB |
19031 | .PHONY: all-libiberty maybe-all-libiberty |
19032 | maybe-all-libiberty: | |
19033 | @if libiberty | |
d27cc32e | 19034 | TARGET-libiberty=all |
b813574b PB |
19035 | maybe-all-libiberty: all-libiberty |
19036 | all-libiberty: configure-libiberty | |
c52c6897 PB |
19037 | @endif libiberty |
19038 | @if libiberty-bootstrap | |
19039 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
19040 | @endif libiberty-bootstrap | |
19041 | @if libiberty | |
19042 | @r=`${PWD_COMMAND}`; export r; \ | |
b813574b | 19043 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19044 | $(HOST_EXPORTS) \ |
b00612cc PB |
19045 | (cd $(HOST_SUBDIR)/libiberty && \ |
19046 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libiberty)) | |
b813574b | 19047 | @endif libiberty |
2a4cbe27 | 19048 | |
a7254363 | 19049 | |
d545f33b PB |
19050 | |
19051 | .PHONY: all-stage1-libiberty maybe-all-stage1-libiberty | |
19052 | .PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty | |
19053 | maybe-all-stage1-libiberty: | |
19054 | maybe-clean-stage1-libiberty: | |
19055 | @if libiberty-bootstrap | |
19056 | maybe-all-stage1-libiberty: all-stage1-libiberty | |
19057 | all-stage1: all-stage1-libiberty | |
f70224b5 | 19058 | TARGET-stage1-libiberty = $(TARGET-libiberty) |
d545f33b | 19059 | all-stage1-libiberty: configure-stage1-libiberty |
c52c6897 | 19060 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
19061 | @r=`${PWD_COMMAND}`; export r; \ |
19062 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19063 | $(HOST_EXPORTS) \ | |
19064 | cd $(HOST_SUBDIR)/libiberty && \ | |
c52c6897 | 19065 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 19066 | $(TARGET-stage1-libiberty) |
d545f33b PB |
19067 | |
19068 | maybe-clean-stage1-libiberty: clean-stage1-libiberty | |
19069 | clean-stage1: clean-stage1-libiberty | |
19070 | clean-stage1-libiberty: | |
19071 | @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] \ | |
19072 | || exit 0 ; \ | |
c52c6897 | 19073 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
19074 | cd $(HOST_SUBDIR)/libiberty && \ |
19075 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 19076 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
19077 | @endif libiberty-bootstrap |
19078 | ||
19079 | ||
19080 | .PHONY: all-stage2-libiberty maybe-all-stage2-libiberty | |
19081 | .PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty | |
19082 | maybe-all-stage2-libiberty: | |
19083 | maybe-clean-stage2-libiberty: | |
19084 | @if libiberty-bootstrap | |
19085 | maybe-all-stage2-libiberty: all-stage2-libiberty | |
19086 | all-stage2: all-stage2-libiberty | |
f70224b5 | 19087 | TARGET-stage2-libiberty = $(TARGET-libiberty) |
d545f33b | 19088 | all-stage2-libiberty: configure-stage2-libiberty |
c52c6897 | 19089 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
19090 | @r=`${PWD_COMMAND}`; export r; \ |
19091 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19092 | $(HOST_EXPORTS) \ | |
19093 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19094 | cd $(HOST_SUBDIR)/libiberty && \ | |
f70224b5 PB |
19095 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
19096 | $(TARGET-stage2-libiberty) | |
d545f33b PB |
19097 | |
19098 | maybe-clean-stage2-libiberty: clean-stage2-libiberty | |
19099 | clean-stage2: clean-stage2-libiberty | |
19100 | clean-stage2-libiberty: | |
19101 | @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] \ | |
19102 | || exit 0 ; \ | |
c52c6897 | 19103 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
19104 | cd $(HOST_SUBDIR)/libiberty && \ |
19105 | $(MAKE) $(FLAGS_TO_PASS) \ | |
19106 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
19107 | clean | |
19108 | @endif libiberty-bootstrap | |
19109 | ||
19110 | ||
19111 | .PHONY: all-stage3-libiberty maybe-all-stage3-libiberty | |
19112 | .PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty | |
19113 | maybe-all-stage3-libiberty: | |
19114 | maybe-clean-stage3-libiberty: | |
19115 | @if libiberty-bootstrap | |
19116 | maybe-all-stage3-libiberty: all-stage3-libiberty | |
19117 | all-stage3: all-stage3-libiberty | |
f70224b5 | 19118 | TARGET-stage3-libiberty = $(TARGET-libiberty) |
d545f33b | 19119 | all-stage3-libiberty: configure-stage3-libiberty |
c52c6897 | 19120 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
19121 | @r=`${PWD_COMMAND}`; export r; \ |
19122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19123 | $(HOST_EXPORTS) \ | |
19124 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19125 | cd $(HOST_SUBDIR)/libiberty && \ | |
f70224b5 PB |
19126 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
19127 | $(TARGET-stage3-libiberty) | |
d545f33b PB |
19128 | |
19129 | maybe-clean-stage3-libiberty: clean-stage3-libiberty | |
19130 | clean-stage3: clean-stage3-libiberty | |
19131 | clean-stage3-libiberty: | |
19132 | @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] \ | |
19133 | || exit 0 ; \ | |
c52c6897 | 19134 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
19135 | cd $(HOST_SUBDIR)/libiberty && \ |
19136 | $(MAKE) $(FLAGS_TO_PASS) \ | |
19137 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
19138 | clean | |
19139 | @endif libiberty-bootstrap | |
19140 | ||
19141 | ||
19142 | .PHONY: all-stage4-libiberty maybe-all-stage4-libiberty | |
19143 | .PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty | |
19144 | maybe-all-stage4-libiberty: | |
19145 | maybe-clean-stage4-libiberty: | |
19146 | @if libiberty-bootstrap | |
19147 | maybe-all-stage4-libiberty: all-stage4-libiberty | |
19148 | all-stage4: all-stage4-libiberty | |
f70224b5 | 19149 | TARGET-stage4-libiberty = $(TARGET-libiberty) |
d545f33b | 19150 | all-stage4-libiberty: configure-stage4-libiberty |
c52c6897 | 19151 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
19152 | @r=`${PWD_COMMAND}`; export r; \ |
19153 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19154 | $(HOST_EXPORTS) \ | |
19155 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19156 | cd $(HOST_SUBDIR)/libiberty && \ | |
f70224b5 PB |
19157 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
19158 | $(TARGET-stage4-libiberty) | |
d545f33b PB |
19159 | |
19160 | maybe-clean-stage4-libiberty: clean-stage4-libiberty | |
19161 | clean-stage4: clean-stage4-libiberty | |
19162 | clean-stage4-libiberty: | |
19163 | @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] \ | |
19164 | || exit 0 ; \ | |
c52c6897 | 19165 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
19166 | cd $(HOST_SUBDIR)/libiberty && \ |
19167 | $(MAKE) $(FLAGS_TO_PASS) \ | |
19168 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
19169 | clean | |
19170 | @endif libiberty-bootstrap | |
19171 | ||
19172 | ||
19173 | .PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty | |
19174 | .PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty | |
19175 | maybe-all-stageprofile-libiberty: | |
19176 | maybe-clean-stageprofile-libiberty: | |
19177 | @if libiberty-bootstrap | |
19178 | maybe-all-stageprofile-libiberty: all-stageprofile-libiberty | |
19179 | all-stageprofile: all-stageprofile-libiberty | |
f70224b5 | 19180 | TARGET-stageprofile-libiberty = $(TARGET-libiberty) |
d545f33b | 19181 | all-stageprofile-libiberty: configure-stageprofile-libiberty |
c52c6897 | 19182 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
19183 | @r=`${PWD_COMMAND}`; export r; \ |
19184 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19185 | $(HOST_EXPORTS) \ | |
19186 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19187 | cd $(HOST_SUBDIR)/libiberty && \ | |
f70224b5 PB |
19188 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
19189 | $(TARGET-stageprofile-libiberty) | |
d545f33b PB |
19190 | |
19191 | maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty | |
19192 | clean-stageprofile: clean-stageprofile-libiberty | |
19193 | clean-stageprofile-libiberty: | |
19194 | @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] \ | |
19195 | || exit 0 ; \ | |
c52c6897 | 19196 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
19197 | cd $(HOST_SUBDIR)/libiberty && \ |
19198 | $(MAKE) $(FLAGS_TO_PASS) \ | |
19199 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
19200 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
19201 | @endif libiberty-bootstrap | |
19202 | ||
19203 | ||
19204 | .PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty | |
19205 | .PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty | |
19206 | maybe-all-stagefeedback-libiberty: | |
19207 | maybe-clean-stagefeedback-libiberty: | |
19208 | @if libiberty-bootstrap | |
19209 | maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty | |
19210 | all-stagefeedback: all-stagefeedback-libiberty | |
f70224b5 | 19211 | TARGET-stagefeedback-libiberty = $(TARGET-libiberty) |
d545f33b | 19212 | all-stagefeedback-libiberty: configure-stagefeedback-libiberty |
c52c6897 | 19213 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
19214 | @r=`${PWD_COMMAND}`; export r; \ |
19215 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19216 | $(HOST_EXPORTS) \ | |
19217 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
19218 | cd $(HOST_SUBDIR)/libiberty && \ | |
f70224b5 PB |
19219 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
19220 | $(TARGET-stagefeedback-libiberty) | |
d545f33b PB |
19221 | |
19222 | maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty | |
19223 | clean-stagefeedback: clean-stagefeedback-libiberty | |
19224 | clean-stagefeedback-libiberty: | |
19225 | @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] \ | |
19226 | || exit 0 ; \ | |
c52c6897 | 19227 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
19228 | cd $(HOST_SUBDIR)/libiberty && \ |
19229 | $(MAKE) $(FLAGS_TO_PASS) \ | |
19230 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
19231 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
19232 | @endif libiberty-bootstrap | |
19233 | ||
19234 | ||
19235 | ||
19236 | ||
19237 | ||
b813574b PB |
19238 | .PHONY: check-libiberty maybe-check-libiberty |
19239 | maybe-check-libiberty: | |
19240 | @if libiberty | |
19241 | maybe-check-libiberty: check-libiberty | |
2a4cbe27 | 19242 | |
b813574b | 19243 | check-libiberty: |
0aed8855 | 19244 | @: $(MAKE); $(unstage) |
4fa63067 | 19245 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19246 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19247 | $(HOST_EXPORTS) \ |
b00612cc PB |
19248 | (cd $(HOST_SUBDIR)/libiberty && \ |
19249 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 19250 | |
b813574b | 19251 | @endif libiberty |
2a4cbe27 | 19252 | |
b813574b PB |
19253 | .PHONY: install-libiberty maybe-install-libiberty |
19254 | maybe-install-libiberty: | |
19255 | @if libiberty | |
19256 | maybe-install-libiberty: install-libiberty | |
2a4cbe27 | 19257 | |
b813574b | 19258 | install-libiberty: installdirs |
0aed8855 | 19259 | @: $(MAKE); $(unstage) |
4fa63067 | 19260 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19262 | $(HOST_EXPORTS) \ |
b00612cc | 19263 | (cd $(HOST_SUBDIR)/libiberty && \ |
2da12f12 | 19264 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 19265 | |
b813574b | 19266 | @endif libiberty |
2a4cbe27 | 19267 | |
4fa63067 | 19268 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 19269 | |
b813574b PB |
19270 | .PHONY: maybe-info-libiberty info-libiberty |
19271 | maybe-info-libiberty: | |
19272 | @if libiberty | |
19273 | maybe-info-libiberty: info-libiberty | |
4fa63067 | 19274 | |
b813574b PB |
19275 | info-libiberty: \ |
19276 | configure-libiberty | |
19277 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19278 | r=`${PWD_COMMAND}`; export r; \ |
19279 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19280 | $(HOST_EXPORTS) \ |
b813574b | 19281 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19282 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19283 | done; \ | |
6d389afc | 19284 | echo "Doing info in libiberty" ; \ |
b00612cc | 19285 | (cd $(HOST_SUBDIR)/libiberty && \ |
6d389afc MS |
19286 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19287 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19288 | "RANLIB=$${RANLIB}" \ | |
19289 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19290 | info) \ | |
19291 | || exit 1 | |
19292 | ||
19293 | @endif libiberty | |
19294 | ||
19295 | .PHONY: maybe-dvi-libiberty dvi-libiberty | |
19296 | maybe-dvi-libiberty: | |
19297 | @if libiberty | |
19298 | maybe-dvi-libiberty: dvi-libiberty | |
19299 | ||
19300 | dvi-libiberty: \ | |
19301 | configure-libiberty | |
19302 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
19303 | r=`${PWD_COMMAND}`; export r; \ | |
19304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
19305 | $(HOST_EXPORTS) \ |
19306 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19307 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19308 | done; \ | |
19309 | echo "Doing dvi in libiberty" ; \ | |
b00612cc | 19310 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19313 | "RANLIB=$${RANLIB}" \ | |
19314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 19315 | dvi) \ |
2a4cbe27 NN |
19316 | || exit 1 |
19317 | ||
b813574b | 19318 | @endif libiberty |
2a4cbe27 | 19319 | |
6d389afc MS |
19320 | .PHONY: maybe-html-libiberty html-libiberty |
19321 | maybe-html-libiberty: | |
b813574b | 19322 | @if libiberty |
6d389afc | 19323 | maybe-html-libiberty: html-libiberty |
2a4cbe27 | 19324 | |
6d389afc | 19325 | html-libiberty: \ |
b813574b PB |
19326 | configure-libiberty |
19327 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19328 | r=`${PWD_COMMAND}`; export r; \ |
19329 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19330 | $(HOST_EXPORTS) \ |
b813574b | 19331 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19332 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19333 | done; \ | |
6d389afc | 19334 | echo "Doing html in libiberty" ; \ |
b00612cc | 19335 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19336 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19337 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19338 | "RANLIB=$${RANLIB}" \ | |
19339 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 19340 | html) \ |
2a4cbe27 NN |
19341 | || exit 1 |
19342 | ||
b813574b | 19343 | @endif libiberty |
2a4cbe27 | 19344 | |
b813574b PB |
19345 | .PHONY: maybe-TAGS-libiberty TAGS-libiberty |
19346 | maybe-TAGS-libiberty: | |
19347 | @if libiberty | |
19348 | maybe-TAGS-libiberty: TAGS-libiberty | |
2a4cbe27 | 19349 | |
b813574b PB |
19350 | TAGS-libiberty: \ |
19351 | configure-libiberty | |
19352 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19353 | r=`${PWD_COMMAND}`; export r; \ |
19354 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19355 | $(HOST_EXPORTS) \ |
b813574b | 19356 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19357 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19358 | done; \ | |
b813574b | 19359 | echo "Doing TAGS in libiberty" ; \ |
b00612cc | 19360 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19361 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19362 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19363 | "RANLIB=$${RANLIB}" \ | |
19364 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19365 | TAGS) \ |
2a4cbe27 NN |
19366 | || exit 1 |
19367 | ||
b813574b | 19368 | @endif libiberty |
2a4cbe27 | 19369 | |
b813574b PB |
19370 | .PHONY: maybe-install-info-libiberty install-info-libiberty |
19371 | maybe-install-info-libiberty: | |
19372 | @if libiberty | |
19373 | maybe-install-info-libiberty: install-info-libiberty | |
2a4cbe27 | 19374 | |
b813574b PB |
19375 | install-info-libiberty: \ |
19376 | configure-libiberty \ | |
19377 | info-libiberty | |
19378 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19379 | r=`${PWD_COMMAND}`; export r; \ |
19380 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19381 | $(HOST_EXPORTS) \ |
b813574b | 19382 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19383 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19384 | done; \ | |
b813574b | 19385 | echo "Doing install-info in libiberty" ; \ |
b00612cc | 19386 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19387 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19388 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19389 | "RANLIB=$${RANLIB}" \ | |
19390 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19391 | install-info) \ |
2a4cbe27 NN |
19392 | || exit 1 |
19393 | ||
b813574b | 19394 | @endif libiberty |
2a4cbe27 | 19395 | |
108a6f8e CD |
19396 | .PHONY: maybe-install-html-libiberty install-html-libiberty |
19397 | maybe-install-html-libiberty: | |
19398 | @if libiberty | |
19399 | maybe-install-html-libiberty: install-html-libiberty | |
19400 | ||
19401 | install-html-libiberty: \ | |
19402 | configure-libiberty \ | |
19403 | html-libiberty | |
19404 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
19405 | r=`${PWD_COMMAND}`; export r; \ | |
19406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19407 | $(HOST_EXPORTS) \ | |
19408 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19409 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19410 | done; \ | |
19411 | echo "Doing install-html in libiberty" ; \ | |
19412 | (cd $(HOST_SUBDIR)/libiberty && \ | |
19413 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
19414 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19415 | "RANLIB=$${RANLIB}" \ | |
19416 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19417 | install-html) \ | |
19418 | || exit 1 | |
19419 | ||
19420 | @endif libiberty | |
19421 | ||
b813574b PB |
19422 | .PHONY: maybe-installcheck-libiberty installcheck-libiberty |
19423 | maybe-installcheck-libiberty: | |
19424 | @if libiberty | |
19425 | maybe-installcheck-libiberty: installcheck-libiberty | |
2a4cbe27 | 19426 | |
b813574b PB |
19427 | installcheck-libiberty: \ |
19428 | configure-libiberty | |
19429 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19430 | r=`${PWD_COMMAND}`; export r; \ |
19431 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19432 | $(HOST_EXPORTS) \ |
b813574b | 19433 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19434 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19435 | done; \ | |
b813574b | 19436 | echo "Doing installcheck in libiberty" ; \ |
b00612cc | 19437 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19438 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19439 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19440 | "RANLIB=$${RANLIB}" \ | |
19441 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19442 | installcheck) \ |
2a4cbe27 NN |
19443 | || exit 1 |
19444 | ||
b813574b | 19445 | @endif libiberty |
2a4cbe27 | 19446 | |
b813574b PB |
19447 | .PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty |
19448 | maybe-mostlyclean-libiberty: | |
19449 | @if libiberty | |
19450 | maybe-mostlyclean-libiberty: mostlyclean-libiberty | |
2a4cbe27 | 19451 | |
b813574b PB |
19452 | mostlyclean-libiberty: |
19453 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19454 | r=`${PWD_COMMAND}`; export r; \ |
19455 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19456 | $(HOST_EXPORTS) \ |
b813574b | 19457 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19458 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19459 | done; \ | |
b813574b | 19460 | echo "Doing mostlyclean in libiberty" ; \ |
b00612cc | 19461 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19462 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19463 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19464 | "RANLIB=$${RANLIB}" \ | |
19465 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19466 | mostlyclean) \ |
2a4cbe27 NN |
19467 | || exit 1 |
19468 | ||
b813574b | 19469 | @endif libiberty |
2a4cbe27 | 19470 | |
b813574b PB |
19471 | .PHONY: maybe-clean-libiberty clean-libiberty |
19472 | maybe-clean-libiberty: | |
19473 | @if libiberty | |
19474 | maybe-clean-libiberty: clean-libiberty | |
2a4cbe27 | 19475 | |
b813574b PB |
19476 | clean-libiberty: |
19477 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19478 | r=`${PWD_COMMAND}`; export r; \ |
19479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19480 | $(HOST_EXPORTS) \ |
b813574b | 19481 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19482 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19483 | done; \ | |
b813574b | 19484 | echo "Doing clean in libiberty" ; \ |
b00612cc | 19485 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19486 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19487 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19488 | "RANLIB=$${RANLIB}" \ | |
19489 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19490 | clean) \ |
2a4cbe27 NN |
19491 | || exit 1 |
19492 | ||
b813574b | 19493 | @endif libiberty |
2a4cbe27 | 19494 | |
b813574b PB |
19495 | .PHONY: maybe-distclean-libiberty distclean-libiberty |
19496 | maybe-distclean-libiberty: | |
19497 | @if libiberty | |
19498 | maybe-distclean-libiberty: distclean-libiberty | |
2a4cbe27 | 19499 | |
b813574b PB |
19500 | distclean-libiberty: |
19501 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
19502 | r=`${PWD_COMMAND}`; export r; \ |
19503 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19504 | $(HOST_EXPORTS) \ |
b813574b | 19505 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19506 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19507 | done; \ | |
b813574b | 19508 | echo "Doing distclean in libiberty" ; \ |
b00612cc | 19509 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 NN |
19510 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19511 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19512 | "RANLIB=$${RANLIB}" \ | |
19513 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19514 | distclean) \ |
2a4cbe27 NN |
19515 | || exit 1 |
19516 | ||
b813574b | 19517 | @endif libiberty |
2a4cbe27 | 19518 | |
b813574b PB |
19519 | .PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty |
19520 | maybe-maintainer-clean-libiberty: | |
19521 | @if libiberty | |
19522 | maybe-maintainer-clean-libiberty: maintainer-clean-libiberty | |
2a4cbe27 | 19523 | |
b813574b PB |
19524 | maintainer-clean-libiberty: |
19525 | @[ -f ./libiberty/Makefile ] || exit 0; \ | |
b40e3958 L |
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 \ |
2a4cbe27 NN |
19530 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19531 | done; \ | |
b813574b | 19532 | echo "Doing maintainer-clean in libiberty" ; \ |
b00612cc | 19533 | (cd $(HOST_SUBDIR)/libiberty && \ |
2a4cbe27 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 | maintainer-clean) \ |
2a4cbe27 NN |
19539 | || exit 1 |
19540 | ||
b813574b | 19541 | @endif libiberty |
2a4cbe27 | 19542 | |
2a4cbe27 | 19543 | |
a7254363 | 19544 | |
b813574b PB |
19545 | .PHONY: configure-libtool maybe-configure-libtool |
19546 | maybe-configure-libtool: | |
19547 | @if libtool | |
19548 | maybe-configure-libtool: configure-libtool | |
c52c6897 | 19549 | configure-libtool: |
0aed8855 | 19550 | @: $(MAKE); $(unstage) |
c52c6897 | 19551 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19552 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
19553 | test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \ |
19554 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \ | |
378fce5b | 19555 | $(HOST_EXPORTS) \ |
a7254363 PB |
19556 | echo Configuring in $(HOST_SUBDIR)/libtool; \ |
19557 | cd "$(HOST_SUBDIR)/libtool" || exit 1; \ | |
4fa63067 | 19558 | case $(srcdir) in \ |
b00612cc PB |
19559 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
19560 | *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \ | |
19561 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 19562 | esac; \ |
b00612cc PB |
19563 | srcdiroption="--srcdir=$${topdir}/libtool"; \ |
19564 | libsrcdir="$$s/libtool"; \ | |
4fa63067 | 19565 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 19566 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 19567 | || exit 1 |
b813574b | 19568 | @endif libtool |
2a4cbe27 | 19569 | |
a7254363 PB |
19570 | |
19571 | ||
d545f33b PB |
19572 | |
19573 | ||
b813574b PB |
19574 | .PHONY: all-libtool maybe-all-libtool |
19575 | maybe-all-libtool: | |
19576 | @if libtool | |
d27cc32e | 19577 | TARGET-libtool=all |
b813574b PB |
19578 | maybe-all-libtool: all-libtool |
19579 | all-libtool: configure-libtool | |
0aed8855 | 19580 | @: $(MAKE); $(unstage) |
4fa63067 NN |
19581 | @r=`${PWD_COMMAND}`; export r; \ |
19582 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19583 | $(HOST_EXPORTS) \ |
b00612cc PB |
19584 | (cd $(HOST_SUBDIR)/libtool && \ |
19585 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtool)) | |
b813574b | 19586 | @endif libtool |
2a4cbe27 | 19587 | |
a7254363 | 19588 | |
d545f33b PB |
19589 | |
19590 | ||
b813574b PB |
19591 | .PHONY: check-libtool maybe-check-libtool |
19592 | maybe-check-libtool: | |
19593 | @if libtool | |
19594 | maybe-check-libtool: check-libtool | |
2a4cbe27 | 19595 | |
b813574b | 19596 | check-libtool: |
0aed8855 | 19597 | @: $(MAKE); $(unstage) |
4fa63067 | 19598 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19599 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19600 | $(HOST_EXPORTS) \ |
b00612cc PB |
19601 | (cd $(HOST_SUBDIR)/libtool && \ |
19602 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 19603 | |
b813574b | 19604 | @endif libtool |
2a4cbe27 | 19605 | |
b813574b PB |
19606 | .PHONY: install-libtool maybe-install-libtool |
19607 | maybe-install-libtool: | |
19608 | @if libtool | |
19609 | maybe-install-libtool: install-libtool | |
2a4cbe27 | 19610 | |
b813574b | 19611 | install-libtool: installdirs |
0aed8855 | 19612 | @: $(MAKE); $(unstage) |
4fa63067 | 19613 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19614 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 19615 | $(HOST_EXPORTS) \ |
b00612cc | 19616 | (cd $(HOST_SUBDIR)/libtool && \ |
2da12f12 | 19617 | $(MAKE) $(FLAGS_TO_PASS) install) |
2a4cbe27 | 19618 | |
b813574b | 19619 | @endif libtool |
2a4cbe27 | 19620 | |
4fa63067 | 19621 | # Other targets (info, dvi, etc.) |
2a4cbe27 | 19622 | |
b813574b PB |
19623 | .PHONY: maybe-info-libtool info-libtool |
19624 | maybe-info-libtool: | |
19625 | @if libtool | |
19626 | maybe-info-libtool: info-libtool | |
4fa63067 | 19627 | |
b813574b PB |
19628 | info-libtool: \ |
19629 | configure-libtool | |
0aed8855 | 19630 | @: $(MAKE); $(unstage) |
b813574b | 19631 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19632 | r=`${PWD_COMMAND}`; export r; \ |
19633 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19634 | $(HOST_EXPORTS) \ |
b813574b | 19635 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19636 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19637 | done; \ | |
b813574b | 19638 | echo "Doing info in libtool" ; \ |
b00612cc | 19639 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19640 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19641 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19642 | "RANLIB=$${RANLIB}" \ | |
19643 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19644 | info) \ |
2a4cbe27 NN |
19645 | || exit 1 |
19646 | ||
b813574b | 19647 | @endif libtool |
2a4cbe27 | 19648 | |
b813574b PB |
19649 | .PHONY: maybe-dvi-libtool dvi-libtool |
19650 | maybe-dvi-libtool: | |
19651 | @if libtool | |
19652 | maybe-dvi-libtool: dvi-libtool | |
2a4cbe27 | 19653 | |
b813574b PB |
19654 | dvi-libtool: \ |
19655 | configure-libtool | |
0aed8855 | 19656 | @: $(MAKE); $(unstage) |
b813574b | 19657 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19658 | r=`${PWD_COMMAND}`; export r; \ |
19659 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19660 | $(HOST_EXPORTS) \ |
b813574b | 19661 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19662 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19663 | done; \ | |
b813574b | 19664 | echo "Doing dvi in libtool" ; \ |
b00612cc | 19665 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19666 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19667 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19668 | "RANLIB=$${RANLIB}" \ | |
19669 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19670 | dvi) \ |
2a4cbe27 NN |
19671 | || exit 1 |
19672 | ||
b813574b | 19673 | @endif libtool |
2a4cbe27 | 19674 | |
6d389afc MS |
19675 | .PHONY: maybe-html-libtool html-libtool |
19676 | maybe-html-libtool: | |
19677 | @if libtool | |
19678 | maybe-html-libtool: html-libtool | |
19679 | ||
19680 | html-libtool: \ | |
19681 | configure-libtool | |
0aed8855 | 19682 | @: $(MAKE); $(unstage) |
6d389afc MS |
19683 | @[ -f ./libtool/Makefile ] || exit 0; \ |
19684 | r=`${PWD_COMMAND}`; export r; \ | |
19685 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
19686 | $(HOST_EXPORTS) \ |
19687 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19688 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19689 | done; \ | |
19690 | echo "Doing html in libtool" ; \ | |
b00612cc | 19691 | (cd $(HOST_SUBDIR)/libtool && \ |
6d389afc MS |
19692 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19693 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19694 | "RANLIB=$${RANLIB}" \ | |
19695 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19696 | html) \ | |
19697 | || exit 1 | |
19698 | ||
19699 | @endif libtool | |
19700 | ||
b813574b PB |
19701 | .PHONY: maybe-TAGS-libtool TAGS-libtool |
19702 | maybe-TAGS-libtool: | |
19703 | @if libtool | |
19704 | maybe-TAGS-libtool: TAGS-libtool | |
2a4cbe27 | 19705 | |
b813574b PB |
19706 | TAGS-libtool: \ |
19707 | configure-libtool | |
0aed8855 | 19708 | @: $(MAKE); $(unstage) |
b813574b | 19709 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19710 | r=`${PWD_COMMAND}`; export r; \ |
19711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19712 | $(HOST_EXPORTS) \ |
b813574b | 19713 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19714 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19715 | done; \ | |
b813574b | 19716 | echo "Doing TAGS in libtool" ; \ |
b00612cc | 19717 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19718 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19719 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19720 | "RANLIB=$${RANLIB}" \ | |
19721 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19722 | TAGS) \ |
2a4cbe27 NN |
19723 | || exit 1 |
19724 | ||
b813574b | 19725 | @endif libtool |
2a4cbe27 | 19726 | |
b813574b PB |
19727 | .PHONY: maybe-install-info-libtool install-info-libtool |
19728 | maybe-install-info-libtool: | |
19729 | @if libtool | |
19730 | maybe-install-info-libtool: install-info-libtool | |
2a4cbe27 | 19731 | |
b813574b PB |
19732 | install-info-libtool: \ |
19733 | configure-libtool \ | |
19734 | info-libtool | |
0aed8855 | 19735 | @: $(MAKE); $(unstage) |
b813574b | 19736 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19737 | r=`${PWD_COMMAND}`; export r; \ |
19738 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19739 | $(HOST_EXPORTS) \ |
b813574b | 19740 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19741 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19742 | done; \ | |
b813574b | 19743 | echo "Doing install-info in libtool" ; \ |
b00612cc | 19744 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19745 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19746 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19747 | "RANLIB=$${RANLIB}" \ | |
19748 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19749 | install-info) \ |
2a4cbe27 NN |
19750 | || exit 1 |
19751 | ||
b813574b | 19752 | @endif libtool |
2a4cbe27 | 19753 | |
108a6f8e CD |
19754 | .PHONY: maybe-install-html-libtool install-html-libtool |
19755 | maybe-install-html-libtool: | |
19756 | @if libtool | |
19757 | maybe-install-html-libtool: install-html-libtool | |
19758 | ||
19759 | install-html-libtool: \ | |
19760 | configure-libtool \ | |
19761 | html-libtool | |
19762 | @: $(MAKE); $(unstage) | |
19763 | @[ -f ./libtool/Makefile ] || exit 0; \ | |
19764 | r=`${PWD_COMMAND}`; export r; \ | |
19765 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
19766 | $(HOST_EXPORTS) \ | |
19767 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
19768 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
19769 | done; \ | |
19770 | echo "Doing install-html in libtool" ; \ | |
19771 | (cd $(HOST_SUBDIR)/libtool && \ | |
19772 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
19773 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19774 | "RANLIB=$${RANLIB}" \ | |
19775 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
19776 | install-html) \ | |
19777 | || exit 1 | |
19778 | ||
19779 | @endif libtool | |
19780 | ||
b813574b PB |
19781 | .PHONY: maybe-installcheck-libtool installcheck-libtool |
19782 | maybe-installcheck-libtool: | |
19783 | @if libtool | |
19784 | maybe-installcheck-libtool: installcheck-libtool | |
2a4cbe27 | 19785 | |
b813574b PB |
19786 | installcheck-libtool: \ |
19787 | configure-libtool | |
0aed8855 | 19788 | @: $(MAKE); $(unstage) |
b813574b | 19789 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19790 | r=`${PWD_COMMAND}`; export r; \ |
19791 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19792 | $(HOST_EXPORTS) \ |
b813574b | 19793 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19794 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19795 | done; \ | |
b813574b | 19796 | echo "Doing installcheck in libtool" ; \ |
b00612cc | 19797 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19798 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19799 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19800 | "RANLIB=$${RANLIB}" \ | |
19801 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19802 | installcheck) \ |
2a4cbe27 NN |
19803 | || exit 1 |
19804 | ||
b813574b | 19805 | @endif libtool |
2a4cbe27 | 19806 | |
b813574b PB |
19807 | .PHONY: maybe-mostlyclean-libtool mostlyclean-libtool |
19808 | maybe-mostlyclean-libtool: | |
19809 | @if libtool | |
19810 | maybe-mostlyclean-libtool: mostlyclean-libtool | |
2a4cbe27 | 19811 | |
b813574b | 19812 | mostlyclean-libtool: |
0aed8855 | 19813 | @: $(MAKE); $(unstage) |
b813574b | 19814 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19815 | r=`${PWD_COMMAND}`; export r; \ |
19816 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19817 | $(HOST_EXPORTS) \ |
b813574b | 19818 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19819 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19820 | done; \ | |
b813574b | 19821 | echo "Doing mostlyclean in libtool" ; \ |
b00612cc | 19822 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19823 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19824 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19825 | "RANLIB=$${RANLIB}" \ | |
19826 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19827 | mostlyclean) \ |
2a4cbe27 NN |
19828 | || exit 1 |
19829 | ||
b813574b | 19830 | @endif libtool |
2a4cbe27 | 19831 | |
b813574b PB |
19832 | .PHONY: maybe-clean-libtool clean-libtool |
19833 | maybe-clean-libtool: | |
19834 | @if libtool | |
19835 | maybe-clean-libtool: clean-libtool | |
2a4cbe27 | 19836 | |
b813574b | 19837 | clean-libtool: |
0aed8855 | 19838 | @: $(MAKE); $(unstage) |
b813574b | 19839 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19840 | r=`${PWD_COMMAND}`; export r; \ |
19841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19842 | $(HOST_EXPORTS) \ |
b813574b | 19843 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19844 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19845 | done; \ | |
b813574b | 19846 | echo "Doing clean in libtool" ; \ |
b00612cc | 19847 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19848 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19849 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19850 | "RANLIB=$${RANLIB}" \ | |
19851 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19852 | clean) \ |
2a4cbe27 NN |
19853 | || exit 1 |
19854 | ||
b813574b | 19855 | @endif libtool |
2a4cbe27 | 19856 | |
b813574b PB |
19857 | .PHONY: maybe-distclean-libtool distclean-libtool |
19858 | maybe-distclean-libtool: | |
19859 | @if libtool | |
19860 | maybe-distclean-libtool: distclean-libtool | |
2a4cbe27 | 19861 | |
b813574b | 19862 | distclean-libtool: |
0aed8855 | 19863 | @: $(MAKE); $(unstage) |
b813574b | 19864 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19865 | r=`${PWD_COMMAND}`; export r; \ |
19866 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19867 | $(HOST_EXPORTS) \ |
b813574b | 19868 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19869 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19870 | done; \ | |
b813574b | 19871 | echo "Doing distclean in libtool" ; \ |
b00612cc | 19872 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19873 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19874 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19875 | "RANLIB=$${RANLIB}" \ | |
19876 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19877 | distclean) \ |
2a4cbe27 NN |
19878 | || exit 1 |
19879 | ||
b813574b | 19880 | @endif libtool |
2a4cbe27 | 19881 | |
b813574b PB |
19882 | .PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool |
19883 | maybe-maintainer-clean-libtool: | |
19884 | @if libtool | |
19885 | maybe-maintainer-clean-libtool: maintainer-clean-libtool | |
2a4cbe27 | 19886 | |
b813574b | 19887 | maintainer-clean-libtool: |
0aed8855 | 19888 | @: $(MAKE); $(unstage) |
b813574b | 19889 | @[ -f ./libtool/Makefile ] || exit 0; \ |
b40e3958 L |
19890 | r=`${PWD_COMMAND}`; export r; \ |
19891 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19892 | $(HOST_EXPORTS) \ |
b813574b | 19893 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
19894 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
19895 | done; \ | |
b813574b | 19896 | echo "Doing maintainer-clean in libtool" ; \ |
b00612cc | 19897 | (cd $(HOST_SUBDIR)/libtool && \ |
2a4cbe27 NN |
19898 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
19899 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
19900 | "RANLIB=$${RANLIB}" \ | |
19901 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 19902 | maintainer-clean) \ |
2a4cbe27 NN |
19903 | || exit 1 |
19904 | ||
b813574b | 19905 | @endif libtool |
2a4cbe27 | 19906 | |
2a4cbe27 | 19907 | |
a7254363 | 19908 | |
b813574b PB |
19909 | .PHONY: configure-m4 maybe-configure-m4 |
19910 | maybe-configure-m4: | |
19911 | @if m4 | |
19912 | maybe-configure-m4: configure-m4 | |
c52c6897 | 19913 | configure-m4: |
0aed8855 | 19914 | @: $(MAKE); $(unstage) |
c52c6897 | 19915 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 19916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
19917 | test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \ |
19918 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \ | |
378fce5b | 19919 | $(HOST_EXPORTS) \ |
a7254363 PB |
19920 | echo Configuring in $(HOST_SUBDIR)/m4; \ |
19921 | cd "$(HOST_SUBDIR)/m4" || exit 1; \ | |
4fa63067 | 19922 | case $(srcdir) in \ |
b00612cc PB |
19923 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
19924 | *) topdir=`echo $(HOST_SUBDIR)/m4/ | \ | |
19925 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 19926 | esac; \ |
b00612cc PB |
19927 | srcdiroption="--srcdir=$${topdir}/m4"; \ |
19928 | libsrcdir="$$s/m4"; \ | |
4fa63067 | 19929 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 19930 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
2a4cbe27 | 19931 | || exit 1 |
b813574b | 19932 | @endif m4 |
2a4cbe27 | 19933 | |
a7254363 PB |
19934 | |
19935 | ||
d545f33b PB |
19936 | |
19937 | ||
b813574b PB |
19938 | .PHONY: all-m4 maybe-all-m4 |
19939 | maybe-all-m4: | |
19940 | @if m4 | |
d27cc32e | 19941 | TARGET-m4=all |
b813574b PB |
19942 | maybe-all-m4: all-m4 |
19943 | all-m4: configure-m4 | |
0aed8855 | 19944 | @: $(MAKE); $(unstage) |
4fa63067 NN |
19945 | @r=`${PWD_COMMAND}`; export r; \ |
19946 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19947 | $(HOST_EXPORTS) \ |
b00612cc PB |
19948 | (cd $(HOST_SUBDIR)/m4 && \ |
19949 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-m4)) | |
b813574b | 19950 | @endif m4 |
4fa63067 | 19951 | |
a7254363 | 19952 | |
d545f33b PB |
19953 | |
19954 | ||
b813574b PB |
19955 | .PHONY: check-m4 maybe-check-m4 |
19956 | maybe-check-m4: | |
19957 | @if m4 | |
19958 | maybe-check-m4: check-m4 | |
2a4cbe27 | 19959 | |
b813574b | 19960 | check-m4: |
0aed8855 | 19961 | @: $(MAKE); $(unstage) |
4fa63067 NN |
19962 | @r=`${PWD_COMMAND}`; export r; \ |
19963 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19964 | $(HOST_EXPORTS) \ |
b00612cc PB |
19965 | (cd $(HOST_SUBDIR)/m4 && \ |
19966 | $(MAKE) $(FLAGS_TO_PASS) check) | |
2a4cbe27 | 19967 | |
b813574b | 19968 | @endif m4 |
4fa63067 | 19969 | |
b813574b PB |
19970 | .PHONY: install-m4 maybe-install-m4 |
19971 | maybe-install-m4: | |
19972 | @if m4 | |
19973 | maybe-install-m4: install-m4 | |
4fa63067 | 19974 | |
b813574b | 19975 | install-m4: installdirs |
0aed8855 | 19976 | @: $(MAKE); $(unstage) |
4fa63067 NN |
19977 | @r=`${PWD_COMMAND}`; export r; \ |
19978 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19979 | $(HOST_EXPORTS) \ |
b00612cc | 19980 | (cd $(HOST_SUBDIR)/m4 && \ |
2da12f12 | 19981 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 19982 | |
b813574b | 19983 | @endif m4 |
4fa63067 NN |
19984 | |
19985 | # Other targets (info, dvi, etc.) | |
19986 | ||
b813574b PB |
19987 | .PHONY: maybe-info-m4 info-m4 |
19988 | maybe-info-m4: | |
19989 | @if m4 | |
19990 | maybe-info-m4: info-m4 | |
4fa63067 | 19991 | |
b813574b PB |
19992 | info-m4: \ |
19993 | configure-m4 | |
0aed8855 | 19994 | @: $(MAKE); $(unstage) |
b813574b | 19995 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
19996 | r=`${PWD_COMMAND}`; export r; \ |
19997 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 19998 | $(HOST_EXPORTS) \ |
b813574b | 19999 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20000 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20001 | done; \ | |
b813574b | 20002 | echo "Doing info in m4" ; \ |
b00612cc | 20003 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20004 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20005 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20006 | "RANLIB=$${RANLIB}" \ | |
20007 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20008 | info) \ |
2a4cbe27 NN |
20009 | || exit 1 |
20010 | ||
b813574b | 20011 | @endif m4 |
2a4cbe27 | 20012 | |
b813574b PB |
20013 | .PHONY: maybe-dvi-m4 dvi-m4 |
20014 | maybe-dvi-m4: | |
20015 | @if m4 | |
20016 | maybe-dvi-m4: dvi-m4 | |
2a4cbe27 | 20017 | |
b813574b PB |
20018 | dvi-m4: \ |
20019 | configure-m4 | |
0aed8855 | 20020 | @: $(MAKE); $(unstage) |
b813574b | 20021 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
20022 | r=`${PWD_COMMAND}`; export r; \ |
20023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20024 | $(HOST_EXPORTS) \ |
b813574b | 20025 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20026 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20027 | done; \ | |
b813574b | 20028 | echo "Doing dvi in m4" ; \ |
b00612cc | 20029 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20030 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20031 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20032 | "RANLIB=$${RANLIB}" \ | |
20033 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20034 | dvi) \ |
2a4cbe27 NN |
20035 | || exit 1 |
20036 | ||
b813574b | 20037 | @endif m4 |
2a4cbe27 | 20038 | |
6d389afc MS |
20039 | .PHONY: maybe-html-m4 html-m4 |
20040 | maybe-html-m4: | |
20041 | @if m4 | |
20042 | maybe-html-m4: html-m4 | |
20043 | ||
20044 | html-m4: \ | |
20045 | configure-m4 | |
0aed8855 | 20046 | @: $(MAKE); $(unstage) |
6d389afc MS |
20047 | @[ -f ./m4/Makefile ] || exit 0; \ |
20048 | r=`${PWD_COMMAND}`; export r; \ | |
20049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
20050 | $(HOST_EXPORTS) \ |
20051 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20053 | done; \ | |
20054 | echo "Doing html in m4" ; \ | |
b00612cc | 20055 | (cd $(HOST_SUBDIR)/m4 && \ |
6d389afc MS |
20056 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20057 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20058 | "RANLIB=$${RANLIB}" \ | |
20059 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20060 | html) \ | |
20061 | || exit 1 | |
20062 | ||
20063 | @endif m4 | |
20064 | ||
b813574b PB |
20065 | .PHONY: maybe-TAGS-m4 TAGS-m4 |
20066 | maybe-TAGS-m4: | |
20067 | @if m4 | |
20068 | maybe-TAGS-m4: TAGS-m4 | |
2a4cbe27 | 20069 | |
b813574b PB |
20070 | TAGS-m4: \ |
20071 | configure-m4 | |
0aed8855 | 20072 | @: $(MAKE); $(unstage) |
b813574b | 20073 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
20074 | r=`${PWD_COMMAND}`; export r; \ |
20075 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20076 | $(HOST_EXPORTS) \ |
b813574b | 20077 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20078 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20079 | done; \ | |
b813574b | 20080 | echo "Doing TAGS in m4" ; \ |
b00612cc | 20081 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20082 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20083 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20084 | "RANLIB=$${RANLIB}" \ | |
20085 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20086 | TAGS) \ |
2a4cbe27 NN |
20087 | || exit 1 |
20088 | ||
b813574b | 20089 | @endif m4 |
2a4cbe27 | 20090 | |
b813574b PB |
20091 | .PHONY: maybe-install-info-m4 install-info-m4 |
20092 | maybe-install-info-m4: | |
20093 | @if m4 | |
20094 | maybe-install-info-m4: install-info-m4 | |
2a4cbe27 | 20095 | |
b813574b PB |
20096 | install-info-m4: \ |
20097 | configure-m4 \ | |
20098 | info-m4 | |
0aed8855 | 20099 | @: $(MAKE); $(unstage) |
b813574b | 20100 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
20101 | r=`${PWD_COMMAND}`; export r; \ |
20102 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20103 | $(HOST_EXPORTS) \ |
b813574b | 20104 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20105 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20106 | done; \ | |
b813574b | 20107 | echo "Doing install-info in m4" ; \ |
b00612cc | 20108 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20109 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20110 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20111 | "RANLIB=$${RANLIB}" \ | |
20112 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20113 | install-info) \ |
2a4cbe27 NN |
20114 | || exit 1 |
20115 | ||
b813574b | 20116 | @endif m4 |
2a4cbe27 | 20117 | |
108a6f8e CD |
20118 | .PHONY: maybe-install-html-m4 install-html-m4 |
20119 | maybe-install-html-m4: | |
20120 | @if m4 | |
20121 | maybe-install-html-m4: install-html-m4 | |
20122 | ||
20123 | install-html-m4: \ | |
20124 | configure-m4 \ | |
20125 | html-m4 | |
20126 | @: $(MAKE); $(unstage) | |
20127 | @[ -f ./m4/Makefile ] || exit 0; \ | |
20128 | r=`${PWD_COMMAND}`; export r; \ | |
20129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20130 | $(HOST_EXPORTS) \ | |
20131 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20132 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20133 | done; \ | |
20134 | echo "Doing install-html in m4" ; \ | |
20135 | (cd $(HOST_SUBDIR)/m4 && \ | |
20136 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20137 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20138 | "RANLIB=$${RANLIB}" \ | |
20139 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20140 | install-html) \ | |
20141 | || exit 1 | |
20142 | ||
20143 | @endif m4 | |
20144 | ||
b813574b PB |
20145 | .PHONY: maybe-installcheck-m4 installcheck-m4 |
20146 | maybe-installcheck-m4: | |
20147 | @if m4 | |
20148 | maybe-installcheck-m4: installcheck-m4 | |
2a4cbe27 | 20149 | |
b813574b PB |
20150 | installcheck-m4: \ |
20151 | configure-m4 | |
0aed8855 | 20152 | @: $(MAKE); $(unstage) |
b813574b | 20153 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
20154 | r=`${PWD_COMMAND}`; export r; \ |
20155 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20156 | $(HOST_EXPORTS) \ |
b813574b | 20157 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20158 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20159 | done; \ | |
b813574b | 20160 | echo "Doing installcheck in m4" ; \ |
b00612cc | 20161 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20162 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20163 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20164 | "RANLIB=$${RANLIB}" \ | |
20165 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20166 | installcheck) \ |
2a4cbe27 NN |
20167 | || exit 1 |
20168 | ||
b813574b | 20169 | @endif m4 |
2a4cbe27 | 20170 | |
b813574b PB |
20171 | .PHONY: maybe-mostlyclean-m4 mostlyclean-m4 |
20172 | maybe-mostlyclean-m4: | |
20173 | @if m4 | |
20174 | maybe-mostlyclean-m4: mostlyclean-m4 | |
2a4cbe27 | 20175 | |
b813574b | 20176 | mostlyclean-m4: |
0aed8855 | 20177 | @: $(MAKE); $(unstage) |
b813574b | 20178 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
20179 | r=`${PWD_COMMAND}`; export r; \ |
20180 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20181 | $(HOST_EXPORTS) \ |
b813574b | 20182 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20183 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20184 | done; \ | |
b813574b | 20185 | echo "Doing mostlyclean in m4" ; \ |
b00612cc | 20186 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20187 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20188 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20189 | "RANLIB=$${RANLIB}" \ | |
20190 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20191 | mostlyclean) \ |
2a4cbe27 NN |
20192 | || exit 1 |
20193 | ||
b813574b | 20194 | @endif m4 |
2a4cbe27 | 20195 | |
b813574b PB |
20196 | .PHONY: maybe-clean-m4 clean-m4 |
20197 | maybe-clean-m4: | |
20198 | @if m4 | |
20199 | maybe-clean-m4: clean-m4 | |
2a4cbe27 | 20200 | |
b813574b | 20201 | clean-m4: |
0aed8855 | 20202 | @: $(MAKE); $(unstage) |
b813574b | 20203 | @[ -f ./m4/Makefile ] || exit 0; \ |
b40e3958 L |
20204 | r=`${PWD_COMMAND}`; export r; \ |
20205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20206 | $(HOST_EXPORTS) \ |
b813574b | 20207 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
2a4cbe27 NN |
20208 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20209 | done; \ | |
b813574b | 20210 | echo "Doing clean in m4" ; \ |
b00612cc | 20211 | (cd $(HOST_SUBDIR)/m4 && \ |
2a4cbe27 NN |
20212 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20213 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20214 | "RANLIB=$${RANLIB}" \ | |
20215 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20216 | clean) \ |
2a4cbe27 NN |
20217 | || exit 1 |
20218 | ||
b813574b | 20219 | @endif m4 |
2a4cbe27 | 20220 | |
b813574b PB |
20221 | .PHONY: maybe-distclean-m4 distclean-m4 |
20222 | maybe-distclean-m4: | |
20223 | @if m4 | |
20224 | maybe-distclean-m4: distclean-m4 | |
a2592b1b | 20225 | |
b813574b | 20226 | distclean-m4: |
0aed8855 | 20227 | @: $(MAKE); $(unstage) |
b813574b | 20228 | @[ -f ./m4/Makefile ] || exit 0; \ |
a2592b1b DD |
20229 | r=`${PWD_COMMAND}`; export r; \ |
20230 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20231 | $(HOST_EXPORTS) \ |
b813574b | 20232 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
a2592b1b DD |
20233 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20234 | done; \ | |
b813574b | 20235 | echo "Doing distclean in m4" ; \ |
b00612cc | 20236 | (cd $(HOST_SUBDIR)/m4 && \ |
a2592b1b DD |
20237 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20238 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20239 | "RANLIB=$${RANLIB}" \ | |
20240 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20241 | distclean) \ |
a2592b1b DD |
20242 | || exit 1 |
20243 | ||
b813574b | 20244 | @endif m4 |
a2592b1b | 20245 | |
b813574b PB |
20246 | .PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4 |
20247 | maybe-maintainer-clean-m4: | |
20248 | @if m4 | |
20249 | maybe-maintainer-clean-m4: maintainer-clean-m4 | |
2a4cbe27 | 20250 | |
b813574b | 20251 | maintainer-clean-m4: |
0aed8855 | 20252 | @: $(MAKE); $(unstage) |
b813574b | 20253 | @[ -f ./m4/Makefile ] || exit 0; \ |
4fa63067 | 20254 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 20255 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 20256 | $(HOST_EXPORTS) \ |
b813574b | 20257 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20258 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20259 | done; \ | |
b813574b | 20260 | echo "Doing maintainer-clean in m4" ; \ |
b00612cc | 20261 | (cd $(HOST_SUBDIR)/m4 && \ |
4fa63067 NN |
20262 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20263 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20264 | "RANLIB=$${RANLIB}" \ | |
20265 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20266 | maintainer-clean) \ |
4fa63067 | 20267 | || exit 1 |
252b5132 | 20268 | |
b813574b | 20269 | @endif m4 |
252b5132 | 20270 | |
252b5132 | 20271 | |
a7254363 | 20272 | |
b813574b PB |
20273 | .PHONY: configure-make maybe-configure-make |
20274 | maybe-configure-make: | |
20275 | @if make | |
20276 | maybe-configure-make: configure-make | |
c52c6897 | 20277 | configure-make: |
0aed8855 | 20278 | @: $(MAKE); $(unstage) |
c52c6897 | 20279 | @r=`${PWD_COMMAND}`; export r; \ |
b813574b | 20280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
20281 | test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \ |
20282 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \ | |
b813574b | 20283 | $(HOST_EXPORTS) \ |
a7254363 PB |
20284 | echo Configuring in $(HOST_SUBDIR)/make; \ |
20285 | cd "$(HOST_SUBDIR)/make" || exit 1; \ | |
4fa63067 | 20286 | case $(srcdir) in \ |
b00612cc PB |
20287 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
20288 | *) topdir=`echo $(HOST_SUBDIR)/make/ | \ | |
20289 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4fa63067 | 20290 | esac; \ |
b00612cc PB |
20291 | srcdiroption="--srcdir=$${topdir}/make"; \ |
20292 | libsrcdir="$$s/make"; \ | |
4fa63067 | 20293 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 20294 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
4fa63067 | 20295 | || exit 1 |
b813574b | 20296 | @endif make |
252b5132 | 20297 | |
a7254363 PB |
20298 | |
20299 | ||
d545f33b PB |
20300 | |
20301 | ||
b813574b PB |
20302 | .PHONY: all-make maybe-all-make |
20303 | maybe-all-make: | |
20304 | @if make | |
d27cc32e | 20305 | TARGET-make=all |
b813574b PB |
20306 | maybe-all-make: all-make |
20307 | all-make: configure-make | |
0aed8855 | 20308 | @: $(MAKE); $(unstage) |
4fa63067 NN |
20309 | @r=`${PWD_COMMAND}`; export r; \ |
20310 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20311 | $(HOST_EXPORTS) \ |
b00612cc PB |
20312 | (cd $(HOST_SUBDIR)/make && \ |
20313 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-make)) | |
b813574b | 20314 | @endif make |
252b5132 | 20315 | |
a7254363 | 20316 | |
d545f33b PB |
20317 | |
20318 | ||
b813574b PB |
20319 | .PHONY: check-make maybe-check-make |
20320 | maybe-check-make: | |
20321 | @if make | |
20322 | maybe-check-make: check-make | |
252b5132 | 20323 | |
b813574b | 20324 | check-make: |
0aed8855 | 20325 | @: $(MAKE); $(unstage) |
b813574b PB |
20326 | @r=`${PWD_COMMAND}`; export r; \ |
20327 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 20328 | $(HOST_EXPORTS) \ |
b00612cc PB |
20329 | (cd $(HOST_SUBDIR)/make && \ |
20330 | $(MAKE) $(FLAGS_TO_PASS) check) | |
dd12c3a8 | 20331 | |
b813574b | 20332 | @endif make |
16ae0395 | 20333 | |
b813574b PB |
20334 | .PHONY: install-make maybe-install-make |
20335 | maybe-install-make: | |
20336 | @if make | |
20337 | maybe-install-make: install-make | |
4fa63067 | 20338 | |
b813574b | 20339 | install-make: installdirs |
0aed8855 | 20340 | @: $(MAKE); $(unstage) |
4fa63067 NN |
20341 | @r=`${PWD_COMMAND}`; export r; \ |
20342 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20343 | $(HOST_EXPORTS) \ |
b00612cc | 20344 | (cd $(HOST_SUBDIR)/make && \ |
2da12f12 | 20345 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 20346 | |
b813574b | 20347 | @endif make |
4fa63067 NN |
20348 | |
20349 | # Other targets (info, dvi, etc.) | |
20350 | ||
b813574b PB |
20351 | .PHONY: maybe-info-make info-make |
20352 | maybe-info-make: | |
20353 | @if make | |
20354 | maybe-info-make: info-make | |
4fa63067 | 20355 | |
b813574b PB |
20356 | info-make: \ |
20357 | configure-make | |
0aed8855 | 20358 | @: $(MAKE); $(unstage) |
b813574b | 20359 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20360 | r=`${PWD_COMMAND}`; export r; \ |
20361 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20362 | $(HOST_EXPORTS) \ |
b813574b | 20363 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20364 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20365 | done; \ | |
b813574b | 20366 | echo "Doing info in make" ; \ |
b00612cc | 20367 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20368 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20369 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20370 | "RANLIB=$${RANLIB}" \ | |
20371 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20372 | info) \ |
4fa63067 NN |
20373 | || exit 1 |
20374 | ||
b813574b | 20375 | @endif make |
4fa63067 | 20376 | |
b813574b PB |
20377 | .PHONY: maybe-dvi-make dvi-make |
20378 | maybe-dvi-make: | |
20379 | @if make | |
20380 | maybe-dvi-make: dvi-make | |
4fa63067 | 20381 | |
b813574b PB |
20382 | dvi-make: \ |
20383 | configure-make | |
0aed8855 | 20384 | @: $(MAKE); $(unstage) |
b813574b | 20385 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20386 | r=`${PWD_COMMAND}`; export r; \ |
20387 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20388 | $(HOST_EXPORTS) \ |
b813574b | 20389 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20390 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20391 | done; \ | |
b813574b | 20392 | echo "Doing dvi in make" ; \ |
b00612cc | 20393 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20394 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20395 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20396 | "RANLIB=$${RANLIB}" \ | |
20397 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20398 | dvi) \ |
4fa63067 | 20399 | || exit 1 |
16ae0395 | 20400 | |
b813574b | 20401 | @endif make |
252b5132 | 20402 | |
6d389afc MS |
20403 | .PHONY: maybe-html-make html-make |
20404 | maybe-html-make: | |
20405 | @if make | |
20406 | maybe-html-make: html-make | |
20407 | ||
20408 | html-make: \ | |
20409 | configure-make | |
0aed8855 | 20410 | @: $(MAKE); $(unstage) |
6d389afc MS |
20411 | @[ -f ./make/Makefile ] || exit 0; \ |
20412 | r=`${PWD_COMMAND}`; export r; \ | |
20413 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
20414 | $(HOST_EXPORTS) \ |
20415 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20416 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20417 | done; \ | |
20418 | echo "Doing html in make" ; \ | |
b00612cc | 20419 | (cd $(HOST_SUBDIR)/make && \ |
6d389afc MS |
20420 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20421 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20422 | "RANLIB=$${RANLIB}" \ | |
20423 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20424 | html) \ | |
20425 | || exit 1 | |
20426 | ||
20427 | @endif make | |
20428 | ||
b813574b PB |
20429 | .PHONY: maybe-TAGS-make TAGS-make |
20430 | maybe-TAGS-make: | |
20431 | @if make | |
20432 | maybe-TAGS-make: TAGS-make | |
252b5132 | 20433 | |
b813574b PB |
20434 | TAGS-make: \ |
20435 | configure-make | |
0aed8855 | 20436 | @: $(MAKE); $(unstage) |
b813574b | 20437 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20438 | r=`${PWD_COMMAND}`; export r; \ |
20439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20440 | $(HOST_EXPORTS) \ |
b813574b | 20441 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20442 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20443 | done; \ | |
b813574b | 20444 | echo "Doing TAGS in make" ; \ |
b00612cc | 20445 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20446 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20447 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20448 | "RANLIB=$${RANLIB}" \ | |
20449 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20450 | TAGS) \ |
4fa63067 | 20451 | || exit 1 |
3866be5d | 20452 | |
b813574b | 20453 | @endif make |
3866be5d | 20454 | |
b813574b PB |
20455 | .PHONY: maybe-install-info-make install-info-make |
20456 | maybe-install-info-make: | |
20457 | @if make | |
20458 | maybe-install-info-make: install-info-make | |
3866be5d | 20459 | |
b813574b PB |
20460 | install-info-make: \ |
20461 | configure-make \ | |
20462 | info-make | |
0aed8855 | 20463 | @: $(MAKE); $(unstage) |
b813574b | 20464 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20465 | r=`${PWD_COMMAND}`; export r; \ |
20466 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20467 | $(HOST_EXPORTS) \ |
b813574b | 20468 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20469 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20470 | done; \ | |
b813574b | 20471 | echo "Doing install-info in make" ; \ |
b00612cc | 20472 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20473 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20474 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20475 | "RANLIB=$${RANLIB}" \ | |
20476 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20477 | install-info) \ |
4fa63067 | 20478 | || exit 1 |
3866be5d | 20479 | |
b813574b | 20480 | @endif make |
3866be5d | 20481 | |
108a6f8e CD |
20482 | .PHONY: maybe-install-html-make install-html-make |
20483 | maybe-install-html-make: | |
20484 | @if make | |
20485 | maybe-install-html-make: install-html-make | |
20486 | ||
20487 | install-html-make: \ | |
20488 | configure-make \ | |
20489 | html-make | |
20490 | @: $(MAKE); $(unstage) | |
20491 | @[ -f ./make/Makefile ] || exit 0; \ | |
20492 | r=`${PWD_COMMAND}`; export r; \ | |
20493 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20494 | $(HOST_EXPORTS) \ | |
20495 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20496 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20497 | done; \ | |
20498 | echo "Doing install-html in make" ; \ | |
20499 | (cd $(HOST_SUBDIR)/make && \ | |
20500 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
20501 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20502 | "RANLIB=$${RANLIB}" \ | |
20503 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20504 | install-html) \ | |
20505 | || exit 1 | |
20506 | ||
20507 | @endif make | |
20508 | ||
b813574b PB |
20509 | .PHONY: maybe-installcheck-make installcheck-make |
20510 | maybe-installcheck-make: | |
20511 | @if make | |
20512 | maybe-installcheck-make: installcheck-make | |
15723a45 | 20513 | |
b813574b PB |
20514 | installcheck-make: \ |
20515 | configure-make | |
0aed8855 | 20516 | @: $(MAKE); $(unstage) |
b813574b | 20517 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20518 | r=`${PWD_COMMAND}`; export r; \ |
20519 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20520 | $(HOST_EXPORTS) \ |
b813574b | 20521 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20522 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20523 | done; \ | |
b813574b | 20524 | echo "Doing installcheck in make" ; \ |
b00612cc | 20525 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20526 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20527 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20528 | "RANLIB=$${RANLIB}" \ | |
20529 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20530 | installcheck) \ |
4fa63067 | 20531 | || exit 1 |
15723a45 | 20532 | |
b813574b | 20533 | @endif make |
15723a45 | 20534 | |
b813574b PB |
20535 | .PHONY: maybe-mostlyclean-make mostlyclean-make |
20536 | maybe-mostlyclean-make: | |
20537 | @if make | |
20538 | maybe-mostlyclean-make: mostlyclean-make | |
15723a45 | 20539 | |
b813574b | 20540 | mostlyclean-make: |
0aed8855 | 20541 | @: $(MAKE); $(unstage) |
b813574b | 20542 | @[ -f ./make/Makefile ] || exit 0; \ |
b40e3958 L |
20543 | r=`${PWD_COMMAND}`; export r; \ |
20544 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20545 | $(HOST_EXPORTS) \ |
b813574b | 20546 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20547 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20548 | done; \ | |
b813574b | 20549 | echo "Doing mostlyclean in make" ; \ |
b00612cc | 20550 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20551 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20552 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20553 | "RANLIB=$${RANLIB}" \ | |
20554 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20555 | mostlyclean) \ |
bba45b8b | 20556 | || exit 1 |
15723a45 | 20557 | |
b813574b | 20558 | @endif make |
4fa63067 | 20559 | |
b813574b PB |
20560 | .PHONY: maybe-clean-make clean-make |
20561 | maybe-clean-make: | |
20562 | @if make | |
20563 | maybe-clean-make: clean-make | |
4fa63067 | 20564 | |
b813574b | 20565 | clean-make: |
0aed8855 | 20566 | @: $(MAKE); $(unstage) |
b813574b | 20567 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20568 | r=`${PWD_COMMAND}`; export r; \ |
20569 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20570 | $(HOST_EXPORTS) \ |
b813574b | 20571 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20572 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20573 | done; \ | |
b813574b | 20574 | echo "Doing clean in make" ; \ |
b00612cc | 20575 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20576 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20577 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20578 | "RANLIB=$${RANLIB}" \ | |
20579 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20580 | clean) \ |
4fa63067 NN |
20581 | || exit 1 |
20582 | ||
b813574b | 20583 | @endif make |
4fa63067 | 20584 | |
b813574b PB |
20585 | .PHONY: maybe-distclean-make distclean-make |
20586 | maybe-distclean-make: | |
20587 | @if make | |
20588 | maybe-distclean-make: distclean-make | |
4fa63067 | 20589 | |
b813574b | 20590 | distclean-make: |
0aed8855 | 20591 | @: $(MAKE); $(unstage) |
b813574b | 20592 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 NN |
20593 | r=`${PWD_COMMAND}`; export r; \ |
20594 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20595 | $(HOST_EXPORTS) \ |
b813574b | 20596 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20597 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20598 | done; \ | |
b813574b | 20599 | echo "Doing distclean in make" ; \ |
b00612cc | 20600 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20601 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20602 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20603 | "RANLIB=$${RANLIB}" \ | |
20604 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20605 | distclean) \ |
4fa63067 NN |
20606 | || exit 1 |
20607 | ||
b813574b | 20608 | @endif make |
4fa63067 | 20609 | |
b813574b PB |
20610 | .PHONY: maybe-maintainer-clean-make maintainer-clean-make |
20611 | maybe-maintainer-clean-make: | |
20612 | @if make | |
20613 | maybe-maintainer-clean-make: maintainer-clean-make | |
4fa63067 | 20614 | |
b813574b | 20615 | maintainer-clean-make: |
0aed8855 | 20616 | @: $(MAKE); $(unstage) |
b813574b | 20617 | @[ -f ./make/Makefile ] || exit 0; \ |
4fa63067 | 20618 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 20619 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 20620 | $(HOST_EXPORTS) \ |
b813574b | 20621 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20622 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20623 | done; \ | |
b813574b | 20624 | echo "Doing maintainer-clean in make" ; \ |
b00612cc | 20625 | (cd $(HOST_SUBDIR)/make && \ |
4fa63067 NN |
20626 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20627 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20628 | "RANLIB=$${RANLIB}" \ | |
20629 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20630 | maintainer-clean) \ |
4fa63067 | 20631 | || exit 1 |
3866be5d | 20632 | |
b813574b | 20633 | @endif make |
3866be5d | 20634 | |
3866be5d | 20635 | |
a7254363 | 20636 | |
b813574b PB |
20637 | .PHONY: configure-mmalloc maybe-configure-mmalloc |
20638 | maybe-configure-mmalloc: | |
20639 | @if mmalloc | |
20640 | maybe-configure-mmalloc: configure-mmalloc | |
c52c6897 | 20641 | configure-mmalloc: |
0aed8855 | 20642 | @: $(MAKE); $(unstage) |
c52c6897 | 20643 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 20644 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
20645 | test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \ |
20646 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \ | |
378fce5b | 20647 | $(HOST_EXPORTS) \ |
a7254363 PB |
20648 | echo Configuring in $(HOST_SUBDIR)/mmalloc; \ |
20649 | cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \ | |
e2b9e2dc | 20650 | case $(srcdir) in \ |
b00612cc PB |
20651 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
20652 | *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \ | |
20653 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 20654 | esac; \ |
b00612cc PB |
20655 | srcdiroption="--srcdir=$${topdir}/mmalloc"; \ |
20656 | libsrcdir="$$s/mmalloc"; \ | |
e2b9e2dc | 20657 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 20658 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 20659 | || exit 1 |
b813574b | 20660 | @endif mmalloc |
e2b9e2dc | 20661 | |
a7254363 PB |
20662 | |
20663 | ||
d545f33b PB |
20664 | |
20665 | ||
b813574b PB |
20666 | .PHONY: all-mmalloc maybe-all-mmalloc |
20667 | maybe-all-mmalloc: | |
20668 | @if mmalloc | |
d27cc32e | 20669 | TARGET-mmalloc=all |
b813574b PB |
20670 | maybe-all-mmalloc: all-mmalloc |
20671 | all-mmalloc: configure-mmalloc | |
0aed8855 | 20672 | @: $(MAKE); $(unstage) |
b40e3958 L |
20673 | @r=`${PWD_COMMAND}`; export r; \ |
20674 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20675 | $(HOST_EXPORTS) \ |
b00612cc PB |
20676 | (cd $(HOST_SUBDIR)/mmalloc && \ |
20677 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-mmalloc)) | |
b813574b | 20678 | @endif mmalloc |
3866be5d | 20679 | |
a7254363 | 20680 | |
d545f33b PB |
20681 | |
20682 | ||
b813574b PB |
20683 | .PHONY: check-mmalloc maybe-check-mmalloc |
20684 | maybe-check-mmalloc: | |
20685 | @if mmalloc | |
20686 | maybe-check-mmalloc: check-mmalloc | |
3866be5d | 20687 | |
b813574b | 20688 | check-mmalloc: |
3866be5d | 20689 | |
b813574b | 20690 | @endif mmalloc |
3866be5d | 20691 | |
b813574b PB |
20692 | .PHONY: install-mmalloc maybe-install-mmalloc |
20693 | maybe-install-mmalloc: | |
20694 | @if mmalloc | |
20695 | maybe-install-mmalloc: install-mmalloc | |
4fa63067 | 20696 | |
b813574b | 20697 | install-mmalloc: installdirs |
0aed8855 | 20698 | @: $(MAKE); $(unstage) |
4fa63067 NN |
20699 | @r=`${PWD_COMMAND}`; export r; \ |
20700 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20701 | $(HOST_EXPORTS) \ |
b00612cc | 20702 | (cd $(HOST_SUBDIR)/mmalloc && \ |
2da12f12 | 20703 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 20704 | |
b813574b | 20705 | @endif mmalloc |
4fa63067 NN |
20706 | |
20707 | # Other targets (info, dvi, etc.) | |
20708 | ||
b813574b PB |
20709 | .PHONY: maybe-info-mmalloc info-mmalloc |
20710 | maybe-info-mmalloc: | |
20711 | @if mmalloc | |
20712 | maybe-info-mmalloc: info-mmalloc | |
4fa63067 | 20713 | |
b813574b PB |
20714 | info-mmalloc: \ |
20715 | configure-mmalloc | |
0aed8855 | 20716 | @: $(MAKE); $(unstage) |
b813574b | 20717 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20718 | r=`${PWD_COMMAND}`; export r; \ |
20719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20720 | $(HOST_EXPORTS) \ |
b813574b | 20721 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20722 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20723 | done; \ | |
b813574b | 20724 | echo "Doing info in mmalloc" ; \ |
b00612cc | 20725 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20726 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20727 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20728 | "RANLIB=$${RANLIB}" \ | |
20729 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20730 | info) \ |
4fa63067 NN |
20731 | || exit 1 |
20732 | ||
b813574b | 20733 | @endif mmalloc |
4fa63067 | 20734 | |
b813574b PB |
20735 | .PHONY: maybe-dvi-mmalloc dvi-mmalloc |
20736 | maybe-dvi-mmalloc: | |
20737 | @if mmalloc | |
20738 | maybe-dvi-mmalloc: dvi-mmalloc | |
4fa63067 | 20739 | |
b813574b PB |
20740 | dvi-mmalloc: \ |
20741 | configure-mmalloc | |
0aed8855 | 20742 | @: $(MAKE); $(unstage) |
b813574b | 20743 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20744 | r=`${PWD_COMMAND}`; export r; \ |
20745 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20746 | $(HOST_EXPORTS) \ |
b813574b | 20747 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20748 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20749 | done; \ | |
b813574b | 20750 | echo "Doing dvi in mmalloc" ; \ |
b00612cc | 20751 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20752 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20753 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20754 | "RANLIB=$${RANLIB}" \ | |
20755 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20756 | dvi) \ |
4fa63067 NN |
20757 | || exit 1 |
20758 | ||
b813574b | 20759 | @endif mmalloc |
4fa63067 | 20760 | |
6d389afc MS |
20761 | .PHONY: maybe-html-mmalloc html-mmalloc |
20762 | maybe-html-mmalloc: | |
20763 | @if mmalloc | |
20764 | maybe-html-mmalloc: html-mmalloc | |
20765 | ||
20766 | html-mmalloc: \ | |
20767 | configure-mmalloc | |
0aed8855 | 20768 | @: $(MAKE); $(unstage) |
6d389afc MS |
20769 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
20770 | r=`${PWD_COMMAND}`; export r; \ | |
20771 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
20772 | $(HOST_EXPORTS) \ |
20773 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20774 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20775 | done; \ | |
20776 | echo "Doing html in mmalloc" ; \ | |
b00612cc | 20777 | (cd $(HOST_SUBDIR)/mmalloc && \ |
6d389afc MS |
20778 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20779 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20780 | "RANLIB=$${RANLIB}" \ | |
20781 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
20782 | html) \ | |
20783 | || exit 1 | |
20784 | ||
20785 | @endif mmalloc | |
20786 | ||
b813574b PB |
20787 | .PHONY: maybe-TAGS-mmalloc TAGS-mmalloc |
20788 | maybe-TAGS-mmalloc: | |
20789 | @if mmalloc | |
20790 | maybe-TAGS-mmalloc: TAGS-mmalloc | |
4fa63067 | 20791 | |
b813574b PB |
20792 | TAGS-mmalloc: \ |
20793 | configure-mmalloc | |
0aed8855 | 20794 | @: $(MAKE); $(unstage) |
b813574b | 20795 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20796 | r=`${PWD_COMMAND}`; export r; \ |
20797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20798 | $(HOST_EXPORTS) \ |
b813574b | 20799 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20800 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20801 | done; \ | |
b813574b | 20802 | echo "Doing TAGS in mmalloc" ; \ |
b00612cc | 20803 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20804 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20805 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20806 | "RANLIB=$${RANLIB}" \ | |
20807 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20808 | TAGS) \ |
4fa63067 NN |
20809 | || exit 1 |
20810 | ||
b813574b | 20811 | @endif mmalloc |
4fa63067 | 20812 | |
b813574b PB |
20813 | .PHONY: maybe-install-info-mmalloc install-info-mmalloc |
20814 | maybe-install-info-mmalloc: | |
20815 | @if mmalloc | |
20816 | maybe-install-info-mmalloc: install-info-mmalloc | |
4fa63067 | 20817 | |
b813574b PB |
20818 | install-info-mmalloc: \ |
20819 | configure-mmalloc \ | |
20820 | info-mmalloc | |
0aed8855 | 20821 | @: $(MAKE); $(unstage) |
b813574b | 20822 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20823 | r=`${PWD_COMMAND}`; export r; \ |
20824 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20825 | $(HOST_EXPORTS) \ |
b813574b | 20826 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20827 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20828 | done; \ | |
b813574b | 20829 | echo "Doing install-info in mmalloc" ; \ |
b00612cc | 20830 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20831 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20832 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20833 | "RANLIB=$${RANLIB}" \ | |
20834 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20835 | install-info) \ |
4fa63067 NN |
20836 | || exit 1 |
20837 | ||
b813574b | 20838 | @endif mmalloc |
4fa63067 | 20839 | |
108a6f8e CD |
20840 | .PHONY: maybe-install-html-mmalloc install-html-mmalloc |
20841 | maybe-install-html-mmalloc: | |
20842 | @if mmalloc | |
20843 | maybe-install-html-mmalloc: install-html-mmalloc | |
20844 | ||
20845 | install-html-mmalloc: \ | |
20846 | configure-mmalloc \ | |
20847 | html-mmalloc | |
20848 | @: $(MAKE); $(unstage) | |
20849 | @[ -f ./mmalloc/Makefile ] || exit 0; \ | |
20850 | r=`${PWD_COMMAND}`; export r; \ | |
20851 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
20852 | $(HOST_EXPORTS) \ | |
20853 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
20854 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
20855 | done; \ | |
20856 | echo "Doing install-html in mmalloc" ; \ | |
20857 | (cd $(HOST_SUBDIR)/mmalloc && \ | |
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}" \ | |
20862 | install-html) \ | |
20863 | || exit 1 | |
20864 | ||
20865 | @endif mmalloc | |
20866 | ||
b813574b PB |
20867 | .PHONY: maybe-installcheck-mmalloc installcheck-mmalloc |
20868 | maybe-installcheck-mmalloc: | |
20869 | @if mmalloc | |
20870 | maybe-installcheck-mmalloc: installcheck-mmalloc | |
4fa63067 | 20871 | |
b813574b PB |
20872 | installcheck-mmalloc: \ |
20873 | configure-mmalloc | |
0aed8855 | 20874 | @: $(MAKE); $(unstage) |
b813574b | 20875 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20876 | r=`${PWD_COMMAND}`; export r; \ |
20877 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20878 | $(HOST_EXPORTS) \ |
b813574b | 20879 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20880 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20881 | done; \ | |
b813574b | 20882 | echo "Doing installcheck in mmalloc" ; \ |
b00612cc | 20883 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20884 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20885 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20886 | "RANLIB=$${RANLIB}" \ | |
20887 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20888 | installcheck) \ |
4fa63067 NN |
20889 | || exit 1 |
20890 | ||
b813574b | 20891 | @endif mmalloc |
4fa63067 | 20892 | |
b813574b PB |
20893 | .PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc |
20894 | maybe-mostlyclean-mmalloc: | |
20895 | @if mmalloc | |
20896 | maybe-mostlyclean-mmalloc: mostlyclean-mmalloc | |
4fa63067 | 20897 | |
b813574b | 20898 | mostlyclean-mmalloc: |
0aed8855 | 20899 | @: $(MAKE); $(unstage) |
b813574b | 20900 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20901 | r=`${PWD_COMMAND}`; export r; \ |
20902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20903 | $(HOST_EXPORTS) \ |
b813574b | 20904 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20905 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20906 | done; \ | |
b813574b | 20907 | echo "Doing mostlyclean in mmalloc" ; \ |
b00612cc | 20908 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20909 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20910 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20911 | "RANLIB=$${RANLIB}" \ | |
20912 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20913 | mostlyclean) \ |
4fa63067 NN |
20914 | || exit 1 |
20915 | ||
b813574b | 20916 | @endif mmalloc |
4fa63067 | 20917 | |
b813574b PB |
20918 | .PHONY: maybe-clean-mmalloc clean-mmalloc |
20919 | maybe-clean-mmalloc: | |
20920 | @if mmalloc | |
20921 | maybe-clean-mmalloc: clean-mmalloc | |
4fa63067 | 20922 | |
b813574b | 20923 | clean-mmalloc: |
0aed8855 | 20924 | @: $(MAKE); $(unstage) |
b813574b | 20925 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20926 | r=`${PWD_COMMAND}`; export r; \ |
20927 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20928 | $(HOST_EXPORTS) \ |
b813574b | 20929 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20930 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20931 | done; \ | |
b813574b | 20932 | echo "Doing clean in mmalloc" ; \ |
b00612cc | 20933 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20934 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20935 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20936 | "RANLIB=$${RANLIB}" \ | |
20937 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20938 | clean) \ |
4fa63067 NN |
20939 | || exit 1 |
20940 | ||
b813574b | 20941 | @endif mmalloc |
4fa63067 | 20942 | |
b813574b PB |
20943 | .PHONY: maybe-distclean-mmalloc distclean-mmalloc |
20944 | maybe-distclean-mmalloc: | |
20945 | @if mmalloc | |
20946 | maybe-distclean-mmalloc: distclean-mmalloc | |
4fa63067 | 20947 | |
b813574b | 20948 | distclean-mmalloc: |
0aed8855 | 20949 | @: $(MAKE); $(unstage) |
b813574b | 20950 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20951 | r=`${PWD_COMMAND}`; export r; \ |
20952 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20953 | $(HOST_EXPORTS) \ |
b813574b | 20954 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20955 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20956 | done; \ | |
b813574b | 20957 | echo "Doing distclean in mmalloc" ; \ |
b00612cc | 20958 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20959 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20960 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20961 | "RANLIB=$${RANLIB}" \ | |
20962 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20963 | distclean) \ |
4fa63067 NN |
20964 | || exit 1 |
20965 | ||
b813574b | 20966 | @endif mmalloc |
4fa63067 | 20967 | |
b813574b PB |
20968 | .PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc |
20969 | maybe-maintainer-clean-mmalloc: | |
20970 | @if mmalloc | |
20971 | maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc | |
4fa63067 | 20972 | |
b813574b | 20973 | maintainer-clean-mmalloc: |
0aed8855 | 20974 | @: $(MAKE); $(unstage) |
b813574b | 20975 | @[ -f ./mmalloc/Makefile ] || exit 0; \ |
4fa63067 NN |
20976 | r=`${PWD_COMMAND}`; export r; \ |
20977 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 20978 | $(HOST_EXPORTS) \ |
b813574b | 20979 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
20980 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
20981 | done; \ | |
b813574b | 20982 | echo "Doing maintainer-clean in mmalloc" ; \ |
b00612cc | 20983 | (cd $(HOST_SUBDIR)/mmalloc && \ |
4fa63067 NN |
20984 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
20985 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
20986 | "RANLIB=$${RANLIB}" \ | |
20987 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 20988 | maintainer-clean) \ |
4fa63067 | 20989 | || exit 1 |
16ae0395 | 20990 | |
b813574b | 20991 | @endif mmalloc |
3866be5d NN |
20992 | |
20993 | ||
a7254363 | 20994 | |
b813574b PB |
20995 | .PHONY: configure-patch maybe-configure-patch |
20996 | maybe-configure-patch: | |
20997 | @if patch | |
20998 | maybe-configure-patch: configure-patch | |
c52c6897 | 20999 | configure-patch: |
0aed8855 | 21000 | @: $(MAKE); $(unstage) |
c52c6897 | 21001 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21002 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
21003 | test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \ |
21004 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \ | |
378fce5b | 21005 | $(HOST_EXPORTS) \ |
a7254363 PB |
21006 | echo Configuring in $(HOST_SUBDIR)/patch; \ |
21007 | cd "$(HOST_SUBDIR)/patch" || exit 1; \ | |
e2b9e2dc | 21008 | case $(srcdir) in \ |
b00612cc PB |
21009 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
21010 | *) topdir=`echo $(HOST_SUBDIR)/patch/ | \ | |
21011 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 21012 | esac; \ |
b00612cc PB |
21013 | srcdiroption="--srcdir=$${topdir}/patch"; \ |
21014 | libsrcdir="$$s/patch"; \ | |
e2b9e2dc | 21015 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 21016 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 21017 | || exit 1 |
b813574b | 21018 | @endif patch |
e2b9e2dc | 21019 | |
a7254363 PB |
21020 | |
21021 | ||
d545f33b PB |
21022 | |
21023 | ||
b813574b PB |
21024 | .PHONY: all-patch maybe-all-patch |
21025 | maybe-all-patch: | |
21026 | @if patch | |
d27cc32e | 21027 | TARGET-patch=all |
b813574b PB |
21028 | maybe-all-patch: all-patch |
21029 | all-patch: configure-patch | |
0aed8855 | 21030 | @: $(MAKE); $(unstage) |
b40e3958 L |
21031 | @r=`${PWD_COMMAND}`; export r; \ |
21032 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21033 | $(HOST_EXPORTS) \ |
b00612cc PB |
21034 | (cd $(HOST_SUBDIR)/patch && \ |
21035 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-patch)) | |
b813574b | 21036 | @endif patch |
3866be5d | 21037 | |
a7254363 | 21038 | |
d545f33b PB |
21039 | |
21040 | ||
b813574b PB |
21041 | .PHONY: check-patch maybe-check-patch |
21042 | maybe-check-patch: | |
21043 | @if patch | |
21044 | maybe-check-patch: check-patch | |
3866be5d | 21045 | |
b813574b | 21046 | check-patch: |
0aed8855 | 21047 | @: $(MAKE); $(unstage) |
b40e3958 L |
21048 | @r=`${PWD_COMMAND}`; export r; \ |
21049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21050 | $(HOST_EXPORTS) \ |
b00612cc PB |
21051 | (cd $(HOST_SUBDIR)/patch && \ |
21052 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 21053 | |
b813574b | 21054 | @endif patch |
3866be5d | 21055 | |
b813574b PB |
21056 | .PHONY: install-patch maybe-install-patch |
21057 | maybe-install-patch: | |
21058 | @if patch | |
21059 | maybe-install-patch: install-patch | |
16ae0395 | 21060 | |
b813574b | 21061 | install-patch: installdirs |
0aed8855 | 21062 | @: $(MAKE); $(unstage) |
b40e3958 L |
21063 | @r=`${PWD_COMMAND}`; export r; \ |
21064 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21065 | $(HOST_EXPORTS) \ |
b00612cc | 21066 | (cd $(HOST_SUBDIR)/patch && \ |
2da12f12 | 21067 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 21068 | |
b813574b | 21069 | @endif patch |
3866be5d | 21070 | |
4fa63067 NN |
21071 | # Other targets (info, dvi, etc.) |
21072 | ||
b813574b PB |
21073 | .PHONY: maybe-info-patch info-patch |
21074 | maybe-info-patch: | |
21075 | @if patch | |
21076 | maybe-info-patch: info-patch | |
4fa63067 | 21077 | |
b813574b PB |
21078 | info-patch: \ |
21079 | configure-patch | |
0aed8855 | 21080 | @: $(MAKE); $(unstage) |
b813574b | 21081 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21082 | r=`${PWD_COMMAND}`; export r; \ |
21083 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21084 | $(HOST_EXPORTS) \ |
b813574b | 21085 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21086 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21087 | done; \ | |
b813574b | 21088 | echo "Doing info in patch" ; \ |
b00612cc | 21089 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21090 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21091 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21092 | "RANLIB=$${RANLIB}" \ | |
21093 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21094 | info) \ |
4fa63067 NN |
21095 | || exit 1 |
21096 | ||
b813574b | 21097 | @endif patch |
4fa63067 | 21098 | |
b813574b PB |
21099 | .PHONY: maybe-dvi-patch dvi-patch |
21100 | maybe-dvi-patch: | |
21101 | @if patch | |
21102 | maybe-dvi-patch: dvi-patch | |
4fa63067 | 21103 | |
b813574b PB |
21104 | dvi-patch: \ |
21105 | configure-patch | |
0aed8855 | 21106 | @: $(MAKE); $(unstage) |
b813574b | 21107 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21108 | r=`${PWD_COMMAND}`; export r; \ |
21109 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21110 | $(HOST_EXPORTS) \ |
b813574b | 21111 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21112 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21113 | done; \ | |
b813574b | 21114 | echo "Doing dvi in patch" ; \ |
b00612cc | 21115 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21116 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21117 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21118 | "RANLIB=$${RANLIB}" \ | |
21119 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21120 | dvi) \ |
4fa63067 NN |
21121 | || exit 1 |
21122 | ||
b813574b | 21123 | @endif patch |
4fa63067 | 21124 | |
6d389afc MS |
21125 | .PHONY: maybe-html-patch html-patch |
21126 | maybe-html-patch: | |
21127 | @if patch | |
21128 | maybe-html-patch: html-patch | |
21129 | ||
21130 | html-patch: \ | |
21131 | configure-patch | |
0aed8855 | 21132 | @: $(MAKE); $(unstage) |
6d389afc MS |
21133 | @[ -f ./patch/Makefile ] || exit 0; \ |
21134 | r=`${PWD_COMMAND}`; export r; \ | |
21135 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21136 | $(HOST_EXPORTS) \ |
21137 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21138 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21139 | done; \ | |
21140 | echo "Doing html in patch" ; \ | |
b00612cc | 21141 | (cd $(HOST_SUBDIR)/patch && \ |
6d389afc MS |
21142 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21143 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21144 | "RANLIB=$${RANLIB}" \ | |
21145 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21146 | html) \ | |
21147 | || exit 1 | |
21148 | ||
21149 | @endif patch | |
21150 | ||
b813574b PB |
21151 | .PHONY: maybe-TAGS-patch TAGS-patch |
21152 | maybe-TAGS-patch: | |
21153 | @if patch | |
21154 | maybe-TAGS-patch: TAGS-patch | |
4fa63067 | 21155 | |
b813574b PB |
21156 | TAGS-patch: \ |
21157 | configure-patch | |
0aed8855 | 21158 | @: $(MAKE); $(unstage) |
b813574b | 21159 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21160 | r=`${PWD_COMMAND}`; export r; \ |
21161 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21162 | $(HOST_EXPORTS) \ |
b813574b | 21163 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21164 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21165 | done; \ | |
b813574b | 21166 | echo "Doing TAGS in patch" ; \ |
b00612cc | 21167 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21168 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21169 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21170 | "RANLIB=$${RANLIB}" \ | |
21171 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21172 | TAGS) \ |
4fa63067 NN |
21173 | || exit 1 |
21174 | ||
b813574b | 21175 | @endif patch |
4fa63067 | 21176 | |
b813574b PB |
21177 | .PHONY: maybe-install-info-patch install-info-patch |
21178 | maybe-install-info-patch: | |
21179 | @if patch | |
21180 | maybe-install-info-patch: install-info-patch | |
4fa63067 | 21181 | |
b813574b PB |
21182 | install-info-patch: \ |
21183 | configure-patch \ | |
21184 | info-patch | |
0aed8855 | 21185 | @: $(MAKE); $(unstage) |
b813574b | 21186 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21187 | r=`${PWD_COMMAND}`; export r; \ |
21188 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21189 | $(HOST_EXPORTS) \ |
b813574b | 21190 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21191 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21192 | done; \ | |
b813574b | 21193 | echo "Doing install-info in patch" ; \ |
b00612cc | 21194 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21195 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21196 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21197 | "RANLIB=$${RANLIB}" \ | |
21198 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21199 | install-info) \ |
4fa63067 NN |
21200 | || exit 1 |
21201 | ||
b813574b | 21202 | @endif patch |
4fa63067 | 21203 | |
108a6f8e CD |
21204 | .PHONY: maybe-install-html-patch install-html-patch |
21205 | maybe-install-html-patch: | |
21206 | @if patch | |
21207 | maybe-install-html-patch: install-html-patch | |
21208 | ||
21209 | install-html-patch: \ | |
21210 | configure-patch \ | |
21211 | html-patch | |
21212 | @: $(MAKE); $(unstage) | |
21213 | @[ -f ./patch/Makefile ] || exit 0; \ | |
21214 | r=`${PWD_COMMAND}`; export r; \ | |
21215 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21216 | $(HOST_EXPORTS) \ | |
21217 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21218 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21219 | done; \ | |
21220 | echo "Doing install-html in patch" ; \ | |
21221 | (cd $(HOST_SUBDIR)/patch && \ | |
21222 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
21223 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21224 | "RANLIB=$${RANLIB}" \ | |
21225 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21226 | install-html) \ | |
21227 | || exit 1 | |
21228 | ||
21229 | @endif patch | |
21230 | ||
b813574b PB |
21231 | .PHONY: maybe-installcheck-patch installcheck-patch |
21232 | maybe-installcheck-patch: | |
21233 | @if patch | |
21234 | maybe-installcheck-patch: installcheck-patch | |
4fa63067 | 21235 | |
b813574b PB |
21236 | installcheck-patch: \ |
21237 | configure-patch | |
0aed8855 | 21238 | @: $(MAKE); $(unstage) |
b813574b | 21239 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21240 | r=`${PWD_COMMAND}`; export r; \ |
21241 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21242 | $(HOST_EXPORTS) \ |
b813574b | 21243 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21244 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21245 | done; \ | |
b813574b | 21246 | echo "Doing installcheck in patch" ; \ |
b00612cc | 21247 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21248 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21249 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21250 | "RANLIB=$${RANLIB}" \ | |
21251 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21252 | installcheck) \ |
4fa63067 NN |
21253 | || exit 1 |
21254 | ||
b813574b | 21255 | @endif patch |
4fa63067 | 21256 | |
b813574b PB |
21257 | .PHONY: maybe-mostlyclean-patch mostlyclean-patch |
21258 | maybe-mostlyclean-patch: | |
21259 | @if patch | |
21260 | maybe-mostlyclean-patch: mostlyclean-patch | |
4fa63067 | 21261 | |
b813574b | 21262 | mostlyclean-patch: |
0aed8855 | 21263 | @: $(MAKE); $(unstage) |
b813574b | 21264 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21265 | r=`${PWD_COMMAND}`; export r; \ |
21266 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21267 | $(HOST_EXPORTS) \ |
b813574b | 21268 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21269 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21270 | done; \ | |
b813574b | 21271 | echo "Doing mostlyclean in patch" ; \ |
b00612cc | 21272 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21273 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21274 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21275 | "RANLIB=$${RANLIB}" \ | |
21276 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21277 | mostlyclean) \ |
4fa63067 NN |
21278 | || exit 1 |
21279 | ||
b813574b | 21280 | @endif patch |
4fa63067 | 21281 | |
b813574b PB |
21282 | .PHONY: maybe-clean-patch clean-patch |
21283 | maybe-clean-patch: | |
21284 | @if patch | |
21285 | maybe-clean-patch: clean-patch | |
4fa63067 | 21286 | |
b813574b | 21287 | clean-patch: |
0aed8855 | 21288 | @: $(MAKE); $(unstage) |
b813574b | 21289 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21290 | r=`${PWD_COMMAND}`; export r; \ |
21291 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21292 | $(HOST_EXPORTS) \ |
b813574b | 21293 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21294 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21295 | done; \ | |
b813574b | 21296 | echo "Doing clean in patch" ; \ |
b00612cc | 21297 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21298 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21299 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21300 | "RANLIB=$${RANLIB}" \ | |
21301 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21302 | clean) \ |
4fa63067 NN |
21303 | || exit 1 |
21304 | ||
b813574b | 21305 | @endif patch |
4fa63067 | 21306 | |
b813574b PB |
21307 | .PHONY: maybe-distclean-patch distclean-patch |
21308 | maybe-distclean-patch: | |
21309 | @if patch | |
21310 | maybe-distclean-patch: distclean-patch | |
4fa63067 | 21311 | |
b813574b | 21312 | distclean-patch: |
0aed8855 | 21313 | @: $(MAKE); $(unstage) |
b813574b | 21314 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21315 | r=`${PWD_COMMAND}`; export r; \ |
21316 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21317 | $(HOST_EXPORTS) \ |
b813574b | 21318 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21319 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21320 | done; \ | |
b813574b | 21321 | echo "Doing distclean in patch" ; \ |
b00612cc | 21322 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21323 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21324 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21325 | "RANLIB=$${RANLIB}" \ | |
21326 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21327 | distclean) \ |
4fa63067 NN |
21328 | || exit 1 |
21329 | ||
b813574b | 21330 | @endif patch |
4fa63067 | 21331 | |
b813574b PB |
21332 | .PHONY: maybe-maintainer-clean-patch maintainer-clean-patch |
21333 | maybe-maintainer-clean-patch: | |
21334 | @if patch | |
21335 | maybe-maintainer-clean-patch: maintainer-clean-patch | |
4fa63067 | 21336 | |
b813574b | 21337 | maintainer-clean-patch: |
0aed8855 | 21338 | @: $(MAKE); $(unstage) |
b813574b | 21339 | @[ -f ./patch/Makefile ] || exit 0; \ |
4fa63067 NN |
21340 | r=`${PWD_COMMAND}`; export r; \ |
21341 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21342 | $(HOST_EXPORTS) \ |
b813574b | 21343 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21344 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21345 | done; \ | |
b813574b | 21346 | echo "Doing maintainer-clean in patch" ; \ |
b00612cc | 21347 | (cd $(HOST_SUBDIR)/patch && \ |
4fa63067 NN |
21348 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21349 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21350 | "RANLIB=$${RANLIB}" \ | |
21351 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21352 | maintainer-clean) \ |
4fa63067 NN |
21353 | || exit 1 |
21354 | ||
b813574b | 21355 | @endif patch |
4fa63067 NN |
21356 | |
21357 | ||
a7254363 | 21358 | |
b813574b PB |
21359 | .PHONY: configure-perl maybe-configure-perl |
21360 | maybe-configure-perl: | |
21361 | @if perl | |
21362 | maybe-configure-perl: configure-perl | |
c52c6897 | 21363 | configure-perl: |
0aed8855 | 21364 | @: $(MAKE); $(unstage) |
c52c6897 | 21365 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21366 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
21367 | test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \ |
21368 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \ | |
378fce5b | 21369 | $(HOST_EXPORTS) \ |
a7254363 PB |
21370 | echo Configuring in $(HOST_SUBDIR)/perl; \ |
21371 | cd "$(HOST_SUBDIR)/perl" || exit 1; \ | |
e2b9e2dc | 21372 | case $(srcdir) in \ |
b00612cc PB |
21373 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
21374 | *) topdir=`echo $(HOST_SUBDIR)/perl/ | \ | |
21375 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 21376 | esac; \ |
b00612cc PB |
21377 | srcdiroption="--srcdir=$${topdir}/perl"; \ |
21378 | libsrcdir="$$s/perl"; \ | |
e2b9e2dc | 21379 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 21380 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 21381 | || exit 1 |
b813574b | 21382 | @endif perl |
e2b9e2dc | 21383 | |
a7254363 PB |
21384 | |
21385 | ||
d545f33b PB |
21386 | |
21387 | ||
b813574b PB |
21388 | .PHONY: all-perl maybe-all-perl |
21389 | maybe-all-perl: | |
21390 | @if perl | |
d27cc32e | 21391 | TARGET-perl=all |
b813574b PB |
21392 | maybe-all-perl: all-perl |
21393 | all-perl: configure-perl | |
0aed8855 | 21394 | @: $(MAKE); $(unstage) |
b40e3958 L |
21395 | @r=`${PWD_COMMAND}`; export r; \ |
21396 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21397 | $(HOST_EXPORTS) \ |
b00612cc PB |
21398 | (cd $(HOST_SUBDIR)/perl && \ |
21399 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-perl)) | |
b813574b | 21400 | @endif perl |
3866be5d | 21401 | |
a7254363 | 21402 | |
d545f33b PB |
21403 | |
21404 | ||
b813574b PB |
21405 | .PHONY: check-perl maybe-check-perl |
21406 | maybe-check-perl: | |
21407 | @if perl | |
21408 | maybe-check-perl: check-perl | |
3866be5d | 21409 | |
b813574b | 21410 | check-perl: |
0aed8855 | 21411 | @: $(MAKE); $(unstage) |
b40e3958 L |
21412 | @r=`${PWD_COMMAND}`; export r; \ |
21413 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21414 | $(HOST_EXPORTS) \ |
b00612cc PB |
21415 | (cd $(HOST_SUBDIR)/perl && \ |
21416 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 21417 | |
b813574b | 21418 | @endif perl |
3866be5d | 21419 | |
b813574b PB |
21420 | .PHONY: install-perl maybe-install-perl |
21421 | maybe-install-perl: | |
21422 | @if perl | |
21423 | maybe-install-perl: install-perl | |
16ae0395 | 21424 | |
b813574b | 21425 | install-perl: installdirs |
0aed8855 | 21426 | @: $(MAKE); $(unstage) |
b40e3958 L |
21427 | @r=`${PWD_COMMAND}`; export r; \ |
21428 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21429 | $(HOST_EXPORTS) \ |
b00612cc | 21430 | (cd $(HOST_SUBDIR)/perl && \ |
2da12f12 | 21431 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 21432 | |
b813574b | 21433 | @endif perl |
3866be5d | 21434 | |
4fa63067 NN |
21435 | # Other targets (info, dvi, etc.) |
21436 | ||
b813574b PB |
21437 | .PHONY: maybe-info-perl info-perl |
21438 | maybe-info-perl: | |
21439 | @if perl | |
21440 | maybe-info-perl: info-perl | |
4fa63067 | 21441 | |
b813574b PB |
21442 | info-perl: \ |
21443 | configure-perl | |
0aed8855 | 21444 | @: $(MAKE); $(unstage) |
b813574b | 21445 | @[ -f ./perl/Makefile ] || exit 0; \ |
b40e3958 L |
21446 | r=`${PWD_COMMAND}`; export r; \ |
21447 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21448 | $(HOST_EXPORTS) \ |
b813574b | 21449 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21450 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21451 | done; \ | |
b813574b | 21452 | echo "Doing info in perl" ; \ |
b00612cc | 21453 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21454 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21455 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21456 | "RANLIB=$${RANLIB}" \ | |
21457 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21458 | info) \ |
e2b9e2dc NN |
21459 | || exit 1 |
21460 | ||
b813574b | 21461 | @endif perl |
4fa63067 | 21462 | |
b813574b PB |
21463 | .PHONY: maybe-dvi-perl dvi-perl |
21464 | maybe-dvi-perl: | |
21465 | @if perl | |
21466 | maybe-dvi-perl: dvi-perl | |
4fa63067 | 21467 | |
b813574b PB |
21468 | dvi-perl: \ |
21469 | configure-perl | |
0aed8855 | 21470 | @: $(MAKE); $(unstage) |
b813574b | 21471 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 | 21472 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21473 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21474 | $(HOST_EXPORTS) \ |
b813574b | 21475 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21476 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21477 | done; \ | |
b813574b | 21478 | echo "Doing dvi in perl" ; \ |
b00612cc | 21479 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21480 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21481 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21482 | "RANLIB=$${RANLIB}" \ | |
21483 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21484 | dvi) \ |
4fa63067 | 21485 | || exit 1 |
3866be5d | 21486 | |
b813574b | 21487 | @endif perl |
3866be5d | 21488 | |
6d389afc MS |
21489 | .PHONY: maybe-html-perl html-perl |
21490 | maybe-html-perl: | |
21491 | @if perl | |
21492 | maybe-html-perl: html-perl | |
21493 | ||
21494 | html-perl: \ | |
21495 | configure-perl | |
0aed8855 | 21496 | @: $(MAKE); $(unstage) |
6d389afc MS |
21497 | @[ -f ./perl/Makefile ] || exit 0; \ |
21498 | r=`${PWD_COMMAND}`; export r; \ | |
21499 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21500 | $(HOST_EXPORTS) \ |
21501 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21502 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21503 | done; \ | |
21504 | echo "Doing html in perl" ; \ | |
b00612cc | 21505 | (cd $(HOST_SUBDIR)/perl && \ |
6d389afc MS |
21506 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21507 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21508 | "RANLIB=$${RANLIB}" \ | |
21509 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21510 | html) \ | |
21511 | || exit 1 | |
21512 | ||
21513 | @endif perl | |
21514 | ||
b813574b PB |
21515 | .PHONY: maybe-TAGS-perl TAGS-perl |
21516 | maybe-TAGS-perl: | |
21517 | @if perl | |
21518 | maybe-TAGS-perl: TAGS-perl | |
4fa63067 | 21519 | |
b813574b PB |
21520 | TAGS-perl: \ |
21521 | configure-perl | |
0aed8855 | 21522 | @: $(MAKE); $(unstage) |
b813574b | 21523 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 | 21524 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21526 | $(HOST_EXPORTS) \ |
b813574b | 21527 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21528 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21529 | done; \ | |
b813574b | 21530 | echo "Doing TAGS in perl" ; \ |
b00612cc | 21531 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21532 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21533 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21534 | "RANLIB=$${RANLIB}" \ | |
21535 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21536 | TAGS) \ |
4fa63067 | 21537 | || exit 1 |
3866be5d | 21538 | |
b813574b | 21539 | @endif perl |
3866be5d | 21540 | |
b813574b PB |
21541 | .PHONY: maybe-install-info-perl install-info-perl |
21542 | maybe-install-info-perl: | |
21543 | @if perl | |
21544 | maybe-install-info-perl: install-info-perl | |
16ae0395 | 21545 | |
b813574b PB |
21546 | install-info-perl: \ |
21547 | configure-perl \ | |
21548 | info-perl | |
0aed8855 | 21549 | @: $(MAKE); $(unstage) |
b813574b | 21550 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 NN |
21551 | r=`${PWD_COMMAND}`; export r; \ |
21552 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21553 | $(HOST_EXPORTS) \ |
b813574b | 21554 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21555 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21556 | done; \ | |
b813574b | 21557 | echo "Doing install-info in perl" ; \ |
b00612cc | 21558 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21559 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21560 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21561 | "RANLIB=$${RANLIB}" \ | |
21562 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21563 | install-info) \ |
4fa63067 NN |
21564 | || exit 1 |
21565 | ||
b813574b | 21566 | @endif perl |
4fa63067 | 21567 | |
108a6f8e CD |
21568 | .PHONY: maybe-install-html-perl install-html-perl |
21569 | maybe-install-html-perl: | |
21570 | @if perl | |
21571 | maybe-install-html-perl: install-html-perl | |
21572 | ||
21573 | install-html-perl: \ | |
21574 | configure-perl \ | |
21575 | html-perl | |
21576 | @: $(MAKE); $(unstage) | |
21577 | @[ -f ./perl/Makefile ] || exit 0; \ | |
21578 | r=`${PWD_COMMAND}`; export r; \ | |
21579 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21580 | $(HOST_EXPORTS) \ | |
21581 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21582 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21583 | done; \ | |
21584 | echo "Doing install-html in perl" ; \ | |
21585 | (cd $(HOST_SUBDIR)/perl && \ | |
21586 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
21587 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21588 | "RANLIB=$${RANLIB}" \ | |
21589 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21590 | install-html) \ | |
21591 | || exit 1 | |
21592 | ||
21593 | @endif perl | |
21594 | ||
b813574b PB |
21595 | .PHONY: maybe-installcheck-perl installcheck-perl |
21596 | maybe-installcheck-perl: | |
21597 | @if perl | |
21598 | maybe-installcheck-perl: installcheck-perl | |
4fa63067 | 21599 | |
b813574b PB |
21600 | installcheck-perl: \ |
21601 | configure-perl | |
0aed8855 | 21602 | @: $(MAKE); $(unstage) |
b813574b | 21603 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 NN |
21604 | r=`${PWD_COMMAND}`; export r; \ |
21605 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21606 | $(HOST_EXPORTS) \ |
b813574b | 21607 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21608 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21609 | done; \ | |
b813574b | 21610 | echo "Doing installcheck in perl" ; \ |
b00612cc | 21611 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21612 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21613 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21614 | "RANLIB=$${RANLIB}" \ | |
21615 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21616 | installcheck) \ |
4fa63067 NN |
21617 | || exit 1 |
21618 | ||
b813574b | 21619 | @endif perl |
4fa63067 | 21620 | |
b813574b PB |
21621 | .PHONY: maybe-mostlyclean-perl mostlyclean-perl |
21622 | maybe-mostlyclean-perl: | |
21623 | @if perl | |
21624 | maybe-mostlyclean-perl: mostlyclean-perl | |
4fa63067 | 21625 | |
b813574b | 21626 | mostlyclean-perl: |
0aed8855 | 21627 | @: $(MAKE); $(unstage) |
b813574b | 21628 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 NN |
21629 | r=`${PWD_COMMAND}`; export r; \ |
21630 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21631 | $(HOST_EXPORTS) \ |
b813574b | 21632 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21633 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21634 | done; \ | |
b813574b | 21635 | echo "Doing mostlyclean in perl" ; \ |
b00612cc | 21636 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21637 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21638 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21639 | "RANLIB=$${RANLIB}" \ | |
21640 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21641 | mostlyclean) \ |
4fa63067 NN |
21642 | || exit 1 |
21643 | ||
b813574b | 21644 | @endif perl |
4fa63067 | 21645 | |
b813574b PB |
21646 | .PHONY: maybe-clean-perl clean-perl |
21647 | maybe-clean-perl: | |
21648 | @if perl | |
21649 | maybe-clean-perl: clean-perl | |
4fa63067 | 21650 | |
b813574b | 21651 | clean-perl: |
0aed8855 | 21652 | @: $(MAKE); $(unstage) |
b813574b | 21653 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 NN |
21654 | r=`${PWD_COMMAND}`; export r; \ |
21655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21656 | $(HOST_EXPORTS) \ |
b813574b | 21657 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21658 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21659 | done; \ | |
b813574b | 21660 | echo "Doing clean in perl" ; \ |
b00612cc | 21661 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21662 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21663 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21664 | "RANLIB=$${RANLIB}" \ | |
21665 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21666 | clean) \ |
4fa63067 NN |
21667 | || exit 1 |
21668 | ||
b813574b | 21669 | @endif perl |
4fa63067 | 21670 | |
b813574b PB |
21671 | .PHONY: maybe-distclean-perl distclean-perl |
21672 | maybe-distclean-perl: | |
21673 | @if perl | |
21674 | maybe-distclean-perl: distclean-perl | |
4fa63067 | 21675 | |
b813574b | 21676 | distclean-perl: |
0aed8855 | 21677 | @: $(MAKE); $(unstage) |
b813574b | 21678 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 NN |
21679 | r=`${PWD_COMMAND}`; export r; \ |
21680 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21681 | $(HOST_EXPORTS) \ |
b813574b | 21682 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21683 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21684 | done; \ | |
b813574b | 21685 | echo "Doing distclean in perl" ; \ |
b00612cc | 21686 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21687 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21688 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21689 | "RANLIB=$${RANLIB}" \ | |
21690 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21691 | distclean) \ |
4fa63067 NN |
21692 | || exit 1 |
21693 | ||
b813574b | 21694 | @endif perl |
4fa63067 | 21695 | |
b813574b PB |
21696 | .PHONY: maybe-maintainer-clean-perl maintainer-clean-perl |
21697 | maybe-maintainer-clean-perl: | |
21698 | @if perl | |
21699 | maybe-maintainer-clean-perl: maintainer-clean-perl | |
4fa63067 | 21700 | |
b813574b | 21701 | maintainer-clean-perl: |
0aed8855 | 21702 | @: $(MAKE); $(unstage) |
b813574b | 21703 | @[ -f ./perl/Makefile ] || exit 0; \ |
4fa63067 | 21704 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21705 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 21706 | $(HOST_EXPORTS) \ |
b813574b | 21707 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21708 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21709 | done; \ | |
b813574b | 21710 | echo "Doing maintainer-clean in perl" ; \ |
b00612cc | 21711 | (cd $(HOST_SUBDIR)/perl && \ |
4fa63067 NN |
21712 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21713 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21714 | "RANLIB=$${RANLIB}" \ | |
21715 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21716 | maintainer-clean) \ |
4fa63067 | 21717 | || exit 1 |
3866be5d | 21718 | |
b813574b | 21719 | @endif perl |
3866be5d | 21720 | |
4fa63067 | 21721 | |
a7254363 | 21722 | |
b813574b PB |
21723 | .PHONY: configure-prms maybe-configure-prms |
21724 | maybe-configure-prms: | |
21725 | @if prms | |
21726 | maybe-configure-prms: configure-prms | |
c52c6897 | 21727 | configure-prms: |
0aed8855 | 21728 | @: $(MAKE); $(unstage) |
c52c6897 | 21729 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 21730 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
21731 | test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \ |
21732 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \ | |
378fce5b | 21733 | $(HOST_EXPORTS) \ |
a7254363 PB |
21734 | echo Configuring in $(HOST_SUBDIR)/prms; \ |
21735 | cd "$(HOST_SUBDIR)/prms" || exit 1; \ | |
e2b9e2dc | 21736 | case $(srcdir) in \ |
b00612cc PB |
21737 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
21738 | *) topdir=`echo $(HOST_SUBDIR)/prms/ | \ | |
21739 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 21740 | esac; \ |
b00612cc PB |
21741 | srcdiroption="--srcdir=$${topdir}/prms"; \ |
21742 | libsrcdir="$$s/prms"; \ | |
e2b9e2dc | 21743 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 21744 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 21745 | || exit 1 |
b813574b | 21746 | @endif prms |
e2b9e2dc | 21747 | |
a7254363 PB |
21748 | |
21749 | ||
d545f33b PB |
21750 | |
21751 | ||
b813574b PB |
21752 | .PHONY: all-prms maybe-all-prms |
21753 | maybe-all-prms: | |
21754 | @if prms | |
d27cc32e | 21755 | TARGET-prms=all |
b813574b PB |
21756 | maybe-all-prms: all-prms |
21757 | all-prms: configure-prms | |
0aed8855 | 21758 | @: $(MAKE); $(unstage) |
b40e3958 L |
21759 | @r=`${PWD_COMMAND}`; export r; \ |
21760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21761 | $(HOST_EXPORTS) \ |
b00612cc PB |
21762 | (cd $(HOST_SUBDIR)/prms && \ |
21763 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-prms)) | |
b813574b | 21764 | @endif prms |
3866be5d | 21765 | |
a7254363 | 21766 | |
d545f33b PB |
21767 | |
21768 | ||
b813574b PB |
21769 | .PHONY: check-prms maybe-check-prms |
21770 | maybe-check-prms: | |
21771 | @if prms | |
21772 | maybe-check-prms: check-prms | |
3866be5d | 21773 | |
b813574b | 21774 | check-prms: |
0aed8855 | 21775 | @: $(MAKE); $(unstage) |
b40e3958 L |
21776 | @r=`${PWD_COMMAND}`; export r; \ |
21777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21778 | $(HOST_EXPORTS) \ |
b00612cc PB |
21779 | (cd $(HOST_SUBDIR)/prms && \ |
21780 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 21781 | |
b813574b | 21782 | @endif prms |
3866be5d | 21783 | |
b813574b PB |
21784 | .PHONY: install-prms maybe-install-prms |
21785 | maybe-install-prms: | |
21786 | @if prms | |
21787 | maybe-install-prms: install-prms | |
4fa63067 | 21788 | |
b813574b | 21789 | install-prms: installdirs |
0aed8855 | 21790 | @: $(MAKE); $(unstage) |
4fa63067 NN |
21791 | @r=`${PWD_COMMAND}`; export r; \ |
21792 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21793 | $(HOST_EXPORTS) \ |
b00612cc | 21794 | (cd $(HOST_SUBDIR)/prms && \ |
2da12f12 | 21795 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 21796 | |
b813574b | 21797 | @endif prms |
4fa63067 NN |
21798 | |
21799 | # Other targets (info, dvi, etc.) | |
21800 | ||
b813574b PB |
21801 | .PHONY: maybe-info-prms info-prms |
21802 | maybe-info-prms: | |
21803 | @if prms | |
21804 | maybe-info-prms: info-prms | |
4fa63067 | 21805 | |
b813574b PB |
21806 | info-prms: \ |
21807 | configure-prms | |
0aed8855 | 21808 | @: $(MAKE); $(unstage) |
b813574b | 21809 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
21810 | r=`${PWD_COMMAND}`; export r; \ |
21811 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21812 | $(HOST_EXPORTS) \ |
b813574b | 21813 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21814 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21815 | done; \ | |
b813574b | 21816 | echo "Doing info in prms" ; \ |
b00612cc | 21817 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
21818 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21819 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21820 | "RANLIB=$${RANLIB}" \ | |
21821 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21822 | info) \ |
4fa63067 NN |
21823 | || exit 1 |
21824 | ||
b813574b | 21825 | @endif prms |
4fa63067 | 21826 | |
b813574b PB |
21827 | .PHONY: maybe-dvi-prms dvi-prms |
21828 | maybe-dvi-prms: | |
21829 | @if prms | |
21830 | maybe-dvi-prms: dvi-prms | |
4fa63067 | 21831 | |
b813574b PB |
21832 | dvi-prms: \ |
21833 | configure-prms | |
0aed8855 | 21834 | @: $(MAKE); $(unstage) |
b813574b | 21835 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
21836 | r=`${PWD_COMMAND}`; export r; \ |
21837 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21838 | $(HOST_EXPORTS) \ |
b813574b | 21839 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21840 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21841 | done; \ | |
b813574b | 21842 | echo "Doing dvi in prms" ; \ |
b00612cc | 21843 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
21844 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21845 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21846 | "RANLIB=$${RANLIB}" \ | |
21847 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21848 | dvi) \ |
4fa63067 NN |
21849 | || exit 1 |
21850 | ||
b813574b | 21851 | @endif prms |
4fa63067 | 21852 | |
6d389afc MS |
21853 | .PHONY: maybe-html-prms html-prms |
21854 | maybe-html-prms: | |
21855 | @if prms | |
21856 | maybe-html-prms: html-prms | |
21857 | ||
21858 | html-prms: \ | |
21859 | configure-prms | |
0aed8855 | 21860 | @: $(MAKE); $(unstage) |
6d389afc MS |
21861 | @[ -f ./prms/Makefile ] || exit 0; \ |
21862 | r=`${PWD_COMMAND}`; export r; \ | |
21863 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
21864 | $(HOST_EXPORTS) \ |
21865 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21866 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21867 | done; \ | |
21868 | echo "Doing html in prms" ; \ | |
b00612cc | 21869 | (cd $(HOST_SUBDIR)/prms && \ |
6d389afc MS |
21870 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21871 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21872 | "RANLIB=$${RANLIB}" \ | |
21873 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21874 | html) \ | |
21875 | || exit 1 | |
21876 | ||
21877 | @endif prms | |
21878 | ||
b813574b PB |
21879 | .PHONY: maybe-TAGS-prms TAGS-prms |
21880 | maybe-TAGS-prms: | |
21881 | @if prms | |
21882 | maybe-TAGS-prms: TAGS-prms | |
4fa63067 | 21883 | |
b813574b PB |
21884 | TAGS-prms: \ |
21885 | configure-prms | |
0aed8855 | 21886 | @: $(MAKE); $(unstage) |
b813574b | 21887 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
21888 | r=`${PWD_COMMAND}`; export r; \ |
21889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21890 | $(HOST_EXPORTS) \ |
b813574b | 21891 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21893 | done; \ | |
b813574b | 21894 | echo "Doing TAGS in prms" ; \ |
b00612cc | 21895 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
21896 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21897 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21898 | "RANLIB=$${RANLIB}" \ | |
21899 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21900 | TAGS) \ |
4fa63067 NN |
21901 | || exit 1 |
21902 | ||
b813574b | 21903 | @endif prms |
4fa63067 | 21904 | |
b813574b PB |
21905 | .PHONY: maybe-install-info-prms install-info-prms |
21906 | maybe-install-info-prms: | |
21907 | @if prms | |
21908 | maybe-install-info-prms: install-info-prms | |
4fa63067 | 21909 | |
b813574b PB |
21910 | install-info-prms: \ |
21911 | configure-prms \ | |
21912 | info-prms | |
0aed8855 | 21913 | @: $(MAKE); $(unstage) |
b813574b | 21914 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
21915 | r=`${PWD_COMMAND}`; export r; \ |
21916 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21917 | $(HOST_EXPORTS) \ |
b813574b | 21918 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21919 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21920 | done; \ | |
b813574b | 21921 | echo "Doing install-info in prms" ; \ |
b00612cc | 21922 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
21923 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21924 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21925 | "RANLIB=$${RANLIB}" \ | |
21926 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21927 | install-info) \ |
4fa63067 NN |
21928 | || exit 1 |
21929 | ||
b813574b | 21930 | @endif prms |
4fa63067 | 21931 | |
108a6f8e CD |
21932 | .PHONY: maybe-install-html-prms install-html-prms |
21933 | maybe-install-html-prms: | |
21934 | @if prms | |
21935 | maybe-install-html-prms: install-html-prms | |
21936 | ||
21937 | install-html-prms: \ | |
21938 | configure-prms \ | |
21939 | html-prms | |
21940 | @: $(MAKE); $(unstage) | |
21941 | @[ -f ./prms/Makefile ] || exit 0; \ | |
21942 | r=`${PWD_COMMAND}`; export r; \ | |
21943 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
21944 | $(HOST_EXPORTS) \ | |
21945 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
21946 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
21947 | done; \ | |
21948 | echo "Doing install-html in prms" ; \ | |
21949 | (cd $(HOST_SUBDIR)/prms && \ | |
21950 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
21951 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21952 | "RANLIB=$${RANLIB}" \ | |
21953 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
21954 | install-html) \ | |
21955 | || exit 1 | |
21956 | ||
21957 | @endif prms | |
21958 | ||
b813574b PB |
21959 | .PHONY: maybe-installcheck-prms installcheck-prms |
21960 | maybe-installcheck-prms: | |
21961 | @if prms | |
21962 | maybe-installcheck-prms: installcheck-prms | |
4fa63067 | 21963 | |
b813574b PB |
21964 | installcheck-prms: \ |
21965 | configure-prms | |
0aed8855 | 21966 | @: $(MAKE); $(unstage) |
b813574b | 21967 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
21968 | r=`${PWD_COMMAND}`; export r; \ |
21969 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21970 | $(HOST_EXPORTS) \ |
b813574b | 21971 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21972 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21973 | done; \ | |
b813574b | 21974 | echo "Doing installcheck in prms" ; \ |
b00612cc | 21975 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
21976 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
21977 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
21978 | "RANLIB=$${RANLIB}" \ | |
21979 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 21980 | installcheck) \ |
4fa63067 NN |
21981 | || exit 1 |
21982 | ||
b813574b | 21983 | @endif prms |
4fa63067 | 21984 | |
b813574b PB |
21985 | .PHONY: maybe-mostlyclean-prms mostlyclean-prms |
21986 | maybe-mostlyclean-prms: | |
21987 | @if prms | |
21988 | maybe-mostlyclean-prms: mostlyclean-prms | |
4fa63067 | 21989 | |
b813574b | 21990 | mostlyclean-prms: |
0aed8855 | 21991 | @: $(MAKE); $(unstage) |
b813574b | 21992 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
21993 | r=`${PWD_COMMAND}`; export r; \ |
21994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 21995 | $(HOST_EXPORTS) \ |
b813574b | 21996 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
21997 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
21998 | done; \ | |
b813574b | 21999 | echo "Doing mostlyclean in prms" ; \ |
b00612cc | 22000 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
22001 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22002 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22003 | "RANLIB=$${RANLIB}" \ | |
22004 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22005 | mostlyclean) \ |
4fa63067 NN |
22006 | || exit 1 |
22007 | ||
b813574b | 22008 | @endif prms |
4fa63067 | 22009 | |
b813574b PB |
22010 | .PHONY: maybe-clean-prms clean-prms |
22011 | maybe-clean-prms: | |
22012 | @if prms | |
22013 | maybe-clean-prms: clean-prms | |
4fa63067 | 22014 | |
b813574b | 22015 | clean-prms: |
0aed8855 | 22016 | @: $(MAKE); $(unstage) |
b813574b | 22017 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
22018 | r=`${PWD_COMMAND}`; export r; \ |
22019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22020 | $(HOST_EXPORTS) \ |
b813574b | 22021 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22022 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22023 | done; \ | |
b813574b | 22024 | echo "Doing clean in prms" ; \ |
b00612cc | 22025 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
22026 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22027 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22028 | "RANLIB=$${RANLIB}" \ | |
22029 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22030 | clean) \ |
4fa63067 NN |
22031 | || exit 1 |
22032 | ||
b813574b | 22033 | @endif prms |
4fa63067 | 22034 | |
b813574b PB |
22035 | .PHONY: maybe-distclean-prms distclean-prms |
22036 | maybe-distclean-prms: | |
22037 | @if prms | |
22038 | maybe-distclean-prms: distclean-prms | |
4fa63067 | 22039 | |
b813574b | 22040 | distclean-prms: |
0aed8855 | 22041 | @: $(MAKE); $(unstage) |
b813574b | 22042 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
22043 | r=`${PWD_COMMAND}`; export r; \ |
22044 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22045 | $(HOST_EXPORTS) \ |
b813574b | 22046 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22047 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22048 | done; \ | |
b813574b | 22049 | echo "Doing distclean in prms" ; \ |
b00612cc | 22050 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
22051 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22052 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22053 | "RANLIB=$${RANLIB}" \ | |
22054 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22055 | distclean) \ |
4fa63067 NN |
22056 | || exit 1 |
22057 | ||
b813574b | 22058 | @endif prms |
4fa63067 | 22059 | |
b813574b PB |
22060 | .PHONY: maybe-maintainer-clean-prms maintainer-clean-prms |
22061 | maybe-maintainer-clean-prms: | |
22062 | @if prms | |
22063 | maybe-maintainer-clean-prms: maintainer-clean-prms | |
4fa63067 | 22064 | |
b813574b | 22065 | maintainer-clean-prms: |
0aed8855 | 22066 | @: $(MAKE); $(unstage) |
b813574b | 22067 | @[ -f ./prms/Makefile ] || exit 0; \ |
4fa63067 NN |
22068 | r=`${PWD_COMMAND}`; export r; \ |
22069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22070 | $(HOST_EXPORTS) \ |
b813574b | 22071 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22072 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22073 | done; \ | |
b813574b | 22074 | echo "Doing maintainer-clean in prms" ; \ |
b00612cc | 22075 | (cd $(HOST_SUBDIR)/prms && \ |
4fa63067 NN |
22076 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22077 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22078 | "RANLIB=$${RANLIB}" \ | |
22079 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22080 | maintainer-clean) \ |
4fa63067 | 22081 | || exit 1 |
16ae0395 | 22082 | |
b813574b | 22083 | @endif prms |
3866be5d NN |
22084 | |
22085 | ||
a7254363 | 22086 | |
b813574b PB |
22087 | .PHONY: configure-rcs maybe-configure-rcs |
22088 | maybe-configure-rcs: | |
22089 | @if rcs | |
22090 | maybe-configure-rcs: configure-rcs | |
c52c6897 | 22091 | configure-rcs: |
0aed8855 | 22092 | @: $(MAKE); $(unstage) |
c52c6897 | 22093 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22094 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
22095 | test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \ |
22096 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \ | |
378fce5b | 22097 | $(HOST_EXPORTS) \ |
a7254363 PB |
22098 | echo Configuring in $(HOST_SUBDIR)/rcs; \ |
22099 | cd "$(HOST_SUBDIR)/rcs" || exit 1; \ | |
e2b9e2dc | 22100 | case $(srcdir) in \ |
b00612cc PB |
22101 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
22102 | *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \ | |
22103 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 22104 | esac; \ |
b00612cc PB |
22105 | srcdiroption="--srcdir=$${topdir}/rcs"; \ |
22106 | libsrcdir="$$s/rcs"; \ | |
e2b9e2dc | 22107 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 22108 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 22109 | || exit 1 |
b813574b | 22110 | @endif rcs |
e2b9e2dc | 22111 | |
a7254363 PB |
22112 | |
22113 | ||
d545f33b PB |
22114 | |
22115 | ||
b813574b PB |
22116 | .PHONY: all-rcs maybe-all-rcs |
22117 | maybe-all-rcs: | |
22118 | @if rcs | |
d27cc32e | 22119 | TARGET-rcs=all |
b813574b PB |
22120 | maybe-all-rcs: all-rcs |
22121 | all-rcs: configure-rcs | |
0aed8855 | 22122 | @: $(MAKE); $(unstage) |
b40e3958 L |
22123 | @r=`${PWD_COMMAND}`; export r; \ |
22124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22125 | $(HOST_EXPORTS) \ |
b00612cc PB |
22126 | (cd $(HOST_SUBDIR)/rcs && \ |
22127 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-rcs)) | |
b813574b | 22128 | @endif rcs |
3866be5d | 22129 | |
a7254363 | 22130 | |
d545f33b PB |
22131 | |
22132 | ||
b813574b PB |
22133 | .PHONY: check-rcs maybe-check-rcs |
22134 | maybe-check-rcs: | |
22135 | @if rcs | |
22136 | maybe-check-rcs: check-rcs | |
3866be5d | 22137 | |
b813574b | 22138 | check-rcs: |
0aed8855 | 22139 | @: $(MAKE); $(unstage) |
b40e3958 L |
22140 | @r=`${PWD_COMMAND}`; export r; \ |
22141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22142 | $(HOST_EXPORTS) \ |
b00612cc PB |
22143 | (cd $(HOST_SUBDIR)/rcs && \ |
22144 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 22145 | |
b813574b | 22146 | @endif rcs |
3866be5d | 22147 | |
b813574b PB |
22148 | .PHONY: install-rcs maybe-install-rcs |
22149 | maybe-install-rcs: | |
22150 | @if rcs | |
22151 | maybe-install-rcs: install-rcs | |
16ae0395 | 22152 | |
b813574b | 22153 | install-rcs: installdirs |
0aed8855 | 22154 | @: $(MAKE); $(unstage) |
b40e3958 L |
22155 | @r=`${PWD_COMMAND}`; export r; \ |
22156 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22157 | $(HOST_EXPORTS) \ |
b00612cc | 22158 | (cd $(HOST_SUBDIR)/rcs && \ |
2da12f12 | 22159 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 22160 | |
b813574b | 22161 | @endif rcs |
3866be5d | 22162 | |
4fa63067 NN |
22163 | # Other targets (info, dvi, etc.) |
22164 | ||
b813574b PB |
22165 | .PHONY: maybe-info-rcs info-rcs |
22166 | maybe-info-rcs: | |
22167 | @if rcs | |
22168 | maybe-info-rcs: info-rcs | |
4fa63067 | 22169 | |
b813574b PB |
22170 | info-rcs: \ |
22171 | configure-rcs | |
0aed8855 | 22172 | @: $(MAKE); $(unstage) |
b813574b | 22173 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22174 | r=`${PWD_COMMAND}`; export r; \ |
22175 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22176 | $(HOST_EXPORTS) \ |
b813574b | 22177 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22178 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22179 | done; \ | |
b813574b | 22180 | echo "Doing info in rcs" ; \ |
b00612cc | 22181 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22182 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22183 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22184 | "RANLIB=$${RANLIB}" \ | |
22185 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22186 | info) \ |
4fa63067 NN |
22187 | || exit 1 |
22188 | ||
b813574b | 22189 | @endif rcs |
4fa63067 | 22190 | |
b813574b PB |
22191 | .PHONY: maybe-dvi-rcs dvi-rcs |
22192 | maybe-dvi-rcs: | |
22193 | @if rcs | |
22194 | maybe-dvi-rcs: dvi-rcs | |
4fa63067 | 22195 | |
b813574b PB |
22196 | dvi-rcs: \ |
22197 | configure-rcs | |
0aed8855 | 22198 | @: $(MAKE); $(unstage) |
b813574b | 22199 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22200 | r=`${PWD_COMMAND}`; export r; \ |
22201 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22202 | $(HOST_EXPORTS) \ |
b813574b | 22203 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22204 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22205 | done; \ | |
b813574b | 22206 | echo "Doing dvi in rcs" ; \ |
b00612cc | 22207 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22208 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22209 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22210 | "RANLIB=$${RANLIB}" \ | |
22211 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22212 | dvi) \ |
4fa63067 NN |
22213 | || exit 1 |
22214 | ||
b813574b | 22215 | @endif rcs |
4fa63067 | 22216 | |
6d389afc MS |
22217 | .PHONY: maybe-html-rcs html-rcs |
22218 | maybe-html-rcs: | |
22219 | @if rcs | |
22220 | maybe-html-rcs: html-rcs | |
22221 | ||
22222 | html-rcs: \ | |
22223 | configure-rcs | |
0aed8855 | 22224 | @: $(MAKE); $(unstage) |
6d389afc MS |
22225 | @[ -f ./rcs/Makefile ] || exit 0; \ |
22226 | r=`${PWD_COMMAND}`; export r; \ | |
22227 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22228 | $(HOST_EXPORTS) \ |
22229 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22230 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22231 | done; \ | |
22232 | echo "Doing html in rcs" ; \ | |
b00612cc | 22233 | (cd $(HOST_SUBDIR)/rcs && \ |
6d389afc MS |
22234 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22235 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22236 | "RANLIB=$${RANLIB}" \ | |
22237 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22238 | html) \ | |
22239 | || exit 1 | |
22240 | ||
22241 | @endif rcs | |
22242 | ||
b813574b PB |
22243 | .PHONY: maybe-TAGS-rcs TAGS-rcs |
22244 | maybe-TAGS-rcs: | |
22245 | @if rcs | |
22246 | maybe-TAGS-rcs: TAGS-rcs | |
4fa63067 | 22247 | |
b813574b PB |
22248 | TAGS-rcs: \ |
22249 | configure-rcs | |
0aed8855 | 22250 | @: $(MAKE); $(unstage) |
b813574b | 22251 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22252 | r=`${PWD_COMMAND}`; export r; \ |
22253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22254 | $(HOST_EXPORTS) \ |
b813574b | 22255 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22256 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22257 | done; \ | |
b813574b | 22258 | echo "Doing TAGS in rcs" ; \ |
b00612cc | 22259 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22260 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22261 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22262 | "RANLIB=$${RANLIB}" \ | |
22263 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22264 | TAGS) \ |
4fa63067 NN |
22265 | || exit 1 |
22266 | ||
b813574b | 22267 | @endif rcs |
4fa63067 | 22268 | |
b813574b PB |
22269 | .PHONY: maybe-install-info-rcs install-info-rcs |
22270 | maybe-install-info-rcs: | |
22271 | @if rcs | |
22272 | maybe-install-info-rcs: install-info-rcs | |
4fa63067 | 22273 | |
b813574b PB |
22274 | install-info-rcs: \ |
22275 | configure-rcs \ | |
22276 | info-rcs | |
0aed8855 | 22277 | @: $(MAKE); $(unstage) |
b813574b | 22278 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22279 | r=`${PWD_COMMAND}`; export r; \ |
22280 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22281 | $(HOST_EXPORTS) \ |
b813574b | 22282 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22283 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22284 | done; \ | |
b813574b | 22285 | echo "Doing install-info in rcs" ; \ |
b00612cc | 22286 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22287 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22288 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22289 | "RANLIB=$${RANLIB}" \ | |
22290 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22291 | install-info) \ |
4fa63067 NN |
22292 | || exit 1 |
22293 | ||
b813574b | 22294 | @endif rcs |
4fa63067 | 22295 | |
108a6f8e CD |
22296 | .PHONY: maybe-install-html-rcs install-html-rcs |
22297 | maybe-install-html-rcs: | |
22298 | @if rcs | |
22299 | maybe-install-html-rcs: install-html-rcs | |
22300 | ||
22301 | install-html-rcs: \ | |
22302 | configure-rcs \ | |
22303 | html-rcs | |
22304 | @: $(MAKE); $(unstage) | |
22305 | @[ -f ./rcs/Makefile ] || exit 0; \ | |
22306 | r=`${PWD_COMMAND}`; export r; \ | |
22307 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22308 | $(HOST_EXPORTS) \ | |
22309 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22310 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22311 | done; \ | |
22312 | echo "Doing install-html in rcs" ; \ | |
22313 | (cd $(HOST_SUBDIR)/rcs && \ | |
22314 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
22315 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22316 | "RANLIB=$${RANLIB}" \ | |
22317 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22318 | install-html) \ | |
22319 | || exit 1 | |
22320 | ||
22321 | @endif rcs | |
22322 | ||
b813574b PB |
22323 | .PHONY: maybe-installcheck-rcs installcheck-rcs |
22324 | maybe-installcheck-rcs: | |
22325 | @if rcs | |
22326 | maybe-installcheck-rcs: installcheck-rcs | |
4fa63067 | 22327 | |
b813574b PB |
22328 | installcheck-rcs: \ |
22329 | configure-rcs | |
0aed8855 | 22330 | @: $(MAKE); $(unstage) |
b813574b | 22331 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22332 | r=`${PWD_COMMAND}`; export r; \ |
22333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22334 | $(HOST_EXPORTS) \ |
b813574b | 22335 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22336 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22337 | done; \ | |
b813574b | 22338 | echo "Doing installcheck in rcs" ; \ |
b00612cc | 22339 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22340 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22341 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22342 | "RANLIB=$${RANLIB}" \ | |
22343 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22344 | installcheck) \ |
4fa63067 NN |
22345 | || exit 1 |
22346 | ||
b813574b | 22347 | @endif rcs |
4fa63067 | 22348 | |
b813574b PB |
22349 | .PHONY: maybe-mostlyclean-rcs mostlyclean-rcs |
22350 | maybe-mostlyclean-rcs: | |
22351 | @if rcs | |
22352 | maybe-mostlyclean-rcs: mostlyclean-rcs | |
4fa63067 | 22353 | |
b813574b | 22354 | mostlyclean-rcs: |
0aed8855 | 22355 | @: $(MAKE); $(unstage) |
b813574b | 22356 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22357 | r=`${PWD_COMMAND}`; export r; \ |
22358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22359 | $(HOST_EXPORTS) \ |
b813574b | 22360 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22362 | done; \ | |
b813574b | 22363 | echo "Doing mostlyclean in rcs" ; \ |
b00612cc | 22364 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22365 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22366 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22367 | "RANLIB=$${RANLIB}" \ | |
22368 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22369 | mostlyclean) \ |
4fa63067 NN |
22370 | || exit 1 |
22371 | ||
b813574b | 22372 | @endif rcs |
4fa63067 | 22373 | |
b813574b PB |
22374 | .PHONY: maybe-clean-rcs clean-rcs |
22375 | maybe-clean-rcs: | |
22376 | @if rcs | |
22377 | maybe-clean-rcs: clean-rcs | |
4fa63067 | 22378 | |
b813574b | 22379 | clean-rcs: |
0aed8855 | 22380 | @: $(MAKE); $(unstage) |
b813574b | 22381 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22382 | r=`${PWD_COMMAND}`; export r; \ |
22383 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22384 | $(HOST_EXPORTS) \ |
b813574b | 22385 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22386 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22387 | done; \ | |
b813574b | 22388 | echo "Doing clean in rcs" ; \ |
b00612cc | 22389 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22390 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22391 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22392 | "RANLIB=$${RANLIB}" \ | |
22393 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22394 | clean) \ |
4fa63067 NN |
22395 | || exit 1 |
22396 | ||
b813574b | 22397 | @endif rcs |
4fa63067 | 22398 | |
b813574b PB |
22399 | .PHONY: maybe-distclean-rcs distclean-rcs |
22400 | maybe-distclean-rcs: | |
22401 | @if rcs | |
22402 | maybe-distclean-rcs: distclean-rcs | |
4fa63067 | 22403 | |
b813574b | 22404 | distclean-rcs: |
0aed8855 | 22405 | @: $(MAKE); $(unstage) |
b813574b | 22406 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22407 | r=`${PWD_COMMAND}`; export r; \ |
22408 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22409 | $(HOST_EXPORTS) \ |
b813574b | 22410 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22411 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22412 | done; \ | |
b813574b | 22413 | echo "Doing distclean in rcs" ; \ |
b00612cc | 22414 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22415 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22416 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22417 | "RANLIB=$${RANLIB}" \ | |
22418 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22419 | distclean) \ |
4fa63067 NN |
22420 | || exit 1 |
22421 | ||
b813574b | 22422 | @endif rcs |
4fa63067 | 22423 | |
b813574b PB |
22424 | .PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs |
22425 | maybe-maintainer-clean-rcs: | |
22426 | @if rcs | |
22427 | maybe-maintainer-clean-rcs: maintainer-clean-rcs | |
4fa63067 | 22428 | |
b813574b | 22429 | maintainer-clean-rcs: |
0aed8855 | 22430 | @: $(MAKE); $(unstage) |
b813574b | 22431 | @[ -f ./rcs/Makefile ] || exit 0; \ |
4fa63067 NN |
22432 | r=`${PWD_COMMAND}`; export r; \ |
22433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22434 | $(HOST_EXPORTS) \ |
b813574b | 22435 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22436 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22437 | done; \ | |
b813574b | 22438 | echo "Doing maintainer-clean in rcs" ; \ |
b00612cc | 22439 | (cd $(HOST_SUBDIR)/rcs && \ |
4fa63067 NN |
22440 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22441 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22442 | "RANLIB=$${RANLIB}" \ | |
22443 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22444 | maintainer-clean) \ |
4fa63067 NN |
22445 | || exit 1 |
22446 | ||
b813574b | 22447 | @endif rcs |
4fa63067 NN |
22448 | |
22449 | ||
a7254363 | 22450 | |
b813574b PB |
22451 | .PHONY: configure-readline maybe-configure-readline |
22452 | maybe-configure-readline: | |
22453 | @if readline | |
22454 | maybe-configure-readline: configure-readline | |
c52c6897 | 22455 | configure-readline: |
0aed8855 | 22456 | @: $(MAKE); $(unstage) |
c52c6897 | 22457 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22458 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
22459 | test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \ |
22460 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \ | |
378fce5b | 22461 | $(HOST_EXPORTS) \ |
a7254363 PB |
22462 | echo Configuring in $(HOST_SUBDIR)/readline; \ |
22463 | cd "$(HOST_SUBDIR)/readline" || exit 1; \ | |
e2b9e2dc | 22464 | case $(srcdir) in \ |
b00612cc PB |
22465 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
22466 | *) topdir=`echo $(HOST_SUBDIR)/readline/ | \ | |
22467 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 22468 | esac; \ |
b00612cc PB |
22469 | srcdiroption="--srcdir=$${topdir}/readline"; \ |
22470 | libsrcdir="$$s/readline"; \ | |
e2b9e2dc | 22471 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 22472 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 22473 | || exit 1 |
b813574b | 22474 | @endif readline |
e2b9e2dc | 22475 | |
a7254363 PB |
22476 | |
22477 | ||
d545f33b PB |
22478 | |
22479 | ||
b813574b PB |
22480 | .PHONY: all-readline maybe-all-readline |
22481 | maybe-all-readline: | |
22482 | @if readline | |
d27cc32e | 22483 | TARGET-readline=all |
b813574b PB |
22484 | maybe-all-readline: all-readline |
22485 | all-readline: configure-readline | |
0aed8855 | 22486 | @: $(MAKE); $(unstage) |
b40e3958 L |
22487 | @r=`${PWD_COMMAND}`; export r; \ |
22488 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22489 | $(HOST_EXPORTS) \ |
b00612cc PB |
22490 | (cd $(HOST_SUBDIR)/readline && \ |
22491 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-readline)) | |
b813574b | 22492 | @endif readline |
3866be5d | 22493 | |
a7254363 | 22494 | |
d545f33b PB |
22495 | |
22496 | ||
b813574b PB |
22497 | .PHONY: check-readline maybe-check-readline |
22498 | maybe-check-readline: | |
22499 | @if readline | |
22500 | maybe-check-readline: check-readline | |
3866be5d | 22501 | |
b813574b | 22502 | check-readline: |
0aed8855 | 22503 | @: $(MAKE); $(unstage) |
b813574b PB |
22504 | @r=`${PWD_COMMAND}`; export r; \ |
22505 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 22506 | $(HOST_EXPORTS) \ |
b00612cc PB |
22507 | (cd $(HOST_SUBDIR)/readline && \ |
22508 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 22509 | |
b813574b | 22510 | @endif readline |
4fa63067 | 22511 | |
b813574b PB |
22512 | .PHONY: install-readline maybe-install-readline |
22513 | maybe-install-readline: | |
22514 | @if readline | |
22515 | maybe-install-readline: install-readline | |
4fa63067 | 22516 | |
b813574b | 22517 | install-readline: installdirs |
0aed8855 | 22518 | @: $(MAKE); $(unstage) |
b813574b PB |
22519 | @r=`${PWD_COMMAND}`; export r; \ |
22520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 22521 | $(HOST_EXPORTS) \ |
b00612cc | 22522 | (cd $(HOST_SUBDIR)/readline && \ |
2da12f12 | 22523 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 22524 | |
b813574b | 22525 | @endif readline |
4fa63067 NN |
22526 | |
22527 | # Other targets (info, dvi, etc.) | |
22528 | ||
b813574b PB |
22529 | .PHONY: maybe-info-readline info-readline |
22530 | maybe-info-readline: | |
22531 | @if readline | |
22532 | maybe-info-readline: info-readline | |
4fa63067 | 22533 | |
b813574b PB |
22534 | info-readline: \ |
22535 | configure-readline | |
0aed8855 | 22536 | @: $(MAKE); $(unstage) |
b813574b | 22537 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 | 22538 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22539 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22540 | $(HOST_EXPORTS) \ |
b813574b | 22541 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22542 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22543 | done; \ | |
b813574b | 22544 | echo "Doing info in readline" ; \ |
b00612cc | 22545 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22546 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22547 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22548 | "RANLIB=$${RANLIB}" \ | |
22549 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22550 | info) \ |
4fa63067 | 22551 | || exit 1 |
3866be5d | 22552 | |
b813574b | 22553 | @endif readline |
3866be5d | 22554 | |
b813574b PB |
22555 | .PHONY: maybe-dvi-readline dvi-readline |
22556 | maybe-dvi-readline: | |
22557 | @if readline | |
22558 | maybe-dvi-readline: dvi-readline | |
16ae0395 | 22559 | |
b813574b PB |
22560 | dvi-readline: \ |
22561 | configure-readline | |
0aed8855 | 22562 | @: $(MAKE); $(unstage) |
b813574b | 22563 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 | 22564 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22566 | $(HOST_EXPORTS) \ |
b813574b | 22567 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22568 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22569 | done; \ | |
b813574b | 22570 | echo "Doing dvi in readline" ; \ |
b00612cc | 22571 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22572 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22573 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22574 | "RANLIB=$${RANLIB}" \ | |
22575 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22576 | dvi) \ |
4fa63067 | 22577 | || exit 1 |
3866be5d | 22578 | |
b813574b | 22579 | @endif readline |
3866be5d | 22580 | |
6d389afc MS |
22581 | .PHONY: maybe-html-readline html-readline |
22582 | maybe-html-readline: | |
22583 | @if readline | |
22584 | maybe-html-readline: html-readline | |
22585 | ||
22586 | html-readline: \ | |
22587 | configure-readline | |
0aed8855 | 22588 | @: $(MAKE); $(unstage) |
6d389afc MS |
22589 | @[ -f ./readline/Makefile ] || exit 0; \ |
22590 | r=`${PWD_COMMAND}`; export r; \ | |
22591 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22592 | $(HOST_EXPORTS) \ |
22593 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22594 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22595 | done; \ | |
22596 | echo "Doing html in readline" ; \ | |
b00612cc | 22597 | (cd $(HOST_SUBDIR)/readline && \ |
6d389afc MS |
22598 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22599 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22600 | "RANLIB=$${RANLIB}" \ | |
22601 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22602 | html) \ | |
22603 | || exit 1 | |
22604 | ||
22605 | @endif readline | |
22606 | ||
b813574b PB |
22607 | .PHONY: maybe-TAGS-readline TAGS-readline |
22608 | maybe-TAGS-readline: | |
22609 | @if readline | |
22610 | maybe-TAGS-readline: TAGS-readline | |
4fa63067 | 22611 | |
b813574b PB |
22612 | TAGS-readline: \ |
22613 | configure-readline | |
0aed8855 | 22614 | @: $(MAKE); $(unstage) |
b813574b | 22615 | @[ -f ./readline/Makefile ] || exit 0; \ |
b40e3958 L |
22616 | r=`${PWD_COMMAND}`; export r; \ |
22617 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22618 | $(HOST_EXPORTS) \ |
b813574b | 22619 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22620 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22621 | done; \ | |
b813574b | 22622 | echo "Doing TAGS in readline" ; \ |
b00612cc | 22623 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22624 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22625 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22626 | "RANLIB=$${RANLIB}" \ | |
22627 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22628 | TAGS) \ |
e2b9e2dc NN |
22629 | || exit 1 |
22630 | ||
b813574b | 22631 | @endif readline |
4fa63067 | 22632 | |
b813574b PB |
22633 | .PHONY: maybe-install-info-readline install-info-readline |
22634 | maybe-install-info-readline: | |
22635 | @if readline | |
22636 | maybe-install-info-readline: install-info-readline | |
4fa63067 | 22637 | |
b813574b PB |
22638 | install-info-readline: \ |
22639 | configure-readline \ | |
22640 | info-readline | |
0aed8855 | 22641 | @: $(MAKE); $(unstage) |
b813574b | 22642 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 | 22643 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22644 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22645 | $(HOST_EXPORTS) \ |
b813574b | 22646 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22647 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22648 | done; \ | |
b813574b | 22649 | echo "Doing install-info in readline" ; \ |
b00612cc | 22650 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22651 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22652 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22653 | "RANLIB=$${RANLIB}" \ | |
22654 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22655 | install-info) \ |
4fa63067 | 22656 | || exit 1 |
3866be5d | 22657 | |
b813574b | 22658 | @endif readline |
3866be5d | 22659 | |
108a6f8e CD |
22660 | .PHONY: maybe-install-html-readline install-html-readline |
22661 | maybe-install-html-readline: | |
22662 | @if readline | |
22663 | maybe-install-html-readline: install-html-readline | |
22664 | ||
22665 | install-html-readline: \ | |
22666 | configure-readline \ | |
22667 | html-readline | |
22668 | @: $(MAKE); $(unstage) | |
22669 | @[ -f ./readline/Makefile ] || exit 0; \ | |
22670 | r=`${PWD_COMMAND}`; export r; \ | |
22671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
22672 | $(HOST_EXPORTS) \ | |
22673 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22674 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22675 | done; \ | |
22676 | echo "Doing install-html in readline" ; \ | |
22677 | (cd $(HOST_SUBDIR)/readline && \ | |
22678 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
22679 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22680 | "RANLIB=$${RANLIB}" \ | |
22681 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22682 | install-html) \ | |
22683 | || exit 1 | |
22684 | ||
22685 | @endif readline | |
22686 | ||
b813574b PB |
22687 | .PHONY: maybe-installcheck-readline installcheck-readline |
22688 | maybe-installcheck-readline: | |
22689 | @if readline | |
22690 | maybe-installcheck-readline: installcheck-readline | |
4fa63067 | 22691 | |
b813574b PB |
22692 | installcheck-readline: \ |
22693 | configure-readline | |
0aed8855 | 22694 | @: $(MAKE); $(unstage) |
b813574b | 22695 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 NN |
22696 | r=`${PWD_COMMAND}`; export r; \ |
22697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22698 | $(HOST_EXPORTS) \ |
b813574b | 22699 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22700 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22701 | done; \ | |
b813574b | 22702 | echo "Doing installcheck in readline" ; \ |
b00612cc | 22703 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22706 | "RANLIB=$${RANLIB}" \ | |
22707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22708 | installcheck) \ |
4fa63067 | 22709 | || exit 1 |
3866be5d | 22710 | |
b813574b | 22711 | @endif readline |
3866be5d | 22712 | |
b813574b PB |
22713 | .PHONY: maybe-mostlyclean-readline mostlyclean-readline |
22714 | maybe-mostlyclean-readline: | |
22715 | @if readline | |
22716 | maybe-mostlyclean-readline: mostlyclean-readline | |
4fa63067 | 22717 | |
b813574b | 22718 | mostlyclean-readline: |
0aed8855 | 22719 | @: $(MAKE); $(unstage) |
b813574b | 22720 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 NN |
22721 | r=`${PWD_COMMAND}`; export r; \ |
22722 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22723 | $(HOST_EXPORTS) \ |
b813574b | 22724 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22725 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22726 | done; \ | |
b813574b | 22727 | echo "Doing mostlyclean in readline" ; \ |
b00612cc | 22728 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22729 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22730 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22731 | "RANLIB=$${RANLIB}" \ | |
22732 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22733 | mostlyclean) \ |
4fa63067 NN |
22734 | || exit 1 |
22735 | ||
b813574b | 22736 | @endif readline |
4fa63067 | 22737 | |
b813574b PB |
22738 | .PHONY: maybe-clean-readline clean-readline |
22739 | maybe-clean-readline: | |
22740 | @if readline | |
22741 | maybe-clean-readline: clean-readline | |
4fa63067 | 22742 | |
b813574b | 22743 | clean-readline: |
0aed8855 | 22744 | @: $(MAKE); $(unstage) |
b813574b | 22745 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 NN |
22746 | r=`${PWD_COMMAND}`; export r; \ |
22747 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22748 | $(HOST_EXPORTS) \ |
b813574b | 22749 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22750 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22751 | done; \ | |
b813574b | 22752 | echo "Doing clean in readline" ; \ |
b00612cc | 22753 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22754 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22755 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22756 | "RANLIB=$${RANLIB}" \ | |
22757 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22758 | clean) \ |
4fa63067 NN |
22759 | || exit 1 |
22760 | ||
b813574b | 22761 | @endif readline |
4fa63067 | 22762 | |
b813574b PB |
22763 | .PHONY: maybe-distclean-readline distclean-readline |
22764 | maybe-distclean-readline: | |
22765 | @if readline | |
22766 | maybe-distclean-readline: distclean-readline | |
4fa63067 | 22767 | |
b813574b | 22768 | distclean-readline: |
0aed8855 | 22769 | @: $(MAKE); $(unstage) |
b813574b | 22770 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 NN |
22771 | r=`${PWD_COMMAND}`; export r; \ |
22772 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22773 | $(HOST_EXPORTS) \ |
b813574b | 22774 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22775 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22776 | done; \ | |
b813574b | 22777 | echo "Doing distclean in readline" ; \ |
b00612cc | 22778 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22779 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22780 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22781 | "RANLIB=$${RANLIB}" \ | |
22782 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22783 | distclean) \ |
4fa63067 NN |
22784 | || exit 1 |
22785 | ||
b813574b | 22786 | @endif readline |
4fa63067 | 22787 | |
b813574b PB |
22788 | .PHONY: maybe-maintainer-clean-readline maintainer-clean-readline |
22789 | maybe-maintainer-clean-readline: | |
22790 | @if readline | |
22791 | maybe-maintainer-clean-readline: maintainer-clean-readline | |
16ae0395 | 22792 | |
b813574b | 22793 | maintainer-clean-readline: |
0aed8855 | 22794 | @: $(MAKE); $(unstage) |
b813574b | 22795 | @[ -f ./readline/Makefile ] || exit 0; \ |
4fa63067 | 22796 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 22798 | $(HOST_EXPORTS) \ |
b813574b | 22799 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22800 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22801 | done; \ | |
b813574b | 22802 | echo "Doing maintainer-clean in readline" ; \ |
b00612cc | 22803 | (cd $(HOST_SUBDIR)/readline && \ |
4fa63067 NN |
22804 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22805 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22806 | "RANLIB=$${RANLIB}" \ | |
22807 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22808 | maintainer-clean) \ |
4fa63067 | 22809 | || exit 1 |
3866be5d | 22810 | |
b813574b | 22811 | @endif readline |
3866be5d | 22812 | |
4fa63067 | 22813 | |
a7254363 | 22814 | |
b813574b PB |
22815 | .PHONY: configure-release maybe-configure-release |
22816 | maybe-configure-release: | |
22817 | @if release | |
22818 | maybe-configure-release: configure-release | |
c52c6897 | 22819 | configure-release: |
0aed8855 | 22820 | @: $(MAKE); $(unstage) |
c52c6897 | 22821 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 22822 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
22823 | test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \ |
22824 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \ | |
378fce5b | 22825 | $(HOST_EXPORTS) \ |
a7254363 PB |
22826 | echo Configuring in $(HOST_SUBDIR)/release; \ |
22827 | cd "$(HOST_SUBDIR)/release" || exit 1; \ | |
e2b9e2dc | 22828 | case $(srcdir) in \ |
b00612cc PB |
22829 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
22830 | *) topdir=`echo $(HOST_SUBDIR)/release/ | \ | |
22831 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 22832 | esac; \ |
b00612cc PB |
22833 | srcdiroption="--srcdir=$${topdir}/release"; \ |
22834 | libsrcdir="$$s/release"; \ | |
e2b9e2dc | 22835 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 22836 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 22837 | || exit 1 |
b813574b | 22838 | @endif release |
e2b9e2dc | 22839 | |
a7254363 PB |
22840 | |
22841 | ||
d545f33b PB |
22842 | |
22843 | ||
b813574b PB |
22844 | .PHONY: all-release maybe-all-release |
22845 | maybe-all-release: | |
22846 | @if release | |
d27cc32e | 22847 | TARGET-release=all |
b813574b PB |
22848 | maybe-all-release: all-release |
22849 | all-release: configure-release | |
0aed8855 | 22850 | @: $(MAKE); $(unstage) |
b40e3958 L |
22851 | @r=`${PWD_COMMAND}`; export r; \ |
22852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22853 | $(HOST_EXPORTS) \ |
b00612cc PB |
22854 | (cd $(HOST_SUBDIR)/release && \ |
22855 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-release)) | |
b813574b | 22856 | @endif release |
3866be5d | 22857 | |
a7254363 | 22858 | |
d545f33b PB |
22859 | |
22860 | ||
b813574b PB |
22861 | .PHONY: check-release maybe-check-release |
22862 | maybe-check-release: | |
22863 | @if release | |
22864 | maybe-check-release: check-release | |
3866be5d | 22865 | |
b813574b | 22866 | check-release: |
3866be5d | 22867 | |
b813574b | 22868 | @endif release |
3866be5d | 22869 | |
b813574b PB |
22870 | .PHONY: install-release maybe-install-release |
22871 | maybe-install-release: | |
22872 | @if release | |
22873 | maybe-install-release: install-release | |
16ae0395 | 22874 | |
b813574b | 22875 | install-release: |
4fa63067 | 22876 | |
b813574b | 22877 | @endif release |
4fa63067 NN |
22878 | |
22879 | # Other targets (info, dvi, etc.) | |
22880 | ||
b813574b PB |
22881 | .PHONY: maybe-info-release info-release |
22882 | maybe-info-release: | |
22883 | @if release | |
22884 | maybe-info-release: info-release | |
4fa63067 | 22885 | |
b813574b PB |
22886 | info-release: \ |
22887 | configure-release | |
0aed8855 | 22888 | @: $(MAKE); $(unstage) |
b813574b | 22889 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
22890 | r=`${PWD_COMMAND}`; export r; \ |
22891 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22892 | $(HOST_EXPORTS) \ |
b813574b | 22893 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22894 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22895 | done; \ | |
b813574b | 22896 | echo "Doing info in release" ; \ |
b00612cc | 22897 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
22898 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22899 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22900 | "RANLIB=$${RANLIB}" \ | |
22901 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22902 | info) \ |
4fa63067 NN |
22903 | || exit 1 |
22904 | ||
b813574b | 22905 | @endif release |
4fa63067 | 22906 | |
b813574b PB |
22907 | .PHONY: maybe-dvi-release dvi-release |
22908 | maybe-dvi-release: | |
22909 | @if release | |
22910 | maybe-dvi-release: dvi-release | |
4fa63067 | 22911 | |
b813574b PB |
22912 | dvi-release: \ |
22913 | configure-release | |
0aed8855 | 22914 | @: $(MAKE); $(unstage) |
b813574b | 22915 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
22916 | r=`${PWD_COMMAND}`; export r; \ |
22917 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22918 | $(HOST_EXPORTS) \ |
b813574b | 22919 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22920 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22921 | done; \ | |
b813574b | 22922 | echo "Doing dvi in release" ; \ |
b00612cc | 22923 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
22924 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22925 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22926 | "RANLIB=$${RANLIB}" \ | |
22927 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22928 | dvi) \ |
4fa63067 NN |
22929 | || exit 1 |
22930 | ||
b813574b | 22931 | @endif release |
4fa63067 | 22932 | |
6d389afc MS |
22933 | .PHONY: maybe-html-release html-release |
22934 | maybe-html-release: | |
22935 | @if release | |
22936 | maybe-html-release: html-release | |
22937 | ||
22938 | html-release: \ | |
22939 | configure-release | |
0aed8855 | 22940 | @: $(MAKE); $(unstage) |
6d389afc MS |
22941 | @[ -f ./release/Makefile ] || exit 0; \ |
22942 | r=`${PWD_COMMAND}`; export r; \ | |
22943 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
22944 | $(HOST_EXPORTS) \ |
22945 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
22946 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
22947 | done; \ | |
22948 | echo "Doing html in release" ; \ | |
b00612cc | 22949 | (cd $(HOST_SUBDIR)/release && \ |
6d389afc MS |
22950 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22951 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22952 | "RANLIB=$${RANLIB}" \ | |
22953 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
22954 | html) \ | |
22955 | || exit 1 | |
22956 | ||
22957 | @endif release | |
22958 | ||
b813574b PB |
22959 | .PHONY: maybe-TAGS-release TAGS-release |
22960 | maybe-TAGS-release: | |
22961 | @if release | |
22962 | maybe-TAGS-release: TAGS-release | |
4fa63067 | 22963 | |
b813574b PB |
22964 | TAGS-release: \ |
22965 | configure-release | |
0aed8855 | 22966 | @: $(MAKE); $(unstage) |
b813574b | 22967 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
22968 | r=`${PWD_COMMAND}`; export r; \ |
22969 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22970 | $(HOST_EXPORTS) \ |
b813574b | 22971 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22972 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
22973 | done; \ | |
b813574b | 22974 | echo "Doing TAGS in release" ; \ |
b00612cc | 22975 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
22976 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
22977 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
22978 | "RANLIB=$${RANLIB}" \ | |
22979 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 22980 | TAGS) \ |
4fa63067 NN |
22981 | || exit 1 |
22982 | ||
b813574b | 22983 | @endif release |
4fa63067 | 22984 | |
b813574b PB |
22985 | .PHONY: maybe-install-info-release install-info-release |
22986 | maybe-install-info-release: | |
22987 | @if release | |
22988 | maybe-install-info-release: install-info-release | |
4fa63067 | 22989 | |
b813574b PB |
22990 | install-info-release: \ |
22991 | configure-release \ | |
22992 | info-release | |
0aed8855 | 22993 | @: $(MAKE); $(unstage) |
b813574b | 22994 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
22995 | r=`${PWD_COMMAND}`; export r; \ |
22996 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 22997 | $(HOST_EXPORTS) \ |
b813574b | 22998 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
22999 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23000 | done; \ | |
b813574b | 23001 | echo "Doing install-info in release" ; \ |
b00612cc | 23002 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
23003 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23004 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23005 | "RANLIB=$${RANLIB}" \ | |
23006 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23007 | install-info) \ |
4fa63067 NN |
23008 | || exit 1 |
23009 | ||
b813574b | 23010 | @endif release |
4fa63067 | 23011 | |
108a6f8e CD |
23012 | .PHONY: maybe-install-html-release install-html-release |
23013 | maybe-install-html-release: | |
23014 | @if release | |
23015 | maybe-install-html-release: install-html-release | |
23016 | ||
23017 | install-html-release: \ | |
23018 | configure-release \ | |
23019 | html-release | |
23020 | @: $(MAKE); $(unstage) | |
23021 | @[ -f ./release/Makefile ] || exit 0; \ | |
23022 | r=`${PWD_COMMAND}`; export r; \ | |
23023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23024 | $(HOST_EXPORTS) \ | |
23025 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23026 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23027 | done; \ | |
23028 | echo "Doing install-html in release" ; \ | |
23029 | (cd $(HOST_SUBDIR)/release && \ | |
23030 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23031 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23032 | "RANLIB=$${RANLIB}" \ | |
23033 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23034 | install-html) \ | |
23035 | || exit 1 | |
23036 | ||
23037 | @endif release | |
23038 | ||
b813574b PB |
23039 | .PHONY: maybe-installcheck-release installcheck-release |
23040 | maybe-installcheck-release: | |
23041 | @if release | |
23042 | maybe-installcheck-release: installcheck-release | |
4fa63067 | 23043 | |
b813574b PB |
23044 | installcheck-release: \ |
23045 | configure-release | |
0aed8855 | 23046 | @: $(MAKE); $(unstage) |
b813574b | 23047 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
23048 | r=`${PWD_COMMAND}`; export r; \ |
23049 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23050 | $(HOST_EXPORTS) \ |
b813574b | 23051 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23053 | done; \ | |
b813574b | 23054 | echo "Doing installcheck in release" ; \ |
b00612cc | 23055 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
23056 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23057 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23058 | "RANLIB=$${RANLIB}" \ | |
23059 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23060 | installcheck) \ |
4fa63067 NN |
23061 | || exit 1 |
23062 | ||
b813574b | 23063 | @endif release |
4fa63067 | 23064 | |
b813574b PB |
23065 | .PHONY: maybe-mostlyclean-release mostlyclean-release |
23066 | maybe-mostlyclean-release: | |
23067 | @if release | |
23068 | maybe-mostlyclean-release: mostlyclean-release | |
4fa63067 | 23069 | |
b813574b | 23070 | mostlyclean-release: |
0aed8855 | 23071 | @: $(MAKE); $(unstage) |
b813574b | 23072 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
23073 | r=`${PWD_COMMAND}`; export r; \ |
23074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23075 | $(HOST_EXPORTS) \ |
b813574b | 23076 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23077 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23078 | done; \ | |
b813574b | 23079 | echo "Doing mostlyclean in release" ; \ |
b00612cc | 23080 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
23081 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23082 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23083 | "RANLIB=$${RANLIB}" \ | |
23084 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23085 | mostlyclean) \ |
4fa63067 NN |
23086 | || exit 1 |
23087 | ||
b813574b | 23088 | @endif release |
4fa63067 | 23089 | |
b813574b PB |
23090 | .PHONY: maybe-clean-release clean-release |
23091 | maybe-clean-release: | |
23092 | @if release | |
23093 | maybe-clean-release: clean-release | |
4fa63067 | 23094 | |
b813574b | 23095 | clean-release: |
0aed8855 | 23096 | @: $(MAKE); $(unstage) |
b813574b | 23097 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
23098 | r=`${PWD_COMMAND}`; export r; \ |
23099 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23100 | $(HOST_EXPORTS) \ |
b813574b | 23101 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23102 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23103 | done; \ | |
b813574b | 23104 | echo "Doing clean in release" ; \ |
b00612cc | 23105 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
23106 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23107 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23108 | "RANLIB=$${RANLIB}" \ | |
23109 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23110 | clean) \ |
4fa63067 NN |
23111 | || exit 1 |
23112 | ||
b813574b | 23113 | @endif release |
4fa63067 | 23114 | |
b813574b PB |
23115 | .PHONY: maybe-distclean-release distclean-release |
23116 | maybe-distclean-release: | |
23117 | @if release | |
23118 | maybe-distclean-release: distclean-release | |
4fa63067 | 23119 | |
b813574b | 23120 | distclean-release: |
0aed8855 | 23121 | @: $(MAKE); $(unstage) |
b813574b | 23122 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
23123 | r=`${PWD_COMMAND}`; export r; \ |
23124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23125 | $(HOST_EXPORTS) \ |
b813574b | 23126 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23127 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23128 | done; \ | |
b813574b | 23129 | echo "Doing distclean in release" ; \ |
b00612cc | 23130 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
23131 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23132 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23133 | "RANLIB=$${RANLIB}" \ | |
23134 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23135 | distclean) \ |
4fa63067 NN |
23136 | || exit 1 |
23137 | ||
b813574b | 23138 | @endif release |
4fa63067 | 23139 | |
b813574b PB |
23140 | .PHONY: maybe-maintainer-clean-release maintainer-clean-release |
23141 | maybe-maintainer-clean-release: | |
23142 | @if release | |
23143 | maybe-maintainer-clean-release: maintainer-clean-release | |
4fa63067 | 23144 | |
b813574b | 23145 | maintainer-clean-release: |
0aed8855 | 23146 | @: $(MAKE); $(unstage) |
b813574b | 23147 | @[ -f ./release/Makefile ] || exit 0; \ |
4fa63067 NN |
23148 | r=`${PWD_COMMAND}`; export r; \ |
23149 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23150 | $(HOST_EXPORTS) \ |
b813574b | 23151 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23152 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23153 | done; \ | |
b813574b | 23154 | echo "Doing maintainer-clean in release" ; \ |
b00612cc | 23155 | (cd $(HOST_SUBDIR)/release && \ |
4fa63067 NN |
23156 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23157 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23158 | "RANLIB=$${RANLIB}" \ | |
23159 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23160 | maintainer-clean) \ |
4fa63067 | 23161 | || exit 1 |
3866be5d | 23162 | |
b813574b | 23163 | @endif release |
3866be5d | 23164 | |
4fa63067 | 23165 | |
a7254363 | 23166 | |
b813574b PB |
23167 | .PHONY: configure-recode maybe-configure-recode |
23168 | maybe-configure-recode: | |
23169 | @if recode | |
23170 | maybe-configure-recode: configure-recode | |
c52c6897 | 23171 | configure-recode: |
0aed8855 | 23172 | @: $(MAKE); $(unstage) |
c52c6897 | 23173 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 23174 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
23175 | test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \ |
23176 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \ | |
378fce5b | 23177 | $(HOST_EXPORTS) \ |
a7254363 PB |
23178 | echo Configuring in $(HOST_SUBDIR)/recode; \ |
23179 | cd "$(HOST_SUBDIR)/recode" || exit 1; \ | |
e2b9e2dc | 23180 | case $(srcdir) in \ |
b00612cc PB |
23181 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
23182 | *) topdir=`echo $(HOST_SUBDIR)/recode/ | \ | |
23183 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 23184 | esac; \ |
b00612cc PB |
23185 | srcdiroption="--srcdir=$${topdir}/recode"; \ |
23186 | libsrcdir="$$s/recode"; \ | |
e2b9e2dc | 23187 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 23188 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 23189 | || exit 1 |
b813574b | 23190 | @endif recode |
e2b9e2dc | 23191 | |
a7254363 PB |
23192 | |
23193 | ||
d545f33b PB |
23194 | |
23195 | ||
b813574b PB |
23196 | .PHONY: all-recode maybe-all-recode |
23197 | maybe-all-recode: | |
23198 | @if recode | |
d27cc32e | 23199 | TARGET-recode=all |
b813574b PB |
23200 | maybe-all-recode: all-recode |
23201 | all-recode: configure-recode | |
0aed8855 | 23202 | @: $(MAKE); $(unstage) |
b40e3958 L |
23203 | @r=`${PWD_COMMAND}`; export r; \ |
23204 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23205 | $(HOST_EXPORTS) \ |
b00612cc PB |
23206 | (cd $(HOST_SUBDIR)/recode && \ |
23207 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-recode)) | |
b813574b | 23208 | @endif recode |
3866be5d | 23209 | |
a7254363 | 23210 | |
d545f33b PB |
23211 | |
23212 | ||
b813574b PB |
23213 | .PHONY: check-recode maybe-check-recode |
23214 | maybe-check-recode: | |
23215 | @if recode | |
23216 | maybe-check-recode: check-recode | |
3866be5d | 23217 | |
b813574b | 23218 | check-recode: |
0aed8855 | 23219 | @: $(MAKE); $(unstage) |
b40e3958 L |
23220 | @r=`${PWD_COMMAND}`; export r; \ |
23221 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23222 | $(HOST_EXPORTS) \ |
b00612cc PB |
23223 | (cd $(HOST_SUBDIR)/recode && \ |
23224 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 23225 | |
b813574b | 23226 | @endif recode |
3866be5d | 23227 | |
b813574b PB |
23228 | .PHONY: install-recode maybe-install-recode |
23229 | maybe-install-recode: | |
23230 | @if recode | |
23231 | maybe-install-recode: install-recode | |
4fa63067 | 23232 | |
b813574b | 23233 | install-recode: installdirs |
0aed8855 | 23234 | @: $(MAKE); $(unstage) |
4fa63067 NN |
23235 | @r=`${PWD_COMMAND}`; export r; \ |
23236 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23237 | $(HOST_EXPORTS) \ |
b00612cc | 23238 | (cd $(HOST_SUBDIR)/recode && \ |
2da12f12 | 23239 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 23240 | |
b813574b | 23241 | @endif recode |
4fa63067 NN |
23242 | |
23243 | # Other targets (info, dvi, etc.) | |
23244 | ||
b813574b PB |
23245 | .PHONY: maybe-info-recode info-recode |
23246 | maybe-info-recode: | |
23247 | @if recode | |
23248 | maybe-info-recode: info-recode | |
4fa63067 | 23249 | |
b813574b PB |
23250 | info-recode: \ |
23251 | configure-recode | |
0aed8855 | 23252 | @: $(MAKE); $(unstage) |
b813574b | 23253 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23254 | r=`${PWD_COMMAND}`; export r; \ |
23255 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23256 | $(HOST_EXPORTS) \ |
b813574b | 23257 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23258 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23259 | done; \ | |
b813574b | 23260 | echo "Doing info in recode" ; \ |
b00612cc | 23261 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23262 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23263 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23264 | "RANLIB=$${RANLIB}" \ | |
23265 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23266 | info) \ |
4fa63067 NN |
23267 | || exit 1 |
23268 | ||
b813574b | 23269 | @endif recode |
4fa63067 | 23270 | |
b813574b PB |
23271 | .PHONY: maybe-dvi-recode dvi-recode |
23272 | maybe-dvi-recode: | |
23273 | @if recode | |
23274 | maybe-dvi-recode: dvi-recode | |
4fa63067 | 23275 | |
b813574b PB |
23276 | dvi-recode: \ |
23277 | configure-recode | |
0aed8855 | 23278 | @: $(MAKE); $(unstage) |
b813574b | 23279 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23280 | r=`${PWD_COMMAND}`; export r; \ |
23281 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23282 | $(HOST_EXPORTS) \ |
b813574b | 23283 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23284 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23285 | done; \ | |
b813574b | 23286 | echo "Doing dvi in recode" ; \ |
b00612cc | 23287 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23288 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23289 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23290 | "RANLIB=$${RANLIB}" \ | |
23291 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23292 | dvi) \ |
4fa63067 NN |
23293 | || exit 1 |
23294 | ||
b813574b | 23295 | @endif recode |
4fa63067 | 23296 | |
6d389afc MS |
23297 | .PHONY: maybe-html-recode html-recode |
23298 | maybe-html-recode: | |
23299 | @if recode | |
23300 | maybe-html-recode: html-recode | |
23301 | ||
23302 | html-recode: \ | |
23303 | configure-recode | |
0aed8855 | 23304 | @: $(MAKE); $(unstage) |
6d389afc MS |
23305 | @[ -f ./recode/Makefile ] || exit 0; \ |
23306 | r=`${PWD_COMMAND}`; export r; \ | |
23307 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
23308 | $(HOST_EXPORTS) \ |
23309 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23310 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23311 | done; \ | |
23312 | echo "Doing html in recode" ; \ | |
b00612cc | 23313 | (cd $(HOST_SUBDIR)/recode && \ |
6d389afc MS |
23314 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23315 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23316 | "RANLIB=$${RANLIB}" \ | |
23317 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23318 | html) \ | |
23319 | || exit 1 | |
23320 | ||
23321 | @endif recode | |
23322 | ||
b813574b PB |
23323 | .PHONY: maybe-TAGS-recode TAGS-recode |
23324 | maybe-TAGS-recode: | |
23325 | @if recode | |
23326 | maybe-TAGS-recode: TAGS-recode | |
4fa63067 | 23327 | |
b813574b PB |
23328 | TAGS-recode: \ |
23329 | configure-recode | |
0aed8855 | 23330 | @: $(MAKE); $(unstage) |
b813574b | 23331 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23332 | r=`${PWD_COMMAND}`; export r; \ |
23333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23334 | $(HOST_EXPORTS) \ |
b813574b | 23335 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23336 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23337 | done; \ | |
b813574b | 23338 | echo "Doing TAGS in recode" ; \ |
b00612cc | 23339 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23340 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23341 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23342 | "RANLIB=$${RANLIB}" \ | |
23343 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23344 | TAGS) \ |
4fa63067 NN |
23345 | || exit 1 |
23346 | ||
b813574b | 23347 | @endif recode |
4fa63067 | 23348 | |
b813574b PB |
23349 | .PHONY: maybe-install-info-recode install-info-recode |
23350 | maybe-install-info-recode: | |
23351 | @if recode | |
23352 | maybe-install-info-recode: install-info-recode | |
4fa63067 | 23353 | |
b813574b PB |
23354 | install-info-recode: \ |
23355 | configure-recode \ | |
23356 | info-recode | |
0aed8855 | 23357 | @: $(MAKE); $(unstage) |
b813574b | 23358 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23359 | r=`${PWD_COMMAND}`; export r; \ |
23360 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23361 | $(HOST_EXPORTS) \ |
b813574b | 23362 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23363 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23364 | done; \ | |
b813574b | 23365 | echo "Doing install-info in recode" ; \ |
b00612cc | 23366 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23367 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23368 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23369 | "RANLIB=$${RANLIB}" \ | |
23370 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23371 | install-info) \ |
4fa63067 NN |
23372 | || exit 1 |
23373 | ||
b813574b | 23374 | @endif recode |
4fa63067 | 23375 | |
108a6f8e CD |
23376 | .PHONY: maybe-install-html-recode install-html-recode |
23377 | maybe-install-html-recode: | |
23378 | @if recode | |
23379 | maybe-install-html-recode: install-html-recode | |
23380 | ||
23381 | install-html-recode: \ | |
23382 | configure-recode \ | |
23383 | html-recode | |
23384 | @: $(MAKE); $(unstage) | |
23385 | @[ -f ./recode/Makefile ] || exit 0; \ | |
23386 | r=`${PWD_COMMAND}`; export r; \ | |
23387 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23388 | $(HOST_EXPORTS) \ | |
23389 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23390 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23391 | done; \ | |
23392 | echo "Doing install-html in recode" ; \ | |
23393 | (cd $(HOST_SUBDIR)/recode && \ | |
23394 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23395 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23396 | "RANLIB=$${RANLIB}" \ | |
23397 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23398 | install-html) \ | |
23399 | || exit 1 | |
23400 | ||
23401 | @endif recode | |
23402 | ||
b813574b PB |
23403 | .PHONY: maybe-installcheck-recode installcheck-recode |
23404 | maybe-installcheck-recode: | |
23405 | @if recode | |
23406 | maybe-installcheck-recode: installcheck-recode | |
4fa63067 | 23407 | |
b813574b PB |
23408 | installcheck-recode: \ |
23409 | configure-recode | |
0aed8855 | 23410 | @: $(MAKE); $(unstage) |
b813574b | 23411 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23412 | r=`${PWD_COMMAND}`; export r; \ |
23413 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23414 | $(HOST_EXPORTS) \ |
b813574b | 23415 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23416 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23417 | done; \ | |
b813574b | 23418 | echo "Doing installcheck in recode" ; \ |
b00612cc | 23419 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23420 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23421 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23422 | "RANLIB=$${RANLIB}" \ | |
23423 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23424 | installcheck) \ |
4fa63067 NN |
23425 | || exit 1 |
23426 | ||
b813574b | 23427 | @endif recode |
4fa63067 | 23428 | |
b813574b PB |
23429 | .PHONY: maybe-mostlyclean-recode mostlyclean-recode |
23430 | maybe-mostlyclean-recode: | |
23431 | @if recode | |
23432 | maybe-mostlyclean-recode: mostlyclean-recode | |
4fa63067 | 23433 | |
b813574b | 23434 | mostlyclean-recode: |
0aed8855 | 23435 | @: $(MAKE); $(unstage) |
b813574b | 23436 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23437 | r=`${PWD_COMMAND}`; export r; \ |
23438 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23439 | $(HOST_EXPORTS) \ |
b813574b | 23440 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23441 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23442 | done; \ | |
b813574b | 23443 | echo "Doing mostlyclean in recode" ; \ |
b00612cc | 23444 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23445 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23446 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23447 | "RANLIB=$${RANLIB}" \ | |
23448 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23449 | mostlyclean) \ |
4fa63067 NN |
23450 | || exit 1 |
23451 | ||
b813574b | 23452 | @endif recode |
4fa63067 | 23453 | |
b813574b PB |
23454 | .PHONY: maybe-clean-recode clean-recode |
23455 | maybe-clean-recode: | |
23456 | @if recode | |
23457 | maybe-clean-recode: clean-recode | |
4fa63067 | 23458 | |
b813574b | 23459 | clean-recode: |
0aed8855 | 23460 | @: $(MAKE); $(unstage) |
b813574b | 23461 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23462 | r=`${PWD_COMMAND}`; export r; \ |
23463 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23464 | $(HOST_EXPORTS) \ |
b813574b | 23465 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23466 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23467 | done; \ | |
b813574b | 23468 | echo "Doing clean in recode" ; \ |
b00612cc | 23469 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23470 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23471 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23472 | "RANLIB=$${RANLIB}" \ | |
23473 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23474 | clean) \ |
4fa63067 NN |
23475 | || exit 1 |
23476 | ||
b813574b | 23477 | @endif recode |
4fa63067 | 23478 | |
b813574b PB |
23479 | .PHONY: maybe-distclean-recode distclean-recode |
23480 | maybe-distclean-recode: | |
23481 | @if recode | |
23482 | maybe-distclean-recode: distclean-recode | |
4fa63067 | 23483 | |
b813574b | 23484 | distclean-recode: |
0aed8855 | 23485 | @: $(MAKE); $(unstage) |
b813574b | 23486 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23487 | r=`${PWD_COMMAND}`; export r; \ |
23488 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23489 | $(HOST_EXPORTS) \ |
b813574b | 23490 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23491 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23492 | done; \ | |
b813574b | 23493 | echo "Doing distclean in recode" ; \ |
b00612cc | 23494 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23495 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23496 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23497 | "RANLIB=$${RANLIB}" \ | |
23498 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23499 | distclean) \ |
4fa63067 NN |
23500 | || exit 1 |
23501 | ||
b813574b | 23502 | @endif recode |
4fa63067 | 23503 | |
b813574b PB |
23504 | .PHONY: maybe-maintainer-clean-recode maintainer-clean-recode |
23505 | maybe-maintainer-clean-recode: | |
23506 | @if recode | |
23507 | maybe-maintainer-clean-recode: maintainer-clean-recode | |
4fa63067 | 23508 | |
b813574b | 23509 | maintainer-clean-recode: |
0aed8855 | 23510 | @: $(MAKE); $(unstage) |
b813574b | 23511 | @[ -f ./recode/Makefile ] || exit 0; \ |
4fa63067 NN |
23512 | r=`${PWD_COMMAND}`; export r; \ |
23513 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23514 | $(HOST_EXPORTS) \ |
b813574b | 23515 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23516 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23517 | done; \ | |
b813574b | 23518 | echo "Doing maintainer-clean in recode" ; \ |
b00612cc | 23519 | (cd $(HOST_SUBDIR)/recode && \ |
4fa63067 NN |
23520 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23521 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23522 | "RANLIB=$${RANLIB}" \ | |
23523 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23524 | maintainer-clean) \ |
4fa63067 | 23525 | || exit 1 |
16ae0395 | 23526 | |
b813574b | 23527 | @endif recode |
3866be5d NN |
23528 | |
23529 | ||
a7254363 | 23530 | |
b813574b PB |
23531 | .PHONY: configure-sed maybe-configure-sed |
23532 | maybe-configure-sed: | |
23533 | @if sed | |
23534 | maybe-configure-sed: configure-sed | |
c52c6897 | 23535 | configure-sed: |
0aed8855 | 23536 | @: $(MAKE); $(unstage) |
c52c6897 | 23537 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 23538 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
23539 | test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \ |
23540 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \ | |
378fce5b | 23541 | $(HOST_EXPORTS) \ |
a7254363 PB |
23542 | echo Configuring in $(HOST_SUBDIR)/sed; \ |
23543 | cd "$(HOST_SUBDIR)/sed" || exit 1; \ | |
e2b9e2dc | 23544 | case $(srcdir) in \ |
b00612cc PB |
23545 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
23546 | *) topdir=`echo $(HOST_SUBDIR)/sed/ | \ | |
23547 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 23548 | esac; \ |
b00612cc PB |
23549 | srcdiroption="--srcdir=$${topdir}/sed"; \ |
23550 | libsrcdir="$$s/sed"; \ | |
e2b9e2dc | 23551 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 23552 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 23553 | || exit 1 |
b813574b | 23554 | @endif sed |
e2b9e2dc | 23555 | |
a7254363 PB |
23556 | |
23557 | ||
d545f33b PB |
23558 | |
23559 | ||
b813574b PB |
23560 | .PHONY: all-sed maybe-all-sed |
23561 | maybe-all-sed: | |
23562 | @if sed | |
d27cc32e | 23563 | TARGET-sed=all |
b813574b PB |
23564 | maybe-all-sed: all-sed |
23565 | all-sed: configure-sed | |
0aed8855 | 23566 | @: $(MAKE); $(unstage) |
b40e3958 L |
23567 | @r=`${PWD_COMMAND}`; export r; \ |
23568 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23569 | $(HOST_EXPORTS) \ |
b00612cc PB |
23570 | (cd $(HOST_SUBDIR)/sed && \ |
23571 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sed)) | |
b813574b | 23572 | @endif sed |
3866be5d | 23573 | |
a7254363 | 23574 | |
d545f33b PB |
23575 | |
23576 | ||
b813574b PB |
23577 | .PHONY: check-sed maybe-check-sed |
23578 | maybe-check-sed: | |
23579 | @if sed | |
23580 | maybe-check-sed: check-sed | |
3866be5d | 23581 | |
b813574b | 23582 | check-sed: |
0aed8855 | 23583 | @: $(MAKE); $(unstage) |
b40e3958 L |
23584 | @r=`${PWD_COMMAND}`; export r; \ |
23585 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23586 | $(HOST_EXPORTS) \ |
b00612cc PB |
23587 | (cd $(HOST_SUBDIR)/sed && \ |
23588 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 23589 | |
b813574b | 23590 | @endif sed |
3866be5d | 23591 | |
b813574b PB |
23592 | .PHONY: install-sed maybe-install-sed |
23593 | maybe-install-sed: | |
23594 | @if sed | |
23595 | maybe-install-sed: install-sed | |
16ae0395 | 23596 | |
b813574b | 23597 | install-sed: installdirs |
0aed8855 | 23598 | @: $(MAKE); $(unstage) |
b40e3958 L |
23599 | @r=`${PWD_COMMAND}`; export r; \ |
23600 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23601 | $(HOST_EXPORTS) \ |
b00612cc | 23602 | (cd $(HOST_SUBDIR)/sed && \ |
2da12f12 | 23603 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 23604 | |
b813574b | 23605 | @endif sed |
3866be5d | 23606 | |
4fa63067 NN |
23607 | # Other targets (info, dvi, etc.) |
23608 | ||
b813574b PB |
23609 | .PHONY: maybe-info-sed info-sed |
23610 | maybe-info-sed: | |
23611 | @if sed | |
23612 | maybe-info-sed: info-sed | |
4fa63067 | 23613 | |
b813574b PB |
23614 | info-sed: \ |
23615 | configure-sed | |
0aed8855 | 23616 | @: $(MAKE); $(unstage) |
b813574b | 23617 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23618 | r=`${PWD_COMMAND}`; export r; \ |
23619 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23620 | $(HOST_EXPORTS) \ |
b813574b | 23621 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23622 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23623 | done; \ | |
6d389afc | 23624 | echo "Doing info in sed" ; \ |
b00612cc | 23625 | (cd $(HOST_SUBDIR)/sed && \ |
6d389afc MS |
23626 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23627 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23628 | "RANLIB=$${RANLIB}" \ | |
23629 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23630 | info) \ | |
23631 | || exit 1 | |
23632 | ||
23633 | @endif sed | |
23634 | ||
23635 | .PHONY: maybe-dvi-sed dvi-sed | |
23636 | maybe-dvi-sed: | |
23637 | @if sed | |
23638 | maybe-dvi-sed: dvi-sed | |
23639 | ||
23640 | dvi-sed: \ | |
23641 | configure-sed | |
0aed8855 | 23642 | @: $(MAKE); $(unstage) |
6d389afc MS |
23643 | @[ -f ./sed/Makefile ] || exit 0; \ |
23644 | r=`${PWD_COMMAND}`; export r; \ | |
23645 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
23646 | $(HOST_EXPORTS) \ |
23647 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23648 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23649 | done; \ | |
23650 | echo "Doing dvi in sed" ; \ | |
b00612cc | 23651 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23652 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23653 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23654 | "RANLIB=$${RANLIB}" \ | |
23655 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 23656 | dvi) \ |
4fa63067 NN |
23657 | || exit 1 |
23658 | ||
b813574b | 23659 | @endif sed |
4fa63067 | 23660 | |
6d389afc MS |
23661 | .PHONY: maybe-html-sed html-sed |
23662 | maybe-html-sed: | |
b813574b | 23663 | @if sed |
6d389afc | 23664 | maybe-html-sed: html-sed |
4fa63067 | 23665 | |
6d389afc | 23666 | html-sed: \ |
b813574b | 23667 | configure-sed |
0aed8855 | 23668 | @: $(MAKE); $(unstage) |
b813574b | 23669 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23670 | r=`${PWD_COMMAND}`; export r; \ |
23671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23672 | $(HOST_EXPORTS) \ |
b813574b | 23673 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23674 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23675 | done; \ | |
6d389afc | 23676 | echo "Doing html in sed" ; \ |
b00612cc | 23677 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23678 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23679 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23680 | "RANLIB=$${RANLIB}" \ | |
23681 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 23682 | html) \ |
4fa63067 NN |
23683 | || exit 1 |
23684 | ||
b813574b | 23685 | @endif sed |
4fa63067 | 23686 | |
b813574b PB |
23687 | .PHONY: maybe-TAGS-sed TAGS-sed |
23688 | maybe-TAGS-sed: | |
23689 | @if sed | |
23690 | maybe-TAGS-sed: TAGS-sed | |
4fa63067 | 23691 | |
b813574b PB |
23692 | TAGS-sed: \ |
23693 | configure-sed | |
0aed8855 | 23694 | @: $(MAKE); $(unstage) |
b813574b | 23695 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23696 | r=`${PWD_COMMAND}`; export r; \ |
23697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23698 | $(HOST_EXPORTS) \ |
b813574b | 23699 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23700 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23701 | done; \ | |
b813574b | 23702 | echo "Doing TAGS in sed" ; \ |
b00612cc | 23703 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23706 | "RANLIB=$${RANLIB}" \ | |
23707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23708 | TAGS) \ |
4fa63067 NN |
23709 | || exit 1 |
23710 | ||
b813574b | 23711 | @endif sed |
4fa63067 | 23712 | |
b813574b PB |
23713 | .PHONY: maybe-install-info-sed install-info-sed |
23714 | maybe-install-info-sed: | |
23715 | @if sed | |
23716 | maybe-install-info-sed: install-info-sed | |
4fa63067 | 23717 | |
b813574b PB |
23718 | install-info-sed: \ |
23719 | configure-sed \ | |
23720 | info-sed | |
0aed8855 | 23721 | @: $(MAKE); $(unstage) |
b813574b | 23722 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23723 | r=`${PWD_COMMAND}`; export r; \ |
23724 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23725 | $(HOST_EXPORTS) \ |
b813574b | 23726 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23727 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23728 | done; \ | |
b813574b | 23729 | echo "Doing install-info in sed" ; \ |
b00612cc | 23730 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23731 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23732 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23733 | "RANLIB=$${RANLIB}" \ | |
23734 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23735 | install-info) \ |
4fa63067 NN |
23736 | || exit 1 |
23737 | ||
b813574b | 23738 | @endif sed |
4fa63067 | 23739 | |
108a6f8e CD |
23740 | .PHONY: maybe-install-html-sed install-html-sed |
23741 | maybe-install-html-sed: | |
23742 | @if sed | |
23743 | maybe-install-html-sed: install-html-sed | |
23744 | ||
23745 | install-html-sed: \ | |
23746 | configure-sed \ | |
23747 | html-sed | |
23748 | @: $(MAKE); $(unstage) | |
23749 | @[ -f ./sed/Makefile ] || exit 0; \ | |
23750 | r=`${PWD_COMMAND}`; export r; \ | |
23751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
23752 | $(HOST_EXPORTS) \ | |
23753 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
23754 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
23755 | done; \ | |
23756 | echo "Doing install-html in sed" ; \ | |
23757 | (cd $(HOST_SUBDIR)/sed && \ | |
23758 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
23759 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23760 | "RANLIB=$${RANLIB}" \ | |
23761 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
23762 | install-html) \ | |
23763 | || exit 1 | |
23764 | ||
23765 | @endif sed | |
23766 | ||
b813574b PB |
23767 | .PHONY: maybe-installcheck-sed installcheck-sed |
23768 | maybe-installcheck-sed: | |
23769 | @if sed | |
23770 | maybe-installcheck-sed: installcheck-sed | |
4fa63067 | 23771 | |
b813574b PB |
23772 | installcheck-sed: \ |
23773 | configure-sed | |
0aed8855 | 23774 | @: $(MAKE); $(unstage) |
b813574b | 23775 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23776 | r=`${PWD_COMMAND}`; export r; \ |
23777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23778 | $(HOST_EXPORTS) \ |
b813574b | 23779 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23780 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23781 | done; \ | |
b813574b | 23782 | echo "Doing installcheck in sed" ; \ |
b00612cc | 23783 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23784 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23785 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23786 | "RANLIB=$${RANLIB}" \ | |
23787 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23788 | installcheck) \ |
4fa63067 NN |
23789 | || exit 1 |
23790 | ||
b813574b | 23791 | @endif sed |
4fa63067 | 23792 | |
b813574b PB |
23793 | .PHONY: maybe-mostlyclean-sed mostlyclean-sed |
23794 | maybe-mostlyclean-sed: | |
23795 | @if sed | |
23796 | maybe-mostlyclean-sed: mostlyclean-sed | |
4fa63067 | 23797 | |
b813574b | 23798 | mostlyclean-sed: |
0aed8855 | 23799 | @: $(MAKE); $(unstage) |
b813574b | 23800 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23801 | r=`${PWD_COMMAND}`; export r; \ |
23802 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23803 | $(HOST_EXPORTS) \ |
b813574b | 23804 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23805 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23806 | done; \ | |
b813574b | 23807 | echo "Doing mostlyclean in sed" ; \ |
b00612cc | 23808 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23809 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23810 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23811 | "RANLIB=$${RANLIB}" \ | |
23812 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23813 | mostlyclean) \ |
4fa63067 NN |
23814 | || exit 1 |
23815 | ||
b813574b | 23816 | @endif sed |
4fa63067 | 23817 | |
b813574b PB |
23818 | .PHONY: maybe-clean-sed clean-sed |
23819 | maybe-clean-sed: | |
23820 | @if sed | |
23821 | maybe-clean-sed: clean-sed | |
4fa63067 | 23822 | |
b813574b | 23823 | clean-sed: |
0aed8855 | 23824 | @: $(MAKE); $(unstage) |
b813574b | 23825 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23826 | r=`${PWD_COMMAND}`; export r; \ |
23827 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23828 | $(HOST_EXPORTS) \ |
b813574b | 23829 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23830 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23831 | done; \ | |
b813574b | 23832 | echo "Doing clean in sed" ; \ |
b00612cc | 23833 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23834 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23835 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23836 | "RANLIB=$${RANLIB}" \ | |
23837 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23838 | clean) \ |
4fa63067 NN |
23839 | || exit 1 |
23840 | ||
b813574b | 23841 | @endif sed |
4fa63067 | 23842 | |
b813574b PB |
23843 | .PHONY: maybe-distclean-sed distclean-sed |
23844 | maybe-distclean-sed: | |
23845 | @if sed | |
23846 | maybe-distclean-sed: distclean-sed | |
4fa63067 | 23847 | |
b813574b | 23848 | distclean-sed: |
0aed8855 | 23849 | @: $(MAKE); $(unstage) |
b813574b | 23850 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23851 | r=`${PWD_COMMAND}`; export r; \ |
23852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23853 | $(HOST_EXPORTS) \ |
b813574b | 23854 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23855 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23856 | done; \ | |
b813574b | 23857 | echo "Doing distclean in sed" ; \ |
b00612cc | 23858 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23859 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23860 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23861 | "RANLIB=$${RANLIB}" \ | |
23862 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23863 | distclean) \ |
4fa63067 NN |
23864 | || exit 1 |
23865 | ||
b813574b | 23866 | @endif sed |
4fa63067 | 23867 | |
b813574b PB |
23868 | .PHONY: maybe-maintainer-clean-sed maintainer-clean-sed |
23869 | maybe-maintainer-clean-sed: | |
23870 | @if sed | |
23871 | maybe-maintainer-clean-sed: maintainer-clean-sed | |
4fa63067 | 23872 | |
b813574b | 23873 | maintainer-clean-sed: |
0aed8855 | 23874 | @: $(MAKE); $(unstage) |
b813574b | 23875 | @[ -f ./sed/Makefile ] || exit 0; \ |
4fa63067 NN |
23876 | r=`${PWD_COMMAND}`; export r; \ |
23877 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23878 | $(HOST_EXPORTS) \ |
b813574b | 23879 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23880 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23881 | done; \ | |
b813574b | 23882 | echo "Doing maintainer-clean in sed" ; \ |
b00612cc | 23883 | (cd $(HOST_SUBDIR)/sed && \ |
4fa63067 NN |
23884 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23885 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23886 | "RANLIB=$${RANLIB}" \ | |
23887 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23888 | maintainer-clean) \ |
4fa63067 NN |
23889 | || exit 1 |
23890 | ||
b813574b | 23891 | @endif sed |
4fa63067 NN |
23892 | |
23893 | ||
a7254363 | 23894 | |
b813574b PB |
23895 | .PHONY: configure-send-pr maybe-configure-send-pr |
23896 | maybe-configure-send-pr: | |
23897 | @if send-pr | |
23898 | maybe-configure-send-pr: configure-send-pr | |
c52c6897 | 23899 | configure-send-pr: |
0aed8855 | 23900 | @: $(MAKE); $(unstage) |
c52c6897 | 23901 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 23902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
23903 | test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \ |
23904 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \ | |
378fce5b | 23905 | $(HOST_EXPORTS) \ |
a7254363 PB |
23906 | echo Configuring in $(HOST_SUBDIR)/send-pr; \ |
23907 | cd "$(HOST_SUBDIR)/send-pr" || exit 1; \ | |
e2b9e2dc | 23908 | case $(srcdir) in \ |
b00612cc PB |
23909 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
23910 | *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \ | |
23911 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 23912 | esac; \ |
b00612cc PB |
23913 | srcdiroption="--srcdir=$${topdir}/send-pr"; \ |
23914 | libsrcdir="$$s/send-pr"; \ | |
e2b9e2dc | 23915 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 23916 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 23917 | || exit 1 |
b813574b | 23918 | @endif send-pr |
e2b9e2dc | 23919 | |
a7254363 PB |
23920 | |
23921 | ||
d545f33b PB |
23922 | |
23923 | ||
b813574b PB |
23924 | .PHONY: all-send-pr maybe-all-send-pr |
23925 | maybe-all-send-pr: | |
23926 | @if send-pr | |
d27cc32e | 23927 | TARGET-send-pr=all |
b813574b PB |
23928 | maybe-all-send-pr: all-send-pr |
23929 | all-send-pr: configure-send-pr | |
0aed8855 | 23930 | @: $(MAKE); $(unstage) |
b40e3958 L |
23931 | @r=`${PWD_COMMAND}`; export r; \ |
23932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23933 | $(HOST_EXPORTS) \ |
b00612cc PB |
23934 | (cd $(HOST_SUBDIR)/send-pr && \ |
23935 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-send-pr)) | |
b813574b | 23936 | @endif send-pr |
3866be5d | 23937 | |
a7254363 | 23938 | |
d545f33b PB |
23939 | |
23940 | ||
b813574b PB |
23941 | .PHONY: check-send-pr maybe-check-send-pr |
23942 | maybe-check-send-pr: | |
23943 | @if send-pr | |
23944 | maybe-check-send-pr: check-send-pr | |
3866be5d | 23945 | |
b813574b | 23946 | check-send-pr: |
0aed8855 | 23947 | @: $(MAKE); $(unstage) |
b40e3958 L |
23948 | @r=`${PWD_COMMAND}`; export r; \ |
23949 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23950 | $(HOST_EXPORTS) \ |
b00612cc PB |
23951 | (cd $(HOST_SUBDIR)/send-pr && \ |
23952 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 23953 | |
b813574b | 23954 | @endif send-pr |
3866be5d | 23955 | |
b813574b PB |
23956 | .PHONY: install-send-pr maybe-install-send-pr |
23957 | maybe-install-send-pr: | |
23958 | @if send-pr | |
23959 | maybe-install-send-pr: install-send-pr | |
16ae0395 | 23960 | |
b813574b | 23961 | install-send-pr: installdirs |
0aed8855 | 23962 | @: $(MAKE); $(unstage) |
b40e3958 L |
23963 | @r=`${PWD_COMMAND}`; export r; \ |
23964 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23965 | $(HOST_EXPORTS) \ |
b00612cc | 23966 | (cd $(HOST_SUBDIR)/send-pr && \ |
2da12f12 | 23967 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 23968 | |
b813574b | 23969 | @endif send-pr |
3866be5d | 23970 | |
4fa63067 NN |
23971 | # Other targets (info, dvi, etc.) |
23972 | ||
b813574b PB |
23973 | .PHONY: maybe-info-send-pr info-send-pr |
23974 | maybe-info-send-pr: | |
23975 | @if send-pr | |
23976 | maybe-info-send-pr: info-send-pr | |
4fa63067 | 23977 | |
b813574b PB |
23978 | info-send-pr: \ |
23979 | configure-send-pr | |
0aed8855 | 23980 | @: $(MAKE); $(unstage) |
b813574b | 23981 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
b40e3958 L |
23982 | r=`${PWD_COMMAND}`; export r; \ |
23983 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 23984 | $(HOST_EXPORTS) \ |
b813574b | 23985 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
23986 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
23987 | done; \ | |
b813574b | 23988 | echo "Doing info in send-pr" ; \ |
b00612cc | 23989 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
23990 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
23991 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
23992 | "RANLIB=$${RANLIB}" \ | |
23993 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 23994 | info) \ |
e2b9e2dc NN |
23995 | || exit 1 |
23996 | ||
b813574b | 23997 | @endif send-pr |
4fa63067 | 23998 | |
b813574b PB |
23999 | .PHONY: maybe-dvi-send-pr dvi-send-pr |
24000 | maybe-dvi-send-pr: | |
24001 | @if send-pr | |
24002 | maybe-dvi-send-pr: dvi-send-pr | |
4fa63067 | 24003 | |
b813574b PB |
24004 | dvi-send-pr: \ |
24005 | configure-send-pr | |
0aed8855 | 24006 | @: $(MAKE); $(unstage) |
b813574b | 24007 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 | 24008 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24010 | $(HOST_EXPORTS) \ |
b813574b | 24011 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24012 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24013 | done; \ | |
b813574b | 24014 | echo "Doing dvi in send-pr" ; \ |
b00612cc | 24015 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24016 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24017 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24018 | "RANLIB=$${RANLIB}" \ | |
24019 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24020 | dvi) \ |
4fa63067 | 24021 | || exit 1 |
3866be5d | 24022 | |
b813574b | 24023 | @endif send-pr |
3866be5d | 24024 | |
6d389afc MS |
24025 | .PHONY: maybe-html-send-pr html-send-pr |
24026 | maybe-html-send-pr: | |
24027 | @if send-pr | |
24028 | maybe-html-send-pr: html-send-pr | |
24029 | ||
24030 | html-send-pr: \ | |
24031 | configure-send-pr | |
0aed8855 | 24032 | @: $(MAKE); $(unstage) |
6d389afc MS |
24033 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
24034 | r=`${PWD_COMMAND}`; export r; \ | |
24035 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
24036 | $(HOST_EXPORTS) \ |
24037 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
24038 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24039 | done; \ | |
24040 | echo "Doing html in send-pr" ; \ | |
b00612cc | 24041 | (cd $(HOST_SUBDIR)/send-pr && \ |
6d389afc MS |
24042 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24043 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24044 | "RANLIB=$${RANLIB}" \ | |
24045 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24046 | html) \ | |
24047 | || exit 1 | |
24048 | ||
24049 | @endif send-pr | |
24050 | ||
b813574b PB |
24051 | .PHONY: maybe-TAGS-send-pr TAGS-send-pr |
24052 | maybe-TAGS-send-pr: | |
24053 | @if send-pr | |
24054 | maybe-TAGS-send-pr: TAGS-send-pr | |
4fa63067 | 24055 | |
b813574b PB |
24056 | TAGS-send-pr: \ |
24057 | configure-send-pr | |
0aed8855 | 24058 | @: $(MAKE); $(unstage) |
b813574b | 24059 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 NN |
24060 | r=`${PWD_COMMAND}`; export r; \ |
24061 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24062 | $(HOST_EXPORTS) \ |
b813574b | 24063 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24064 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24065 | done; \ | |
b813574b | 24066 | echo "Doing TAGS in send-pr" ; \ |
b00612cc | 24067 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24068 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24069 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24070 | "RANLIB=$${RANLIB}" \ | |
24071 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24072 | TAGS) \ |
4fa63067 | 24073 | || exit 1 |
3866be5d | 24074 | |
b813574b | 24075 | @endif send-pr |
3866be5d | 24076 | |
b813574b PB |
24077 | .PHONY: maybe-install-info-send-pr install-info-send-pr |
24078 | maybe-install-info-send-pr: | |
24079 | @if send-pr | |
24080 | maybe-install-info-send-pr: install-info-send-pr | |
16ae0395 | 24081 | |
b813574b PB |
24082 | install-info-send-pr: \ |
24083 | configure-send-pr \ | |
24084 | info-send-pr | |
0aed8855 | 24085 | @: $(MAKE); $(unstage) |
b813574b | 24086 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 NN |
24087 | r=`${PWD_COMMAND}`; export r; \ |
24088 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24089 | $(HOST_EXPORTS) \ |
b813574b | 24090 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24091 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24092 | done; \ | |
b813574b | 24093 | echo "Doing install-info in send-pr" ; \ |
b00612cc | 24094 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24095 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24096 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24097 | "RANLIB=$${RANLIB}" \ | |
24098 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24099 | install-info) \ |
4fa63067 NN |
24100 | || exit 1 |
24101 | ||
b813574b | 24102 | @endif send-pr |
4fa63067 | 24103 | |
108a6f8e CD |
24104 | .PHONY: maybe-install-html-send-pr install-html-send-pr |
24105 | maybe-install-html-send-pr: | |
24106 | @if send-pr | |
24107 | maybe-install-html-send-pr: install-html-send-pr | |
24108 | ||
24109 | install-html-send-pr: \ | |
24110 | configure-send-pr \ | |
24111 | html-send-pr | |
24112 | @: $(MAKE); $(unstage) | |
24113 | @[ -f ./send-pr/Makefile ] || exit 0; \ | |
24114 | r=`${PWD_COMMAND}`; export r; \ | |
24115 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24116 | $(HOST_EXPORTS) \ | |
24117 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
24118 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24119 | done; \ | |
24120 | echo "Doing install-html in send-pr" ; \ | |
24121 | (cd $(HOST_SUBDIR)/send-pr && \ | |
24122 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24123 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24124 | "RANLIB=$${RANLIB}" \ | |
24125 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24126 | install-html) \ | |
24127 | || exit 1 | |
24128 | ||
24129 | @endif send-pr | |
24130 | ||
b813574b PB |
24131 | .PHONY: maybe-installcheck-send-pr installcheck-send-pr |
24132 | maybe-installcheck-send-pr: | |
24133 | @if send-pr | |
24134 | maybe-installcheck-send-pr: installcheck-send-pr | |
4fa63067 | 24135 | |
b813574b PB |
24136 | installcheck-send-pr: \ |
24137 | configure-send-pr | |
0aed8855 | 24138 | @: $(MAKE); $(unstage) |
b813574b | 24139 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 NN |
24140 | r=`${PWD_COMMAND}`; export r; \ |
24141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24142 | $(HOST_EXPORTS) \ |
b813574b | 24143 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24144 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24145 | done; \ | |
b813574b | 24146 | echo "Doing installcheck in send-pr" ; \ |
b00612cc | 24147 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24148 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24149 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24150 | "RANLIB=$${RANLIB}" \ | |
24151 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24152 | installcheck) \ |
4fa63067 NN |
24153 | || exit 1 |
24154 | ||
b813574b | 24155 | @endif send-pr |
4fa63067 | 24156 | |
b813574b PB |
24157 | .PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr |
24158 | maybe-mostlyclean-send-pr: | |
24159 | @if send-pr | |
24160 | maybe-mostlyclean-send-pr: mostlyclean-send-pr | |
4fa63067 | 24161 | |
b813574b | 24162 | mostlyclean-send-pr: |
0aed8855 | 24163 | @: $(MAKE); $(unstage) |
b813574b | 24164 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 NN |
24165 | r=`${PWD_COMMAND}`; export r; \ |
24166 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24167 | $(HOST_EXPORTS) \ |
b813574b | 24168 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24169 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24170 | done; \ | |
b813574b | 24171 | echo "Doing mostlyclean in send-pr" ; \ |
b00612cc | 24172 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24173 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24174 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24175 | "RANLIB=$${RANLIB}" \ | |
24176 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24177 | mostlyclean) \ |
4fa63067 NN |
24178 | || exit 1 |
24179 | ||
b813574b | 24180 | @endif send-pr |
4fa63067 | 24181 | |
b813574b PB |
24182 | .PHONY: maybe-clean-send-pr clean-send-pr |
24183 | maybe-clean-send-pr: | |
24184 | @if send-pr | |
24185 | maybe-clean-send-pr: clean-send-pr | |
4fa63067 | 24186 | |
b813574b | 24187 | clean-send-pr: |
0aed8855 | 24188 | @: $(MAKE); $(unstage) |
b813574b | 24189 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 NN |
24190 | r=`${PWD_COMMAND}`; export r; \ |
24191 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24192 | $(HOST_EXPORTS) \ |
b813574b | 24193 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24194 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24195 | done; \ | |
b813574b | 24196 | echo "Doing clean in send-pr" ; \ |
b00612cc | 24197 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24198 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24199 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24200 | "RANLIB=$${RANLIB}" \ | |
24201 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24202 | clean) \ |
4fa63067 NN |
24203 | || exit 1 |
24204 | ||
b813574b | 24205 | @endif send-pr |
4fa63067 | 24206 | |
b813574b PB |
24207 | .PHONY: maybe-distclean-send-pr distclean-send-pr |
24208 | maybe-distclean-send-pr: | |
24209 | @if send-pr | |
24210 | maybe-distclean-send-pr: distclean-send-pr | |
4fa63067 | 24211 | |
b813574b | 24212 | distclean-send-pr: |
0aed8855 | 24213 | @: $(MAKE); $(unstage) |
b813574b | 24214 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 NN |
24215 | r=`${PWD_COMMAND}`; export r; \ |
24216 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24217 | $(HOST_EXPORTS) \ |
b813574b | 24218 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24219 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24220 | done; \ | |
b813574b | 24221 | echo "Doing distclean in send-pr" ; \ |
b00612cc | 24222 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24223 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24224 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24225 | "RANLIB=$${RANLIB}" \ | |
24226 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24227 | distclean) \ |
4fa63067 NN |
24228 | || exit 1 |
24229 | ||
b813574b | 24230 | @endif send-pr |
4fa63067 | 24231 | |
b813574b PB |
24232 | .PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr |
24233 | maybe-maintainer-clean-send-pr: | |
24234 | @if send-pr | |
24235 | maybe-maintainer-clean-send-pr: maintainer-clean-send-pr | |
4fa63067 | 24236 | |
b813574b | 24237 | maintainer-clean-send-pr: |
0aed8855 | 24238 | @: $(MAKE); $(unstage) |
b813574b | 24239 | @[ -f ./send-pr/Makefile ] || exit 0; \ |
4fa63067 | 24240 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24241 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24242 | $(HOST_EXPORTS) \ |
b813574b | 24243 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24244 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24245 | done; \ | |
b813574b | 24246 | echo "Doing maintainer-clean in send-pr" ; \ |
b00612cc | 24247 | (cd $(HOST_SUBDIR)/send-pr && \ |
4fa63067 NN |
24248 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24249 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24250 | "RANLIB=$${RANLIB}" \ | |
24251 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24252 | maintainer-clean) \ |
4fa63067 | 24253 | || exit 1 |
3866be5d | 24254 | |
b813574b | 24255 | @endif send-pr |
3866be5d | 24256 | |
4fa63067 | 24257 | |
a7254363 | 24258 | |
b813574b PB |
24259 | .PHONY: configure-shellutils maybe-configure-shellutils |
24260 | maybe-configure-shellutils: | |
24261 | @if shellutils | |
24262 | maybe-configure-shellutils: configure-shellutils | |
c52c6897 | 24263 | configure-shellutils: |
0aed8855 | 24264 | @: $(MAKE); $(unstage) |
c52c6897 | 24265 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24266 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
24267 | test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \ |
24268 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \ | |
378fce5b | 24269 | $(HOST_EXPORTS) \ |
a7254363 PB |
24270 | echo Configuring in $(HOST_SUBDIR)/shellutils; \ |
24271 | cd "$(HOST_SUBDIR)/shellutils" || exit 1; \ | |
e2b9e2dc | 24272 | case $(srcdir) in \ |
b00612cc PB |
24273 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
24274 | *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \ | |
24275 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 24276 | esac; \ |
b00612cc PB |
24277 | srcdiroption="--srcdir=$${topdir}/shellutils"; \ |
24278 | libsrcdir="$$s/shellutils"; \ | |
e2b9e2dc | 24279 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 24280 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 24281 | || exit 1 |
b813574b | 24282 | @endif shellutils |
e2b9e2dc | 24283 | |
a7254363 PB |
24284 | |
24285 | ||
d545f33b PB |
24286 | |
24287 | ||
b813574b PB |
24288 | .PHONY: all-shellutils maybe-all-shellutils |
24289 | maybe-all-shellutils: | |
24290 | @if shellutils | |
d27cc32e | 24291 | TARGET-shellutils=all |
b813574b PB |
24292 | maybe-all-shellutils: all-shellutils |
24293 | all-shellutils: configure-shellutils | |
0aed8855 | 24294 | @: $(MAKE); $(unstage) |
b40e3958 L |
24295 | @r=`${PWD_COMMAND}`; export r; \ |
24296 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24297 | $(HOST_EXPORTS) \ |
b00612cc PB |
24298 | (cd $(HOST_SUBDIR)/shellutils && \ |
24299 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-shellutils)) | |
b813574b | 24300 | @endif shellutils |
3866be5d | 24301 | |
a7254363 | 24302 | |
d545f33b PB |
24303 | |
24304 | ||
b813574b PB |
24305 | .PHONY: check-shellutils maybe-check-shellutils |
24306 | maybe-check-shellutils: | |
24307 | @if shellutils | |
24308 | maybe-check-shellutils: check-shellutils | |
3866be5d | 24309 | |
b813574b | 24310 | check-shellutils: |
0aed8855 | 24311 | @: $(MAKE); $(unstage) |
b40e3958 L |
24312 | @r=`${PWD_COMMAND}`; export r; \ |
24313 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24314 | $(HOST_EXPORTS) \ |
b00612cc PB |
24315 | (cd $(HOST_SUBDIR)/shellutils && \ |
24316 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 24317 | |
b813574b | 24318 | @endif shellutils |
3866be5d | 24319 | |
b813574b PB |
24320 | .PHONY: install-shellutils maybe-install-shellutils |
24321 | maybe-install-shellutils: | |
24322 | @if shellutils | |
24323 | maybe-install-shellutils: install-shellutils | |
16ae0395 | 24324 | |
b813574b | 24325 | install-shellutils: installdirs |
0aed8855 | 24326 | @: $(MAKE); $(unstage) |
b40e3958 L |
24327 | @r=`${PWD_COMMAND}`; export r; \ |
24328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24329 | $(HOST_EXPORTS) \ |
b00612cc | 24330 | (cd $(HOST_SUBDIR)/shellutils && \ |
2da12f12 | 24331 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 24332 | |
b813574b | 24333 | @endif shellutils |
4fa63067 NN |
24334 | |
24335 | # Other targets (info, dvi, etc.) | |
24336 | ||
b813574b PB |
24337 | .PHONY: maybe-info-shellutils info-shellutils |
24338 | maybe-info-shellutils: | |
24339 | @if shellutils | |
24340 | maybe-info-shellutils: info-shellutils | |
4fa63067 | 24341 | |
b813574b PB |
24342 | info-shellutils: \ |
24343 | configure-shellutils | |
0aed8855 | 24344 | @: $(MAKE); $(unstage) |
b813574b | 24345 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24346 | r=`${PWD_COMMAND}`; export r; \ |
24347 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24348 | $(HOST_EXPORTS) \ |
b813574b | 24349 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24350 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24351 | done; \ | |
b813574b | 24352 | echo "Doing info in shellutils" ; \ |
b00612cc | 24353 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24354 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24355 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24356 | "RANLIB=$${RANLIB}" \ | |
24357 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24358 | info) \ |
4fa63067 NN |
24359 | || exit 1 |
24360 | ||
b813574b | 24361 | @endif shellutils |
4fa63067 | 24362 | |
b813574b PB |
24363 | .PHONY: maybe-dvi-shellutils dvi-shellutils |
24364 | maybe-dvi-shellutils: | |
24365 | @if shellutils | |
24366 | maybe-dvi-shellutils: dvi-shellutils | |
4fa63067 | 24367 | |
b813574b PB |
24368 | dvi-shellutils: \ |
24369 | configure-shellutils | |
0aed8855 | 24370 | @: $(MAKE); $(unstage) |
b813574b | 24371 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24372 | r=`${PWD_COMMAND}`; export r; \ |
24373 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24374 | $(HOST_EXPORTS) \ |
b813574b | 24375 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24376 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24377 | done; \ | |
b813574b | 24378 | echo "Doing dvi in shellutils" ; \ |
b00612cc | 24379 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24380 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24381 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24382 | "RANLIB=$${RANLIB}" \ | |
24383 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24384 | dvi) \ |
4fa63067 NN |
24385 | || exit 1 |
24386 | ||
b813574b | 24387 | @endif shellutils |
4fa63067 | 24388 | |
6d389afc MS |
24389 | .PHONY: maybe-html-shellutils html-shellutils |
24390 | maybe-html-shellutils: | |
24391 | @if shellutils | |
24392 | maybe-html-shellutils: html-shellutils | |
24393 | ||
24394 | html-shellutils: \ | |
24395 | configure-shellutils | |
0aed8855 | 24396 | @: $(MAKE); $(unstage) |
6d389afc MS |
24397 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
24398 | r=`${PWD_COMMAND}`; export r; \ | |
24399 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
24400 | $(HOST_EXPORTS) \ |
24401 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
24402 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24403 | done; \ | |
24404 | echo "Doing html in shellutils" ; \ | |
b00612cc | 24405 | (cd $(HOST_SUBDIR)/shellutils && \ |
6d389afc MS |
24406 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24407 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24408 | "RANLIB=$${RANLIB}" \ | |
24409 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24410 | html) \ | |
24411 | || exit 1 | |
24412 | ||
24413 | @endif shellutils | |
24414 | ||
b813574b PB |
24415 | .PHONY: maybe-TAGS-shellutils TAGS-shellutils |
24416 | maybe-TAGS-shellutils: | |
24417 | @if shellutils | |
24418 | maybe-TAGS-shellutils: TAGS-shellutils | |
4fa63067 | 24419 | |
b813574b PB |
24420 | TAGS-shellutils: \ |
24421 | configure-shellutils | |
0aed8855 | 24422 | @: $(MAKE); $(unstage) |
b813574b | 24423 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24424 | r=`${PWD_COMMAND}`; export r; \ |
24425 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24426 | $(HOST_EXPORTS) \ |
b813574b | 24427 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24428 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24429 | done; \ | |
b813574b | 24430 | echo "Doing TAGS in shellutils" ; \ |
b00612cc | 24431 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24432 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24433 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24434 | "RANLIB=$${RANLIB}" \ | |
24435 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24436 | TAGS) \ |
4fa63067 NN |
24437 | || exit 1 |
24438 | ||
b813574b | 24439 | @endif shellutils |
4fa63067 | 24440 | |
b813574b PB |
24441 | .PHONY: maybe-install-info-shellutils install-info-shellutils |
24442 | maybe-install-info-shellutils: | |
24443 | @if shellutils | |
24444 | maybe-install-info-shellutils: install-info-shellutils | |
4fa63067 | 24445 | |
b813574b PB |
24446 | install-info-shellutils: \ |
24447 | configure-shellutils \ | |
24448 | info-shellutils | |
0aed8855 | 24449 | @: $(MAKE); $(unstage) |
b813574b | 24450 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24451 | r=`${PWD_COMMAND}`; export r; \ |
24452 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24453 | $(HOST_EXPORTS) \ |
b813574b | 24454 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24455 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24456 | done; \ | |
b813574b | 24457 | echo "Doing install-info in shellutils" ; \ |
b00612cc | 24458 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24459 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24460 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24461 | "RANLIB=$${RANLIB}" \ | |
24462 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24463 | install-info) \ |
4fa63067 NN |
24464 | || exit 1 |
24465 | ||
b813574b | 24466 | @endif shellutils |
4fa63067 | 24467 | |
108a6f8e CD |
24468 | .PHONY: maybe-install-html-shellutils install-html-shellutils |
24469 | maybe-install-html-shellutils: | |
24470 | @if shellutils | |
24471 | maybe-install-html-shellutils: install-html-shellutils | |
24472 | ||
24473 | install-html-shellutils: \ | |
24474 | configure-shellutils \ | |
24475 | html-shellutils | |
24476 | @: $(MAKE); $(unstage) | |
24477 | @[ -f ./shellutils/Makefile ] || exit 0; \ | |
24478 | r=`${PWD_COMMAND}`; export r; \ | |
24479 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24480 | $(HOST_EXPORTS) \ | |
24481 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
24482 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24483 | done; \ | |
24484 | echo "Doing install-html in shellutils" ; \ | |
24485 | (cd $(HOST_SUBDIR)/shellutils && \ | |
24486 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24487 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24488 | "RANLIB=$${RANLIB}" \ | |
24489 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24490 | install-html) \ | |
24491 | || exit 1 | |
24492 | ||
24493 | @endif shellutils | |
24494 | ||
b813574b PB |
24495 | .PHONY: maybe-installcheck-shellutils installcheck-shellutils |
24496 | maybe-installcheck-shellutils: | |
24497 | @if shellutils | |
24498 | maybe-installcheck-shellutils: installcheck-shellutils | |
4fa63067 | 24499 | |
b813574b PB |
24500 | installcheck-shellutils: \ |
24501 | configure-shellutils | |
0aed8855 | 24502 | @: $(MAKE); $(unstage) |
b813574b | 24503 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24504 | r=`${PWD_COMMAND}`; export r; \ |
24505 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24506 | $(HOST_EXPORTS) \ |
b813574b | 24507 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24508 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24509 | done; \ | |
b813574b | 24510 | echo "Doing installcheck in shellutils" ; \ |
b00612cc | 24511 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24512 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24513 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24514 | "RANLIB=$${RANLIB}" \ | |
24515 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24516 | installcheck) \ |
4fa63067 NN |
24517 | || exit 1 |
24518 | ||
b813574b | 24519 | @endif shellutils |
4fa63067 | 24520 | |
b813574b PB |
24521 | .PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils |
24522 | maybe-mostlyclean-shellutils: | |
24523 | @if shellutils | |
24524 | maybe-mostlyclean-shellutils: mostlyclean-shellutils | |
4fa63067 | 24525 | |
b813574b | 24526 | mostlyclean-shellutils: |
0aed8855 | 24527 | @: $(MAKE); $(unstage) |
b813574b | 24528 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24529 | r=`${PWD_COMMAND}`; export r; \ |
24530 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24531 | $(HOST_EXPORTS) \ |
b813574b | 24532 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24533 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24534 | done; \ | |
b813574b | 24535 | echo "Doing mostlyclean in shellutils" ; \ |
b00612cc | 24536 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24537 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24538 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24539 | "RANLIB=$${RANLIB}" \ | |
24540 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24541 | mostlyclean) \ |
4fa63067 NN |
24542 | || exit 1 |
24543 | ||
b813574b | 24544 | @endif shellutils |
4fa63067 | 24545 | |
b813574b PB |
24546 | .PHONY: maybe-clean-shellutils clean-shellutils |
24547 | maybe-clean-shellutils: | |
24548 | @if shellutils | |
24549 | maybe-clean-shellutils: clean-shellutils | |
4fa63067 | 24550 | |
b813574b | 24551 | clean-shellutils: |
0aed8855 | 24552 | @: $(MAKE); $(unstage) |
b813574b | 24553 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24554 | r=`${PWD_COMMAND}`; export r; \ |
24555 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24556 | $(HOST_EXPORTS) \ |
b813574b | 24557 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24558 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24559 | done; \ | |
b813574b | 24560 | echo "Doing clean in shellutils" ; \ |
b00612cc | 24561 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24562 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24563 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24564 | "RANLIB=$${RANLIB}" \ | |
24565 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24566 | clean) \ |
4fa63067 NN |
24567 | || exit 1 |
24568 | ||
b813574b | 24569 | @endif shellutils |
4fa63067 | 24570 | |
b813574b PB |
24571 | .PHONY: maybe-distclean-shellutils distclean-shellutils |
24572 | maybe-distclean-shellutils: | |
24573 | @if shellutils | |
24574 | maybe-distclean-shellutils: distclean-shellutils | |
4fa63067 | 24575 | |
b813574b | 24576 | distclean-shellutils: |
0aed8855 | 24577 | @: $(MAKE); $(unstage) |
b813574b | 24578 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24579 | r=`${PWD_COMMAND}`; export r; \ |
24580 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24581 | $(HOST_EXPORTS) \ |
b813574b | 24582 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24583 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24584 | done; \ | |
b813574b | 24585 | echo "Doing distclean in shellutils" ; \ |
b00612cc | 24586 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24587 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24588 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24589 | "RANLIB=$${RANLIB}" \ | |
24590 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24591 | distclean) \ |
4fa63067 NN |
24592 | || exit 1 |
24593 | ||
b813574b | 24594 | @endif shellutils |
4fa63067 | 24595 | |
b813574b PB |
24596 | .PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils |
24597 | maybe-maintainer-clean-shellutils: | |
24598 | @if shellutils | |
24599 | maybe-maintainer-clean-shellutils: maintainer-clean-shellutils | |
4fa63067 | 24600 | |
b813574b | 24601 | maintainer-clean-shellutils: |
0aed8855 | 24602 | @: $(MAKE); $(unstage) |
b813574b | 24603 | @[ -f ./shellutils/Makefile ] || exit 0; \ |
4fa63067 NN |
24604 | r=`${PWD_COMMAND}`; export r; \ |
24605 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24606 | $(HOST_EXPORTS) \ |
b813574b | 24607 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24608 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24609 | done; \ | |
b813574b | 24610 | echo "Doing maintainer-clean in shellutils" ; \ |
b00612cc | 24611 | (cd $(HOST_SUBDIR)/shellutils && \ |
4fa63067 NN |
24612 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24613 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24614 | "RANLIB=$${RANLIB}" \ | |
24615 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24616 | maintainer-clean) \ |
4fa63067 | 24617 | || exit 1 |
3866be5d | 24618 | |
b813574b | 24619 | @endif shellutils |
3866be5d | 24620 | |
4fa63067 | 24621 | |
a7254363 | 24622 | |
b813574b PB |
24623 | .PHONY: configure-sid maybe-configure-sid |
24624 | maybe-configure-sid: | |
24625 | @if sid | |
24626 | maybe-configure-sid: configure-sid | |
c52c6897 | 24627 | configure-sid: |
0aed8855 | 24628 | @: $(MAKE); $(unstage) |
c52c6897 | 24629 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24630 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
24631 | test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \ |
24632 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \ | |
378fce5b | 24633 | $(HOST_EXPORTS) \ |
a7254363 PB |
24634 | echo Configuring in $(HOST_SUBDIR)/sid; \ |
24635 | cd "$(HOST_SUBDIR)/sid" || exit 1; \ | |
e2b9e2dc | 24636 | case $(srcdir) in \ |
b00612cc PB |
24637 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
24638 | *) topdir=`echo $(HOST_SUBDIR)/sid/ | \ | |
24639 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 24640 | esac; \ |
b00612cc PB |
24641 | srcdiroption="--srcdir=$${topdir}/sid"; \ |
24642 | libsrcdir="$$s/sid"; \ | |
e2b9e2dc | 24643 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 24644 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 24645 | || exit 1 |
b813574b | 24646 | @endif sid |
e2b9e2dc | 24647 | |
a7254363 PB |
24648 | |
24649 | ||
d545f33b PB |
24650 | |
24651 | ||
b813574b PB |
24652 | .PHONY: all-sid maybe-all-sid |
24653 | maybe-all-sid: | |
24654 | @if sid | |
d27cc32e | 24655 | TARGET-sid=all |
b813574b PB |
24656 | maybe-all-sid: all-sid |
24657 | all-sid: configure-sid | |
0aed8855 | 24658 | @: $(MAKE); $(unstage) |
b40e3958 L |
24659 | @r=`${PWD_COMMAND}`; export r; \ |
24660 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24661 | $(HOST_EXPORTS) \ |
b00612cc PB |
24662 | (cd $(HOST_SUBDIR)/sid && \ |
24663 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sid)) | |
b813574b | 24664 | @endif sid |
3866be5d | 24665 | |
a7254363 | 24666 | |
d545f33b PB |
24667 | |
24668 | ||
b813574b PB |
24669 | .PHONY: check-sid maybe-check-sid |
24670 | maybe-check-sid: | |
24671 | @if sid | |
24672 | maybe-check-sid: check-sid | |
3866be5d | 24673 | |
b813574b | 24674 | check-sid: |
0aed8855 | 24675 | @: $(MAKE); $(unstage) |
4fa63067 NN |
24676 | @r=`${PWD_COMMAND}`; export r; \ |
24677 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24678 | $(HOST_EXPORTS) \ |
b00612cc PB |
24679 | (cd $(HOST_SUBDIR)/sid && \ |
24680 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 24681 | |
b813574b | 24682 | @endif sid |
3866be5d | 24683 | |
b813574b PB |
24684 | .PHONY: install-sid maybe-install-sid |
24685 | maybe-install-sid: | |
24686 | @if sid | |
24687 | maybe-install-sid: install-sid | |
16ae0395 | 24688 | |
b813574b | 24689 | install-sid: installdirs |
0aed8855 | 24690 | @: $(MAKE); $(unstage) |
b40e3958 L |
24691 | @r=`${PWD_COMMAND}`; export r; \ |
24692 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24693 | $(HOST_EXPORTS) \ |
b00612cc | 24694 | (cd $(HOST_SUBDIR)/sid && \ |
2da12f12 | 24695 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 24696 | |
b813574b | 24697 | @endif sid |
3866be5d | 24698 | |
4fa63067 NN |
24699 | # Other targets (info, dvi, etc.) |
24700 | ||
b813574b PB |
24701 | .PHONY: maybe-info-sid info-sid |
24702 | maybe-info-sid: | |
24703 | @if sid | |
24704 | maybe-info-sid: info-sid | |
4fa63067 | 24705 | |
b813574b PB |
24706 | info-sid: \ |
24707 | configure-sid | |
0aed8855 | 24708 | @: $(MAKE); $(unstage) |
b813574b | 24709 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24710 | r=`${PWD_COMMAND}`; export r; \ |
24711 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24712 | $(HOST_EXPORTS) \ |
b813574b | 24713 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24714 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24715 | done; \ | |
b813574b | 24716 | echo "Doing info in sid" ; \ |
b00612cc | 24717 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24718 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24719 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24720 | "RANLIB=$${RANLIB}" \ | |
24721 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24722 | info) \ |
4fa63067 NN |
24723 | || exit 1 |
24724 | ||
b813574b | 24725 | @endif sid |
4fa63067 | 24726 | |
b813574b PB |
24727 | .PHONY: maybe-dvi-sid dvi-sid |
24728 | maybe-dvi-sid: | |
24729 | @if sid | |
24730 | maybe-dvi-sid: dvi-sid | |
4fa63067 | 24731 | |
b813574b PB |
24732 | dvi-sid: \ |
24733 | configure-sid | |
0aed8855 | 24734 | @: $(MAKE); $(unstage) |
b813574b | 24735 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24736 | r=`${PWD_COMMAND}`; export r; \ |
24737 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24738 | $(HOST_EXPORTS) \ |
b813574b | 24739 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24740 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24741 | done; \ | |
b813574b | 24742 | echo "Doing dvi in sid" ; \ |
b00612cc | 24743 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24744 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24745 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24746 | "RANLIB=$${RANLIB}" \ | |
24747 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24748 | dvi) \ |
4fa63067 NN |
24749 | || exit 1 |
24750 | ||
b813574b | 24751 | @endif sid |
4fa63067 | 24752 | |
6d389afc MS |
24753 | .PHONY: maybe-html-sid html-sid |
24754 | maybe-html-sid: | |
24755 | @if sid | |
24756 | maybe-html-sid: html-sid | |
24757 | ||
24758 | html-sid: \ | |
24759 | configure-sid | |
0aed8855 | 24760 | @: $(MAKE); $(unstage) |
6d389afc MS |
24761 | @[ -f ./sid/Makefile ] || exit 0; \ |
24762 | r=`${PWD_COMMAND}`; export r; \ | |
24763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
24764 | $(HOST_EXPORTS) \ |
24765 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
24766 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24767 | done; \ | |
24768 | echo "Doing html in sid" ; \ | |
b00612cc | 24769 | (cd $(HOST_SUBDIR)/sid && \ |
6d389afc MS |
24770 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24771 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24772 | "RANLIB=$${RANLIB}" \ | |
24773 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24774 | html) \ | |
24775 | || exit 1 | |
24776 | ||
24777 | @endif sid | |
24778 | ||
b813574b PB |
24779 | .PHONY: maybe-TAGS-sid TAGS-sid |
24780 | maybe-TAGS-sid: | |
24781 | @if sid | |
24782 | maybe-TAGS-sid: TAGS-sid | |
4fa63067 | 24783 | |
b813574b PB |
24784 | TAGS-sid: \ |
24785 | configure-sid | |
0aed8855 | 24786 | @: $(MAKE); $(unstage) |
b813574b | 24787 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24788 | r=`${PWD_COMMAND}`; export r; \ |
24789 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24790 | $(HOST_EXPORTS) \ |
b813574b | 24791 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24792 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24793 | done; \ | |
b813574b | 24794 | echo "Doing TAGS in sid" ; \ |
b00612cc | 24795 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24796 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24797 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24798 | "RANLIB=$${RANLIB}" \ | |
24799 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24800 | TAGS) \ |
4fa63067 NN |
24801 | || exit 1 |
24802 | ||
b813574b | 24803 | @endif sid |
4fa63067 | 24804 | |
b813574b PB |
24805 | .PHONY: maybe-install-info-sid install-info-sid |
24806 | maybe-install-info-sid: | |
24807 | @if sid | |
24808 | maybe-install-info-sid: install-info-sid | |
4fa63067 | 24809 | |
b813574b PB |
24810 | install-info-sid: \ |
24811 | configure-sid \ | |
24812 | info-sid | |
0aed8855 | 24813 | @: $(MAKE); $(unstage) |
b813574b | 24814 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24815 | r=`${PWD_COMMAND}`; export r; \ |
24816 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24817 | $(HOST_EXPORTS) \ |
b813574b | 24818 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24819 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24820 | done; \ | |
b813574b | 24821 | echo "Doing install-info in sid" ; \ |
b00612cc | 24822 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24823 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24824 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24825 | "RANLIB=$${RANLIB}" \ | |
24826 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24827 | install-info) \ |
4fa63067 NN |
24828 | || exit 1 |
24829 | ||
b813574b | 24830 | @endif sid |
4fa63067 | 24831 | |
108a6f8e CD |
24832 | .PHONY: maybe-install-html-sid install-html-sid |
24833 | maybe-install-html-sid: | |
24834 | @if sid | |
24835 | maybe-install-html-sid: install-html-sid | |
24836 | ||
24837 | install-html-sid: \ | |
24838 | configure-sid \ | |
24839 | html-sid | |
24840 | @: $(MAKE); $(unstage) | |
24841 | @[ -f ./sid/Makefile ] || exit 0; \ | |
24842 | r=`${PWD_COMMAND}`; export r; \ | |
24843 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
24844 | $(HOST_EXPORTS) \ | |
24845 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
24846 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
24847 | done; \ | |
24848 | echo "Doing install-html in sid" ; \ | |
24849 | (cd $(HOST_SUBDIR)/sid && \ | |
24850 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
24851 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24852 | "RANLIB=$${RANLIB}" \ | |
24853 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
24854 | install-html) \ | |
24855 | || exit 1 | |
24856 | ||
24857 | @endif sid | |
24858 | ||
b813574b PB |
24859 | .PHONY: maybe-installcheck-sid installcheck-sid |
24860 | maybe-installcheck-sid: | |
24861 | @if sid | |
24862 | maybe-installcheck-sid: installcheck-sid | |
4fa63067 | 24863 | |
b813574b PB |
24864 | installcheck-sid: \ |
24865 | configure-sid | |
0aed8855 | 24866 | @: $(MAKE); $(unstage) |
b813574b PB |
24867 | @[ -f ./sid/Makefile ] || exit 0; \ |
24868 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 24869 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 24870 | $(HOST_EXPORTS) \ |
b813574b | 24871 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24872 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24873 | done; \ | |
b813574b | 24874 | echo "Doing installcheck in sid" ; \ |
b00612cc | 24875 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24876 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24877 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24878 | "RANLIB=$${RANLIB}" \ | |
24879 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24880 | installcheck) \ |
4fa63067 NN |
24881 | || exit 1 |
24882 | ||
b813574b | 24883 | @endif sid |
4fa63067 | 24884 | |
b813574b PB |
24885 | .PHONY: maybe-mostlyclean-sid mostlyclean-sid |
24886 | maybe-mostlyclean-sid: | |
24887 | @if sid | |
24888 | maybe-mostlyclean-sid: mostlyclean-sid | |
4fa63067 | 24889 | |
b813574b | 24890 | mostlyclean-sid: |
0aed8855 | 24891 | @: $(MAKE); $(unstage) |
b813574b | 24892 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24893 | r=`${PWD_COMMAND}`; export r; \ |
24894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24895 | $(HOST_EXPORTS) \ |
b813574b | 24896 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24897 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24898 | done; \ | |
b813574b | 24899 | echo "Doing mostlyclean in sid" ; \ |
b00612cc | 24900 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24901 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24902 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24903 | "RANLIB=$${RANLIB}" \ | |
24904 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24905 | mostlyclean) \ |
4fa63067 NN |
24906 | || exit 1 |
24907 | ||
b813574b | 24908 | @endif sid |
4fa63067 | 24909 | |
b813574b PB |
24910 | .PHONY: maybe-clean-sid clean-sid |
24911 | maybe-clean-sid: | |
24912 | @if sid | |
24913 | maybe-clean-sid: clean-sid | |
4fa63067 | 24914 | |
b813574b | 24915 | clean-sid: |
0aed8855 | 24916 | @: $(MAKE); $(unstage) |
b813574b | 24917 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24918 | r=`${PWD_COMMAND}`; export r; \ |
24919 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24920 | $(HOST_EXPORTS) \ |
b813574b | 24921 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24922 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24923 | done; \ | |
b813574b | 24924 | echo "Doing clean in sid" ; \ |
b00612cc | 24925 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24926 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24927 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24928 | "RANLIB=$${RANLIB}" \ | |
24929 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24930 | clean) \ |
4fa63067 NN |
24931 | || exit 1 |
24932 | ||
b813574b | 24933 | @endif sid |
4fa63067 | 24934 | |
b813574b PB |
24935 | .PHONY: maybe-distclean-sid distclean-sid |
24936 | maybe-distclean-sid: | |
24937 | @if sid | |
24938 | maybe-distclean-sid: distclean-sid | |
4fa63067 | 24939 | |
b813574b | 24940 | distclean-sid: |
0aed8855 | 24941 | @: $(MAKE); $(unstage) |
b813574b | 24942 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24943 | r=`${PWD_COMMAND}`; export r; \ |
24944 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24945 | $(HOST_EXPORTS) \ |
b813574b | 24946 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24947 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24948 | done; \ | |
b813574b | 24949 | echo "Doing distclean in sid" ; \ |
b00612cc | 24950 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24951 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24952 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24953 | "RANLIB=$${RANLIB}" \ | |
24954 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24955 | distclean) \ |
4fa63067 NN |
24956 | || exit 1 |
24957 | ||
b813574b | 24958 | @endif sid |
4fa63067 | 24959 | |
b813574b PB |
24960 | .PHONY: maybe-maintainer-clean-sid maintainer-clean-sid |
24961 | maybe-maintainer-clean-sid: | |
24962 | @if sid | |
24963 | maybe-maintainer-clean-sid: maintainer-clean-sid | |
4fa63067 | 24964 | |
b813574b | 24965 | maintainer-clean-sid: |
0aed8855 | 24966 | @: $(MAKE); $(unstage) |
b813574b | 24967 | @[ -f ./sid/Makefile ] || exit 0; \ |
4fa63067 NN |
24968 | r=`${PWD_COMMAND}`; export r; \ |
24969 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 24970 | $(HOST_EXPORTS) \ |
b813574b | 24971 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
24972 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
24973 | done; \ | |
b813574b | 24974 | echo "Doing maintainer-clean in sid" ; \ |
b00612cc | 24975 | (cd $(HOST_SUBDIR)/sid && \ |
4fa63067 NN |
24976 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
24977 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
24978 | "RANLIB=$${RANLIB}" \ | |
24979 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 24980 | maintainer-clean) \ |
4fa63067 NN |
24981 | || exit 1 |
24982 | ||
b813574b | 24983 | @endif sid |
4fa63067 NN |
24984 | |
24985 | ||
a7254363 | 24986 | |
b813574b PB |
24987 | .PHONY: configure-sim maybe-configure-sim |
24988 | maybe-configure-sim: | |
24989 | @if sim | |
24990 | maybe-configure-sim: configure-sim | |
c52c6897 | 24991 | configure-sim: |
0aed8855 | 24992 | @: $(MAKE); $(unstage) |
c52c6897 | 24993 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 24994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
24995 | test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \ |
24996 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \ | |
378fce5b | 24997 | $(HOST_EXPORTS) \ |
a7254363 PB |
24998 | echo Configuring in $(HOST_SUBDIR)/sim; \ |
24999 | cd "$(HOST_SUBDIR)/sim" || exit 1; \ | |
e2b9e2dc | 25000 | case $(srcdir) in \ |
b00612cc PB |
25001 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
25002 | *) topdir=`echo $(HOST_SUBDIR)/sim/ | \ | |
25003 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 25004 | esac; \ |
b00612cc PB |
25005 | srcdiroption="--srcdir=$${topdir}/sim"; \ |
25006 | libsrcdir="$$s/sim"; \ | |
e2b9e2dc | 25007 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 25008 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 25009 | || exit 1 |
b813574b | 25010 | @endif sim |
e2b9e2dc | 25011 | |
a7254363 PB |
25012 | |
25013 | ||
d545f33b PB |
25014 | |
25015 | ||
b813574b PB |
25016 | .PHONY: all-sim maybe-all-sim |
25017 | maybe-all-sim: | |
25018 | @if sim | |
d27cc32e | 25019 | TARGET-sim=all |
b813574b PB |
25020 | maybe-all-sim: all-sim |
25021 | all-sim: configure-sim | |
0aed8855 | 25022 | @: $(MAKE); $(unstage) |
b40e3958 L |
25023 | @r=`${PWD_COMMAND}`; export r; \ |
25024 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25025 | $(HOST_EXPORTS) \ |
b00612cc PB |
25026 | (cd $(HOST_SUBDIR)/sim && \ |
25027 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sim)) | |
b813574b | 25028 | @endif sim |
3866be5d | 25029 | |
a7254363 | 25030 | |
d545f33b PB |
25031 | |
25032 | ||
b813574b PB |
25033 | .PHONY: check-sim maybe-check-sim |
25034 | maybe-check-sim: | |
25035 | @if sim | |
25036 | maybe-check-sim: check-sim | |
3866be5d | 25037 | |
b813574b | 25038 | check-sim: |
0aed8855 | 25039 | @: $(MAKE); $(unstage) |
b40e3958 L |
25040 | @r=`${PWD_COMMAND}`; export r; \ |
25041 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25042 | $(HOST_EXPORTS) \ |
b00612cc PB |
25043 | (cd $(HOST_SUBDIR)/sim && \ |
25044 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 25045 | |
b813574b | 25046 | @endif sim |
3866be5d | 25047 | |
b813574b PB |
25048 | .PHONY: install-sim maybe-install-sim |
25049 | maybe-install-sim: | |
25050 | @if sim | |
25051 | maybe-install-sim: install-sim | |
16ae0395 | 25052 | |
b813574b | 25053 | install-sim: installdirs |
0aed8855 | 25054 | @: $(MAKE); $(unstage) |
b40e3958 L |
25055 | @r=`${PWD_COMMAND}`; export r; \ |
25056 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25057 | $(HOST_EXPORTS) \ |
b00612cc | 25058 | (cd $(HOST_SUBDIR)/sim && \ |
2da12f12 | 25059 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 25060 | |
b813574b | 25061 | @endif sim |
3866be5d | 25062 | |
4fa63067 NN |
25063 | # Other targets (info, dvi, etc.) |
25064 | ||
b813574b PB |
25065 | .PHONY: maybe-info-sim info-sim |
25066 | maybe-info-sim: | |
25067 | @if sim | |
25068 | maybe-info-sim: info-sim | |
4fa63067 | 25069 | |
b813574b PB |
25070 | info-sim: \ |
25071 | configure-sim | |
0aed8855 | 25072 | @: $(MAKE); $(unstage) |
b813574b | 25073 | @[ -f ./sim/Makefile ] || exit 0; \ |
b40e3958 L |
25074 | r=`${PWD_COMMAND}`; export r; \ |
25075 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25076 | $(HOST_EXPORTS) \ |
b813574b | 25077 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25078 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25079 | done; \ | |
b813574b | 25080 | echo "Doing info in sim" ; \ |
b00612cc | 25081 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25082 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25083 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25084 | "RANLIB=$${RANLIB}" \ | |
25085 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25086 | info) \ |
e2b9e2dc NN |
25087 | || exit 1 |
25088 | ||
b813574b | 25089 | @endif sim |
4fa63067 | 25090 | |
b813574b PB |
25091 | .PHONY: maybe-dvi-sim dvi-sim |
25092 | maybe-dvi-sim: | |
25093 | @if sim | |
25094 | maybe-dvi-sim: dvi-sim | |
4fa63067 | 25095 | |
b813574b PB |
25096 | dvi-sim: \ |
25097 | configure-sim | |
0aed8855 | 25098 | @: $(MAKE); $(unstage) |
b813574b | 25099 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 | 25100 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25101 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25102 | $(HOST_EXPORTS) \ |
b813574b | 25103 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25104 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25105 | done; \ | |
b813574b | 25106 | echo "Doing dvi in sim" ; \ |
b00612cc | 25107 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25108 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25109 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25110 | "RANLIB=$${RANLIB}" \ | |
25111 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25112 | dvi) \ |
4fa63067 | 25113 | || exit 1 |
3866be5d | 25114 | |
b813574b | 25115 | @endif sim |
3866be5d | 25116 | |
6d389afc MS |
25117 | .PHONY: maybe-html-sim html-sim |
25118 | maybe-html-sim: | |
25119 | @if sim | |
25120 | maybe-html-sim: html-sim | |
25121 | ||
25122 | html-sim: \ | |
25123 | configure-sim | |
0aed8855 | 25124 | @: $(MAKE); $(unstage) |
6d389afc MS |
25125 | @[ -f ./sim/Makefile ] || exit 0; \ |
25126 | r=`${PWD_COMMAND}`; export r; \ | |
25127 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25128 | $(HOST_EXPORTS) \ |
25129 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25130 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25131 | done; \ | |
25132 | echo "Doing html in sim" ; \ | |
b00612cc | 25133 | (cd $(HOST_SUBDIR)/sim && \ |
6d389afc MS |
25134 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25135 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25136 | "RANLIB=$${RANLIB}" \ | |
25137 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25138 | html) \ | |
25139 | || exit 1 | |
25140 | ||
25141 | @endif sim | |
25142 | ||
b813574b PB |
25143 | .PHONY: maybe-TAGS-sim TAGS-sim |
25144 | maybe-TAGS-sim: | |
25145 | @if sim | |
25146 | maybe-TAGS-sim: TAGS-sim | |
4fa63067 | 25147 | |
b813574b PB |
25148 | TAGS-sim: \ |
25149 | configure-sim | |
0aed8855 | 25150 | @: $(MAKE); $(unstage) |
b813574b | 25151 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 | 25152 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25153 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25154 | $(HOST_EXPORTS) \ |
b813574b | 25155 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25156 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25157 | done; \ | |
b813574b | 25158 | echo "Doing TAGS in sim" ; \ |
b00612cc | 25159 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25160 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25161 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25162 | "RANLIB=$${RANLIB}" \ | |
25163 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25164 | TAGS) \ |
4fa63067 | 25165 | || exit 1 |
3866be5d | 25166 | |
b813574b | 25167 | @endif sim |
3866be5d | 25168 | |
b813574b PB |
25169 | .PHONY: maybe-install-info-sim install-info-sim |
25170 | maybe-install-info-sim: | |
25171 | @if sim | |
25172 | maybe-install-info-sim: install-info-sim | |
4fa63067 | 25173 | |
b813574b PB |
25174 | install-info-sim: \ |
25175 | configure-sim \ | |
25176 | info-sim | |
0aed8855 | 25177 | @: $(MAKE); $(unstage) |
b813574b | 25178 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 NN |
25179 | r=`${PWD_COMMAND}`; export r; \ |
25180 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25181 | $(HOST_EXPORTS) \ |
b813574b | 25182 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25183 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25184 | done; \ | |
b813574b | 25185 | echo "Doing install-info in sim" ; \ |
b00612cc | 25186 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25187 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25188 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25189 | "RANLIB=$${RANLIB}" \ | |
25190 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25191 | install-info) \ |
4fa63067 NN |
25192 | || exit 1 |
25193 | ||
b813574b | 25194 | @endif sim |
4fa63067 | 25195 | |
108a6f8e CD |
25196 | .PHONY: maybe-install-html-sim install-html-sim |
25197 | maybe-install-html-sim: | |
25198 | @if sim | |
25199 | maybe-install-html-sim: install-html-sim | |
25200 | ||
25201 | install-html-sim: \ | |
25202 | configure-sim \ | |
25203 | html-sim | |
25204 | @: $(MAKE); $(unstage) | |
25205 | @[ -f ./sim/Makefile ] || exit 0; \ | |
25206 | r=`${PWD_COMMAND}`; export r; \ | |
25207 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25208 | $(HOST_EXPORTS) \ | |
25209 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25210 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25211 | done; \ | |
25212 | echo "Doing install-html in sim" ; \ | |
25213 | (cd $(HOST_SUBDIR)/sim && \ | |
25214 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25215 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25216 | "RANLIB=$${RANLIB}" \ | |
25217 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25218 | install-html) \ | |
25219 | || exit 1 | |
25220 | ||
25221 | @endif sim | |
25222 | ||
b813574b PB |
25223 | .PHONY: maybe-installcheck-sim installcheck-sim |
25224 | maybe-installcheck-sim: | |
25225 | @if sim | |
25226 | maybe-installcheck-sim: installcheck-sim | |
4fa63067 | 25227 | |
b813574b PB |
25228 | installcheck-sim: \ |
25229 | configure-sim | |
0aed8855 | 25230 | @: $(MAKE); $(unstage) |
b813574b | 25231 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 NN |
25232 | r=`${PWD_COMMAND}`; export r; \ |
25233 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25234 | $(HOST_EXPORTS) \ |
b813574b | 25235 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25236 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25237 | done; \ | |
b813574b | 25238 | echo "Doing installcheck in sim" ; \ |
b00612cc | 25239 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25240 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25241 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25242 | "RANLIB=$${RANLIB}" \ | |
25243 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25244 | installcheck) \ |
4fa63067 NN |
25245 | || exit 1 |
25246 | ||
b813574b | 25247 | @endif sim |
4fa63067 | 25248 | |
b813574b PB |
25249 | .PHONY: maybe-mostlyclean-sim mostlyclean-sim |
25250 | maybe-mostlyclean-sim: | |
25251 | @if sim | |
25252 | maybe-mostlyclean-sim: mostlyclean-sim | |
4fa63067 | 25253 | |
b813574b | 25254 | mostlyclean-sim: |
0aed8855 | 25255 | @: $(MAKE); $(unstage) |
b813574b | 25256 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 NN |
25257 | r=`${PWD_COMMAND}`; export r; \ |
25258 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25259 | $(HOST_EXPORTS) \ |
b813574b | 25260 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25261 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25262 | done; \ | |
b813574b | 25263 | echo "Doing mostlyclean in sim" ; \ |
b00612cc | 25264 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25265 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25266 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25267 | "RANLIB=$${RANLIB}" \ | |
25268 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25269 | mostlyclean) \ |
4fa63067 NN |
25270 | || exit 1 |
25271 | ||
b813574b | 25272 | @endif sim |
4fa63067 | 25273 | |
b813574b PB |
25274 | .PHONY: maybe-clean-sim clean-sim |
25275 | maybe-clean-sim: | |
25276 | @if sim | |
25277 | maybe-clean-sim: clean-sim | |
4fa63067 | 25278 | |
b813574b | 25279 | clean-sim: |
0aed8855 | 25280 | @: $(MAKE); $(unstage) |
b813574b | 25281 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 NN |
25282 | r=`${PWD_COMMAND}`; export r; \ |
25283 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25284 | $(HOST_EXPORTS) \ |
b813574b | 25285 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25286 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25287 | done; \ | |
b813574b | 25288 | echo "Doing clean in sim" ; \ |
b00612cc | 25289 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25290 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25291 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25292 | "RANLIB=$${RANLIB}" \ | |
25293 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25294 | clean) \ |
4fa63067 NN |
25295 | || exit 1 |
25296 | ||
b813574b | 25297 | @endif sim |
4fa63067 | 25298 | |
b813574b PB |
25299 | .PHONY: maybe-distclean-sim distclean-sim |
25300 | maybe-distclean-sim: | |
25301 | @if sim | |
25302 | maybe-distclean-sim: distclean-sim | |
4fa63067 | 25303 | |
b813574b | 25304 | distclean-sim: |
0aed8855 | 25305 | @: $(MAKE); $(unstage) |
b813574b | 25306 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 NN |
25307 | r=`${PWD_COMMAND}`; export r; \ |
25308 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25309 | $(HOST_EXPORTS) \ |
b813574b | 25310 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25311 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25312 | done; \ | |
b813574b | 25313 | echo "Doing distclean in sim" ; \ |
b00612cc | 25314 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25315 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25316 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25317 | "RANLIB=$${RANLIB}" \ | |
25318 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25319 | distclean) \ |
4fa63067 NN |
25320 | || exit 1 |
25321 | ||
b813574b | 25322 | @endif sim |
4fa63067 | 25323 | |
b813574b PB |
25324 | .PHONY: maybe-maintainer-clean-sim maintainer-clean-sim |
25325 | maybe-maintainer-clean-sim: | |
25326 | @if sim | |
25327 | maybe-maintainer-clean-sim: maintainer-clean-sim | |
16ae0395 | 25328 | |
b813574b | 25329 | maintainer-clean-sim: |
0aed8855 | 25330 | @: $(MAKE); $(unstage) |
b813574b | 25331 | @[ -f ./sim/Makefile ] || exit 0; \ |
4fa63067 | 25332 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25333 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25334 | $(HOST_EXPORTS) \ |
b813574b | 25335 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25336 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25337 | done; \ | |
b813574b | 25338 | echo "Doing maintainer-clean in sim" ; \ |
b00612cc | 25339 | (cd $(HOST_SUBDIR)/sim && \ |
4fa63067 NN |
25340 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25341 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25342 | "RANLIB=$${RANLIB}" \ | |
25343 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25344 | maintainer-clean) \ |
4fa63067 | 25345 | || exit 1 |
3866be5d | 25346 | |
b813574b | 25347 | @endif sim |
3866be5d | 25348 | |
4fa63067 | 25349 | |
a7254363 | 25350 | |
b813574b PB |
25351 | .PHONY: configure-tar maybe-configure-tar |
25352 | maybe-configure-tar: | |
25353 | @if tar | |
25354 | maybe-configure-tar: configure-tar | |
c52c6897 | 25355 | configure-tar: |
0aed8855 | 25356 | @: $(MAKE); $(unstage) |
c52c6897 | 25357 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
25359 | test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \ |
25360 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \ | |
378fce5b | 25361 | $(HOST_EXPORTS) \ |
a7254363 PB |
25362 | echo Configuring in $(HOST_SUBDIR)/tar; \ |
25363 | cd "$(HOST_SUBDIR)/tar" || exit 1; \ | |
e2b9e2dc | 25364 | case $(srcdir) in \ |
b00612cc PB |
25365 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
25366 | *) topdir=`echo $(HOST_SUBDIR)/tar/ | \ | |
25367 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 25368 | esac; \ |
b00612cc PB |
25369 | srcdiroption="--srcdir=$${topdir}/tar"; \ |
25370 | libsrcdir="$$s/tar"; \ | |
e2b9e2dc | 25371 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 25372 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 25373 | || exit 1 |
b813574b | 25374 | @endif tar |
e2b9e2dc | 25375 | |
a7254363 PB |
25376 | |
25377 | ||
d545f33b PB |
25378 | |
25379 | ||
b813574b PB |
25380 | .PHONY: all-tar maybe-all-tar |
25381 | maybe-all-tar: | |
25382 | @if tar | |
d27cc32e | 25383 | TARGET-tar=all |
b813574b PB |
25384 | maybe-all-tar: all-tar |
25385 | all-tar: configure-tar | |
0aed8855 | 25386 | @: $(MAKE); $(unstage) |
b40e3958 L |
25387 | @r=`${PWD_COMMAND}`; export r; \ |
25388 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25389 | $(HOST_EXPORTS) \ |
b00612cc PB |
25390 | (cd $(HOST_SUBDIR)/tar && \ |
25391 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tar)) | |
b813574b | 25392 | @endif tar |
3866be5d | 25393 | |
a7254363 | 25394 | |
d545f33b PB |
25395 | |
25396 | ||
b813574b PB |
25397 | .PHONY: check-tar maybe-check-tar |
25398 | maybe-check-tar: | |
25399 | @if tar | |
25400 | maybe-check-tar: check-tar | |
3866be5d | 25401 | |
b813574b | 25402 | check-tar: |
0aed8855 | 25403 | @: $(MAKE); $(unstage) |
b40e3958 L |
25404 | @r=`${PWD_COMMAND}`; export r; \ |
25405 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25406 | $(HOST_EXPORTS) \ |
b00612cc PB |
25407 | (cd $(HOST_SUBDIR)/tar && \ |
25408 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 25409 | |
b813574b | 25410 | @endif tar |
3866be5d | 25411 | |
b813574b PB |
25412 | .PHONY: install-tar maybe-install-tar |
25413 | maybe-install-tar: | |
25414 | @if tar | |
25415 | maybe-install-tar: install-tar | |
16ae0395 | 25416 | |
b813574b | 25417 | install-tar: installdirs |
0aed8855 | 25418 | @: $(MAKE); $(unstage) |
b813574b PB |
25419 | @r=`${PWD_COMMAND}`; export r; \ |
25420 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 25421 | $(HOST_EXPORTS) \ |
b00612cc | 25422 | (cd $(HOST_SUBDIR)/tar && \ |
2da12f12 | 25423 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 25424 | |
b813574b | 25425 | @endif tar |
4fa63067 NN |
25426 | |
25427 | # Other targets (info, dvi, etc.) | |
25428 | ||
b813574b PB |
25429 | .PHONY: maybe-info-tar info-tar |
25430 | maybe-info-tar: | |
25431 | @if tar | |
25432 | maybe-info-tar: info-tar | |
4fa63067 | 25433 | |
b813574b PB |
25434 | info-tar: \ |
25435 | configure-tar | |
0aed8855 | 25436 | @: $(MAKE); $(unstage) |
b813574b | 25437 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 | 25438 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 25439 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 25440 | $(HOST_EXPORTS) \ |
b813574b | 25441 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25442 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25443 | done; \ | |
b813574b | 25444 | echo "Doing info in tar" ; \ |
b00612cc | 25445 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25446 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25447 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25448 | "RANLIB=$${RANLIB}" \ | |
25449 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25450 | info) \ |
4fa63067 NN |
25451 | || exit 1 |
25452 | ||
b813574b | 25453 | @endif tar |
4fa63067 | 25454 | |
b813574b PB |
25455 | .PHONY: maybe-dvi-tar dvi-tar |
25456 | maybe-dvi-tar: | |
25457 | @if tar | |
25458 | maybe-dvi-tar: dvi-tar | |
4fa63067 | 25459 | |
b813574b PB |
25460 | dvi-tar: \ |
25461 | configure-tar | |
0aed8855 | 25462 | @: $(MAKE); $(unstage) |
b813574b | 25463 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25464 | r=`${PWD_COMMAND}`; export r; \ |
25465 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25466 | $(HOST_EXPORTS) \ |
b813574b | 25467 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25468 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25469 | done; \ | |
b813574b | 25470 | echo "Doing dvi in tar" ; \ |
b00612cc | 25471 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25472 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25473 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25474 | "RANLIB=$${RANLIB}" \ | |
25475 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25476 | dvi) \ |
4fa63067 NN |
25477 | || exit 1 |
25478 | ||
b813574b | 25479 | @endif tar |
4fa63067 | 25480 | |
6d389afc MS |
25481 | .PHONY: maybe-html-tar html-tar |
25482 | maybe-html-tar: | |
25483 | @if tar | |
25484 | maybe-html-tar: html-tar | |
25485 | ||
25486 | html-tar: \ | |
25487 | configure-tar | |
0aed8855 | 25488 | @: $(MAKE); $(unstage) |
6d389afc MS |
25489 | @[ -f ./tar/Makefile ] || exit 0; \ |
25490 | r=`${PWD_COMMAND}`; export r; \ | |
25491 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25492 | $(HOST_EXPORTS) \ |
25493 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25494 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25495 | done; \ | |
25496 | echo "Doing html in tar" ; \ | |
b00612cc | 25497 | (cd $(HOST_SUBDIR)/tar && \ |
6d389afc MS |
25498 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25499 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25500 | "RANLIB=$${RANLIB}" \ | |
25501 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25502 | html) \ | |
25503 | || exit 1 | |
25504 | ||
25505 | @endif tar | |
25506 | ||
b813574b PB |
25507 | .PHONY: maybe-TAGS-tar TAGS-tar |
25508 | maybe-TAGS-tar: | |
25509 | @if tar | |
25510 | maybe-TAGS-tar: TAGS-tar | |
4fa63067 | 25511 | |
b813574b PB |
25512 | TAGS-tar: \ |
25513 | configure-tar | |
0aed8855 | 25514 | @: $(MAKE); $(unstage) |
b813574b | 25515 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25516 | r=`${PWD_COMMAND}`; export r; \ |
25517 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25518 | $(HOST_EXPORTS) \ |
b813574b | 25519 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25520 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25521 | done; \ | |
b813574b | 25522 | echo "Doing TAGS in tar" ; \ |
b00612cc | 25523 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25524 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25525 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25526 | "RANLIB=$${RANLIB}" \ | |
25527 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25528 | TAGS) \ |
4fa63067 NN |
25529 | || exit 1 |
25530 | ||
b813574b | 25531 | @endif tar |
4fa63067 | 25532 | |
b813574b PB |
25533 | .PHONY: maybe-install-info-tar install-info-tar |
25534 | maybe-install-info-tar: | |
25535 | @if tar | |
25536 | maybe-install-info-tar: install-info-tar | |
4fa63067 | 25537 | |
b813574b PB |
25538 | install-info-tar: \ |
25539 | configure-tar \ | |
25540 | info-tar | |
0aed8855 | 25541 | @: $(MAKE); $(unstage) |
b813574b | 25542 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25543 | r=`${PWD_COMMAND}`; export r; \ |
25544 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25545 | $(HOST_EXPORTS) \ |
b813574b | 25546 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25547 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25548 | done; \ | |
b813574b | 25549 | echo "Doing install-info in tar" ; \ |
b00612cc | 25550 | (cd $(HOST_SUBDIR)/tar && \ |
b813574b | 25551 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
4fa63067 NN |
25552 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ |
25553 | "RANLIB=$${RANLIB}" \ | |
25554 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25555 | install-info) \ |
4fa63067 NN |
25556 | || exit 1 |
25557 | ||
b813574b | 25558 | @endif tar |
4fa63067 | 25559 | |
108a6f8e CD |
25560 | .PHONY: maybe-install-html-tar install-html-tar |
25561 | maybe-install-html-tar: | |
25562 | @if tar | |
25563 | maybe-install-html-tar: install-html-tar | |
25564 | ||
25565 | install-html-tar: \ | |
25566 | configure-tar \ | |
25567 | html-tar | |
25568 | @: $(MAKE); $(unstage) | |
25569 | @[ -f ./tar/Makefile ] || exit 0; \ | |
25570 | r=`${PWD_COMMAND}`; export r; \ | |
25571 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25572 | $(HOST_EXPORTS) \ | |
25573 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25574 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25575 | done; \ | |
25576 | echo "Doing install-html in tar" ; \ | |
25577 | (cd $(HOST_SUBDIR)/tar && \ | |
25578 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25579 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25580 | "RANLIB=$${RANLIB}" \ | |
25581 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25582 | install-html) \ | |
25583 | || exit 1 | |
25584 | ||
25585 | @endif tar | |
25586 | ||
b813574b PB |
25587 | .PHONY: maybe-installcheck-tar installcheck-tar |
25588 | maybe-installcheck-tar: | |
25589 | @if tar | |
25590 | maybe-installcheck-tar: installcheck-tar | |
4fa63067 | 25591 | |
b813574b PB |
25592 | installcheck-tar: \ |
25593 | configure-tar | |
0aed8855 | 25594 | @: $(MAKE); $(unstage) |
b813574b | 25595 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25596 | r=`${PWD_COMMAND}`; export r; \ |
25597 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25598 | $(HOST_EXPORTS) \ |
b813574b | 25599 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25600 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25601 | done; \ | |
b813574b | 25602 | echo "Doing installcheck in tar" ; \ |
b00612cc | 25603 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25604 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25605 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25606 | "RANLIB=$${RANLIB}" \ | |
25607 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25608 | installcheck) \ |
4fa63067 NN |
25609 | || exit 1 |
25610 | ||
b813574b | 25611 | @endif tar |
4fa63067 | 25612 | |
b813574b PB |
25613 | .PHONY: maybe-mostlyclean-tar mostlyclean-tar |
25614 | maybe-mostlyclean-tar: | |
25615 | @if tar | |
25616 | maybe-mostlyclean-tar: mostlyclean-tar | |
4fa63067 | 25617 | |
b813574b | 25618 | mostlyclean-tar: |
0aed8855 | 25619 | @: $(MAKE); $(unstage) |
b813574b | 25620 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25621 | r=`${PWD_COMMAND}`; export r; \ |
25622 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25623 | $(HOST_EXPORTS) \ |
b813574b | 25624 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25625 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25626 | done; \ | |
b813574b | 25627 | echo "Doing mostlyclean in tar" ; \ |
b00612cc | 25628 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25629 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25630 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25631 | "RANLIB=$${RANLIB}" \ | |
25632 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25633 | mostlyclean) \ |
4fa63067 NN |
25634 | || exit 1 |
25635 | ||
b813574b | 25636 | @endif tar |
4fa63067 | 25637 | |
b813574b PB |
25638 | .PHONY: maybe-clean-tar clean-tar |
25639 | maybe-clean-tar: | |
25640 | @if tar | |
25641 | maybe-clean-tar: clean-tar | |
4fa63067 | 25642 | |
b813574b | 25643 | clean-tar: |
0aed8855 | 25644 | @: $(MAKE); $(unstage) |
b813574b | 25645 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25646 | r=`${PWD_COMMAND}`; export r; \ |
25647 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25648 | $(HOST_EXPORTS) \ |
b813574b | 25649 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25650 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25651 | done; \ | |
b813574b | 25652 | echo "Doing clean in tar" ; \ |
b00612cc | 25653 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25654 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25655 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25656 | "RANLIB=$${RANLIB}" \ | |
25657 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25658 | clean) \ |
4fa63067 NN |
25659 | || exit 1 |
25660 | ||
b813574b | 25661 | @endif tar |
4fa63067 | 25662 | |
b813574b PB |
25663 | .PHONY: maybe-distclean-tar distclean-tar |
25664 | maybe-distclean-tar: | |
25665 | @if tar | |
25666 | maybe-distclean-tar: distclean-tar | |
4fa63067 | 25667 | |
b813574b | 25668 | distclean-tar: |
0aed8855 | 25669 | @: $(MAKE); $(unstage) |
b813574b | 25670 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25671 | r=`${PWD_COMMAND}`; export r; \ |
25672 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25673 | $(HOST_EXPORTS) \ |
b813574b | 25674 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25675 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25676 | done; \ | |
b813574b | 25677 | echo "Doing distclean in tar" ; \ |
b00612cc | 25678 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25679 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25680 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25681 | "RANLIB=$${RANLIB}" \ | |
25682 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25683 | distclean) \ |
4fa63067 NN |
25684 | || exit 1 |
25685 | ||
b813574b | 25686 | @endif tar |
4fa63067 | 25687 | |
b813574b PB |
25688 | .PHONY: maybe-maintainer-clean-tar maintainer-clean-tar |
25689 | maybe-maintainer-clean-tar: | |
25690 | @if tar | |
25691 | maybe-maintainer-clean-tar: maintainer-clean-tar | |
4fa63067 | 25692 | |
b813574b | 25693 | maintainer-clean-tar: |
0aed8855 | 25694 | @: $(MAKE); $(unstage) |
b813574b | 25695 | @[ -f ./tar/Makefile ] || exit 0; \ |
4fa63067 NN |
25696 | r=`${PWD_COMMAND}`; export r; \ |
25697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25698 | $(HOST_EXPORTS) \ |
b813574b | 25699 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25700 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25701 | done; \ | |
b813574b | 25702 | echo "Doing maintainer-clean in tar" ; \ |
b00612cc | 25703 | (cd $(HOST_SUBDIR)/tar && \ |
4fa63067 NN |
25704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25706 | "RANLIB=$${RANLIB}" \ | |
25707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25708 | maintainer-clean) \ |
4fa63067 | 25709 | || exit 1 |
3866be5d | 25710 | |
b813574b | 25711 | @endif tar |
3866be5d | 25712 | |
4fa63067 | 25713 | |
a7254363 | 25714 | |
b813574b PB |
25715 | .PHONY: configure-texinfo maybe-configure-texinfo |
25716 | maybe-configure-texinfo: | |
25717 | @if texinfo | |
25718 | maybe-configure-texinfo: configure-texinfo | |
c52c6897 | 25719 | configure-texinfo: |
0aed8855 | 25720 | @: $(MAKE); $(unstage) |
c52c6897 | 25721 | @r=`${PWD_COMMAND}`; export r; \ |
378fce5b | 25722 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
25723 | test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \ |
25724 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \ | |
378fce5b | 25725 | $(HOST_EXPORTS) \ |
a7254363 PB |
25726 | echo Configuring in $(HOST_SUBDIR)/texinfo; \ |
25727 | cd "$(HOST_SUBDIR)/texinfo" || exit 1; \ | |
e2b9e2dc | 25728 | case $(srcdir) in \ |
b00612cc PB |
25729 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
25730 | *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \ | |
25731 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 25732 | esac; \ |
b00612cc PB |
25733 | srcdiroption="--srcdir=$${topdir}/texinfo"; \ |
25734 | libsrcdir="$$s/texinfo"; \ | |
e2b9e2dc | 25735 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 25736 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 25737 | || exit 1 |
b813574b | 25738 | @endif texinfo |
e2b9e2dc | 25739 | |
a7254363 PB |
25740 | |
25741 | ||
d545f33b PB |
25742 | |
25743 | ||
b813574b PB |
25744 | .PHONY: all-texinfo maybe-all-texinfo |
25745 | maybe-all-texinfo: | |
25746 | @if texinfo | |
d27cc32e | 25747 | TARGET-texinfo=all |
b813574b PB |
25748 | maybe-all-texinfo: all-texinfo |
25749 | all-texinfo: configure-texinfo | |
0aed8855 | 25750 | @: $(MAKE); $(unstage) |
b40e3958 L |
25751 | @r=`${PWD_COMMAND}`; export r; \ |
25752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25753 | $(HOST_EXPORTS) \ |
b00612cc PB |
25754 | (cd $(HOST_SUBDIR)/texinfo && \ |
25755 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-texinfo)) | |
b813574b | 25756 | @endif texinfo |
3866be5d | 25757 | |
a7254363 | 25758 | |
d545f33b PB |
25759 | |
25760 | ||
b813574b PB |
25761 | .PHONY: check-texinfo maybe-check-texinfo |
25762 | maybe-check-texinfo: | |
25763 | @if texinfo | |
25764 | maybe-check-texinfo: check-texinfo | |
3866be5d | 25765 | |
b813574b | 25766 | check-texinfo: |
0aed8855 | 25767 | @: $(MAKE); $(unstage) |
4fa63067 NN |
25768 | @r=`${PWD_COMMAND}`; export r; \ |
25769 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25770 | $(HOST_EXPORTS) \ |
b00612cc PB |
25771 | (cd $(HOST_SUBDIR)/texinfo && \ |
25772 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 25773 | |
b813574b | 25774 | @endif texinfo |
3866be5d | 25775 | |
b813574b PB |
25776 | .PHONY: install-texinfo maybe-install-texinfo |
25777 | maybe-install-texinfo: | |
25778 | @if texinfo | |
25779 | maybe-install-texinfo: install-texinfo | |
16ae0395 | 25780 | |
b813574b | 25781 | install-texinfo: |
3866be5d | 25782 | |
b813574b | 25783 | @endif texinfo |
3866be5d | 25784 | |
4fa63067 NN |
25785 | # Other targets (info, dvi, etc.) |
25786 | ||
b813574b PB |
25787 | .PHONY: maybe-info-texinfo info-texinfo |
25788 | maybe-info-texinfo: | |
25789 | @if texinfo | |
25790 | maybe-info-texinfo: info-texinfo | |
4fa63067 | 25791 | |
b813574b PB |
25792 | info-texinfo: \ |
25793 | configure-texinfo | |
0aed8855 | 25794 | @: $(MAKE); $(unstage) |
b813574b | 25795 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
25796 | r=`${PWD_COMMAND}`; export r; \ |
25797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25798 | $(HOST_EXPORTS) \ |
b813574b | 25799 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25800 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25801 | done; \ | |
b813574b | 25802 | echo "Doing info in texinfo" ; \ |
b00612cc | 25803 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
25804 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25805 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25806 | "RANLIB=$${RANLIB}" \ | |
25807 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25808 | info) \ |
4fa63067 NN |
25809 | || exit 1 |
25810 | ||
b813574b | 25811 | @endif texinfo |
4fa63067 | 25812 | |
b813574b PB |
25813 | .PHONY: maybe-dvi-texinfo dvi-texinfo |
25814 | maybe-dvi-texinfo: | |
25815 | @if texinfo | |
25816 | maybe-dvi-texinfo: dvi-texinfo | |
4fa63067 | 25817 | |
b813574b PB |
25818 | dvi-texinfo: \ |
25819 | configure-texinfo | |
0aed8855 | 25820 | @: $(MAKE); $(unstage) |
b813574b | 25821 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
25822 | r=`${PWD_COMMAND}`; export r; \ |
25823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25824 | $(HOST_EXPORTS) \ |
b813574b | 25825 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25826 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25827 | done; \ | |
b813574b | 25828 | echo "Doing dvi in texinfo" ; \ |
b00612cc | 25829 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
25830 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25831 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25832 | "RANLIB=$${RANLIB}" \ | |
25833 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25834 | dvi) \ |
4fa63067 NN |
25835 | || exit 1 |
25836 | ||
b813574b | 25837 | @endif texinfo |
4fa63067 | 25838 | |
6d389afc MS |
25839 | .PHONY: maybe-html-texinfo html-texinfo |
25840 | maybe-html-texinfo: | |
25841 | @if texinfo | |
25842 | maybe-html-texinfo: html-texinfo | |
25843 | ||
25844 | html-texinfo: \ | |
25845 | configure-texinfo | |
0aed8855 | 25846 | @: $(MAKE); $(unstage) |
6d389afc MS |
25847 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
25848 | r=`${PWD_COMMAND}`; export r; \ | |
25849 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
25850 | $(HOST_EXPORTS) \ |
25851 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25852 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25853 | done; \ | |
25854 | echo "Doing html in texinfo" ; \ | |
b00612cc | 25855 | (cd $(HOST_SUBDIR)/texinfo && \ |
6d389afc MS |
25856 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25857 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25858 | "RANLIB=$${RANLIB}" \ | |
25859 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25860 | html) \ | |
25861 | || exit 1 | |
25862 | ||
25863 | @endif texinfo | |
25864 | ||
b813574b PB |
25865 | .PHONY: maybe-TAGS-texinfo TAGS-texinfo |
25866 | maybe-TAGS-texinfo: | |
25867 | @if texinfo | |
25868 | maybe-TAGS-texinfo: TAGS-texinfo | |
4fa63067 | 25869 | |
b813574b PB |
25870 | TAGS-texinfo: \ |
25871 | configure-texinfo | |
0aed8855 | 25872 | @: $(MAKE); $(unstage) |
b813574b | 25873 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
25874 | r=`${PWD_COMMAND}`; export r; \ |
25875 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25876 | $(HOST_EXPORTS) \ |
b813574b | 25877 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25878 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25879 | done; \ | |
b813574b | 25880 | echo "Doing TAGS in texinfo" ; \ |
b00612cc | 25881 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
25882 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25883 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25884 | "RANLIB=$${RANLIB}" \ | |
25885 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25886 | TAGS) \ |
4fa63067 NN |
25887 | || exit 1 |
25888 | ||
b813574b | 25889 | @endif texinfo |
4fa63067 | 25890 | |
b813574b PB |
25891 | .PHONY: maybe-install-info-texinfo install-info-texinfo |
25892 | maybe-install-info-texinfo: | |
25893 | @if texinfo | |
25894 | maybe-install-info-texinfo: install-info-texinfo | |
4fa63067 | 25895 | |
b813574b PB |
25896 | install-info-texinfo: \ |
25897 | configure-texinfo \ | |
25898 | info-texinfo | |
0aed8855 | 25899 | @: $(MAKE); $(unstage) |
b813574b | 25900 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
25901 | r=`${PWD_COMMAND}`; export r; \ |
25902 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25903 | $(HOST_EXPORTS) \ |
b813574b | 25904 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25905 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25906 | done; \ | |
b813574b | 25907 | echo "Doing install-info in texinfo" ; \ |
b00612cc | 25908 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
25909 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25910 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25911 | "RANLIB=$${RANLIB}" \ | |
25912 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25913 | install-info) \ |
4fa63067 NN |
25914 | || exit 1 |
25915 | ||
b813574b | 25916 | @endif texinfo |
4fa63067 | 25917 | |
108a6f8e CD |
25918 | .PHONY: maybe-install-html-texinfo install-html-texinfo |
25919 | maybe-install-html-texinfo: | |
25920 | @if texinfo | |
25921 | maybe-install-html-texinfo: install-html-texinfo | |
25922 | ||
25923 | install-html-texinfo: \ | |
25924 | configure-texinfo \ | |
25925 | html-texinfo | |
25926 | @: $(MAKE); $(unstage) | |
25927 | @[ -f ./texinfo/Makefile ] || exit 0; \ | |
25928 | r=`${PWD_COMMAND}`; export r; \ | |
25929 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
25930 | $(HOST_EXPORTS) \ | |
25931 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
25932 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
25933 | done; \ | |
25934 | echo "Doing install-html in texinfo" ; \ | |
25935 | (cd $(HOST_SUBDIR)/texinfo && \ | |
25936 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
25937 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25938 | "RANLIB=$${RANLIB}" \ | |
25939 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
25940 | install-html) \ | |
25941 | || exit 1 | |
25942 | ||
25943 | @endif texinfo | |
25944 | ||
b813574b PB |
25945 | .PHONY: maybe-installcheck-texinfo installcheck-texinfo |
25946 | maybe-installcheck-texinfo: | |
25947 | @if texinfo | |
25948 | maybe-installcheck-texinfo: installcheck-texinfo | |
4fa63067 | 25949 | |
b813574b PB |
25950 | installcheck-texinfo: \ |
25951 | configure-texinfo | |
0aed8855 | 25952 | @: $(MAKE); $(unstage) |
b813574b | 25953 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
25954 | r=`${PWD_COMMAND}`; export r; \ |
25955 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25956 | $(HOST_EXPORTS) \ |
b813574b | 25957 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25958 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25959 | done; \ | |
b813574b | 25960 | echo "Doing installcheck in texinfo" ; \ |
b00612cc | 25961 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
25962 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25963 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25964 | "RANLIB=$${RANLIB}" \ | |
25965 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25966 | installcheck) \ |
4fa63067 NN |
25967 | || exit 1 |
25968 | ||
b813574b | 25969 | @endif texinfo |
4fa63067 | 25970 | |
b813574b PB |
25971 | .PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo |
25972 | maybe-mostlyclean-texinfo: | |
25973 | @if texinfo | |
25974 | maybe-mostlyclean-texinfo: mostlyclean-texinfo | |
4fa63067 | 25975 | |
b813574b | 25976 | mostlyclean-texinfo: |
0aed8855 | 25977 | @: $(MAKE); $(unstage) |
b813574b | 25978 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
25979 | r=`${PWD_COMMAND}`; export r; \ |
25980 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 25981 | $(HOST_EXPORTS) \ |
b813574b | 25982 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
25983 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
25984 | done; \ | |
b813574b | 25985 | echo "Doing mostlyclean in texinfo" ; \ |
b00612cc | 25986 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
25987 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
25988 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
25989 | "RANLIB=$${RANLIB}" \ | |
25990 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 25991 | mostlyclean) \ |
4fa63067 NN |
25992 | || exit 1 |
25993 | ||
b813574b | 25994 | @endif texinfo |
4fa63067 | 25995 | |
b813574b PB |
25996 | .PHONY: maybe-clean-texinfo clean-texinfo |
25997 | maybe-clean-texinfo: | |
25998 | @if texinfo | |
25999 | maybe-clean-texinfo: clean-texinfo | |
4fa63067 | 26000 | |
b813574b | 26001 | clean-texinfo: |
0aed8855 | 26002 | @: $(MAKE); $(unstage) |
b813574b | 26003 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
26004 | r=`${PWD_COMMAND}`; export r; \ |
26005 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26006 | $(HOST_EXPORTS) \ |
b813574b | 26007 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26008 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26009 | done; \ | |
b813574b | 26010 | echo "Doing clean in texinfo" ; \ |
b00612cc | 26011 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
26012 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26013 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26014 | "RANLIB=$${RANLIB}" \ | |
26015 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26016 | clean) \ |
4fa63067 NN |
26017 | || exit 1 |
26018 | ||
b813574b | 26019 | @endif texinfo |
4fa63067 | 26020 | |
b813574b PB |
26021 | .PHONY: maybe-distclean-texinfo distclean-texinfo |
26022 | maybe-distclean-texinfo: | |
26023 | @if texinfo | |
26024 | maybe-distclean-texinfo: distclean-texinfo | |
4fa63067 | 26025 | |
b813574b | 26026 | distclean-texinfo: |
0aed8855 | 26027 | @: $(MAKE); $(unstage) |
b813574b | 26028 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
26029 | r=`${PWD_COMMAND}`; export r; \ |
26030 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26031 | $(HOST_EXPORTS) \ |
b813574b | 26032 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26033 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26034 | done; \ | |
b813574b | 26035 | echo "Doing distclean in texinfo" ; \ |
b00612cc | 26036 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
26037 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26038 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26039 | "RANLIB=$${RANLIB}" \ | |
26040 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26041 | distclean) \ |
4fa63067 NN |
26042 | || exit 1 |
26043 | ||
b813574b | 26044 | @endif texinfo |
4fa63067 | 26045 | |
b813574b PB |
26046 | .PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo |
26047 | maybe-maintainer-clean-texinfo: | |
26048 | @if texinfo | |
26049 | maybe-maintainer-clean-texinfo: maintainer-clean-texinfo | |
4fa63067 | 26050 | |
b813574b | 26051 | maintainer-clean-texinfo: |
0aed8855 | 26052 | @: $(MAKE); $(unstage) |
b813574b | 26053 | @[ -f ./texinfo/Makefile ] || exit 0; \ |
4fa63067 NN |
26054 | r=`${PWD_COMMAND}`; export r; \ |
26055 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26056 | $(HOST_EXPORTS) \ |
b813574b | 26057 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26058 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26059 | done; \ | |
b813574b | 26060 | echo "Doing maintainer-clean in texinfo" ; \ |
b00612cc | 26061 | (cd $(HOST_SUBDIR)/texinfo && \ |
4fa63067 NN |
26062 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26063 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26064 | "RANLIB=$${RANLIB}" \ | |
26065 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26066 | maintainer-clean) \ |
4fa63067 NN |
26067 | || exit 1 |
26068 | ||
b813574b | 26069 | @endif texinfo |
4fa63067 NN |
26070 | |
26071 | ||
a7254363 | 26072 | |
b813574b PB |
26073 | .PHONY: configure-textutils maybe-configure-textutils |
26074 | maybe-configure-textutils: | |
26075 | @if textutils | |
26076 | maybe-configure-textutils: configure-textutils | |
c52c6897 | 26077 | configure-textutils: |
0aed8855 | 26078 | @: $(MAKE); $(unstage) |
c52c6897 | 26079 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26080 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
26081 | test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \ |
26082 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \ | |
378fce5b | 26083 | $(HOST_EXPORTS) \ |
a7254363 PB |
26084 | echo Configuring in $(HOST_SUBDIR)/textutils; \ |
26085 | cd "$(HOST_SUBDIR)/textutils" || exit 1; \ | |
e2b9e2dc | 26086 | case $(srcdir) in \ |
b00612cc PB |
26087 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26088 | *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \ | |
26089 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 26090 | esac; \ |
b00612cc PB |
26091 | srcdiroption="--srcdir=$${topdir}/textutils"; \ |
26092 | libsrcdir="$$s/textutils"; \ | |
e2b9e2dc | 26093 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 26094 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 26095 | || exit 1 |
b813574b | 26096 | @endif textutils |
e2b9e2dc | 26097 | |
a7254363 PB |
26098 | |
26099 | ||
d545f33b PB |
26100 | |
26101 | ||
b813574b PB |
26102 | .PHONY: all-textutils maybe-all-textutils |
26103 | maybe-all-textutils: | |
26104 | @if textutils | |
d27cc32e | 26105 | TARGET-textutils=all |
b813574b PB |
26106 | maybe-all-textutils: all-textutils |
26107 | all-textutils: configure-textutils | |
0aed8855 | 26108 | @: $(MAKE); $(unstage) |
b40e3958 L |
26109 | @r=`${PWD_COMMAND}`; export r; \ |
26110 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26111 | $(HOST_EXPORTS) \ |
b00612cc PB |
26112 | (cd $(HOST_SUBDIR)/textutils && \ |
26113 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-textutils)) | |
b813574b | 26114 | @endif textutils |
3866be5d | 26115 | |
a7254363 | 26116 | |
d545f33b PB |
26117 | |
26118 | ||
b813574b PB |
26119 | .PHONY: check-textutils maybe-check-textutils |
26120 | maybe-check-textutils: | |
26121 | @if textutils | |
26122 | maybe-check-textutils: check-textutils | |
3866be5d | 26123 | |
b813574b | 26124 | check-textutils: |
0aed8855 | 26125 | @: $(MAKE); $(unstage) |
b40e3958 L |
26126 | @r=`${PWD_COMMAND}`; export r; \ |
26127 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26128 | $(HOST_EXPORTS) \ |
b00612cc PB |
26129 | (cd $(HOST_SUBDIR)/textutils && \ |
26130 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 26131 | |
b813574b | 26132 | @endif textutils |
3866be5d | 26133 | |
b813574b PB |
26134 | .PHONY: install-textutils maybe-install-textutils |
26135 | maybe-install-textutils: | |
26136 | @if textutils | |
26137 | maybe-install-textutils: install-textutils | |
16ae0395 | 26138 | |
b813574b | 26139 | install-textutils: installdirs |
0aed8855 | 26140 | @: $(MAKE); $(unstage) |
b40e3958 L |
26141 | @r=`${PWD_COMMAND}`; export r; \ |
26142 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26143 | $(HOST_EXPORTS) \ |
b00612cc | 26144 | (cd $(HOST_SUBDIR)/textutils && \ |
2da12f12 | 26145 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 26146 | |
b813574b | 26147 | @endif textutils |
3866be5d | 26148 | |
4fa63067 NN |
26149 | # Other targets (info, dvi, etc.) |
26150 | ||
b813574b PB |
26151 | .PHONY: maybe-info-textutils info-textutils |
26152 | maybe-info-textutils: | |
26153 | @if textutils | |
26154 | maybe-info-textutils: info-textutils | |
4fa63067 | 26155 | |
b813574b PB |
26156 | info-textutils: \ |
26157 | configure-textutils | |
0aed8855 | 26158 | @: $(MAKE); $(unstage) |
b813574b | 26159 | @[ -f ./textutils/Makefile ] || exit 0; \ |
b40e3958 L |
26160 | r=`${PWD_COMMAND}`; export r; \ |
26161 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26162 | $(HOST_EXPORTS) \ |
b813574b | 26163 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26164 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26165 | done; \ | |
b813574b | 26166 | echo "Doing info in textutils" ; \ |
b00612cc | 26167 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26168 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26169 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26170 | "RANLIB=$${RANLIB}" \ | |
26171 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26172 | info) \ |
e2b9e2dc NN |
26173 | || exit 1 |
26174 | ||
b813574b | 26175 | @endif textutils |
4fa63067 | 26176 | |
b813574b PB |
26177 | .PHONY: maybe-dvi-textutils dvi-textutils |
26178 | maybe-dvi-textutils: | |
26179 | @if textutils | |
26180 | maybe-dvi-textutils: dvi-textutils | |
4fa63067 | 26181 | |
b813574b PB |
26182 | dvi-textutils: \ |
26183 | configure-textutils | |
0aed8855 | 26184 | @: $(MAKE); $(unstage) |
b813574b | 26185 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 | 26186 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26187 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26188 | $(HOST_EXPORTS) \ |
b813574b | 26189 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26190 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26191 | done; \ | |
b813574b | 26192 | echo "Doing dvi in textutils" ; \ |
b00612cc | 26193 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26194 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26195 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26196 | "RANLIB=$${RANLIB}" \ | |
26197 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26198 | dvi) \ |
4fa63067 | 26199 | || exit 1 |
3866be5d | 26200 | |
b813574b | 26201 | @endif textutils |
3866be5d | 26202 | |
6d389afc MS |
26203 | .PHONY: maybe-html-textutils html-textutils |
26204 | maybe-html-textutils: | |
26205 | @if textutils | |
26206 | maybe-html-textutils: html-textutils | |
26207 | ||
26208 | html-textutils: \ | |
26209 | configure-textutils | |
0aed8855 | 26210 | @: $(MAKE); $(unstage) |
6d389afc MS |
26211 | @[ -f ./textutils/Makefile ] || exit 0; \ |
26212 | r=`${PWD_COMMAND}`; export r; \ | |
26213 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26214 | $(HOST_EXPORTS) \ |
26215 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26216 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26217 | done; \ | |
26218 | echo "Doing html in textutils" ; \ | |
b00612cc | 26219 | (cd $(HOST_SUBDIR)/textutils && \ |
6d389afc MS |
26220 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26221 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26222 | "RANLIB=$${RANLIB}" \ | |
26223 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26224 | html) \ | |
26225 | || exit 1 | |
26226 | ||
26227 | @endif textutils | |
26228 | ||
b813574b PB |
26229 | .PHONY: maybe-TAGS-textutils TAGS-textutils |
26230 | maybe-TAGS-textutils: | |
26231 | @if textutils | |
26232 | maybe-TAGS-textutils: TAGS-textutils | |
4fa63067 | 26233 | |
b813574b PB |
26234 | TAGS-textutils: \ |
26235 | configure-textutils | |
0aed8855 | 26236 | @: $(MAKE); $(unstage) |
b813574b | 26237 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 | 26238 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26239 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26240 | $(HOST_EXPORTS) \ |
b813574b | 26241 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26242 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26243 | done; \ | |
b813574b | 26244 | echo "Doing TAGS in textutils" ; \ |
b00612cc | 26245 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26246 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26247 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26248 | "RANLIB=$${RANLIB}" \ | |
26249 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26250 | TAGS) \ |
4fa63067 | 26251 | || exit 1 |
3866be5d | 26252 | |
b813574b | 26253 | @endif textutils |
3866be5d | 26254 | |
b813574b PB |
26255 | .PHONY: maybe-install-info-textutils install-info-textutils |
26256 | maybe-install-info-textutils: | |
26257 | @if textutils | |
26258 | maybe-install-info-textutils: install-info-textutils | |
4fa63067 | 26259 | |
b813574b PB |
26260 | install-info-textutils: \ |
26261 | configure-textutils \ | |
26262 | info-textutils | |
0aed8855 | 26263 | @: $(MAKE); $(unstage) |
b813574b | 26264 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 NN |
26265 | r=`${PWD_COMMAND}`; export r; \ |
26266 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26267 | $(HOST_EXPORTS) \ |
b813574b | 26268 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26269 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26270 | done; \ | |
b813574b | 26271 | echo "Doing install-info in textutils" ; \ |
b00612cc | 26272 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26273 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26274 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26275 | "RANLIB=$${RANLIB}" \ | |
26276 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26277 | install-info) \ |
4fa63067 NN |
26278 | || exit 1 |
26279 | ||
b813574b | 26280 | @endif textutils |
4fa63067 | 26281 | |
108a6f8e CD |
26282 | .PHONY: maybe-install-html-textutils install-html-textutils |
26283 | maybe-install-html-textutils: | |
26284 | @if textutils | |
26285 | maybe-install-html-textutils: install-html-textutils | |
26286 | ||
26287 | install-html-textutils: \ | |
26288 | configure-textutils \ | |
26289 | html-textutils | |
26290 | @: $(MAKE); $(unstage) | |
26291 | @[ -f ./textutils/Makefile ] || exit 0; \ | |
26292 | r=`${PWD_COMMAND}`; export r; \ | |
26293 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26294 | $(HOST_EXPORTS) \ | |
26295 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26296 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26297 | done; \ | |
26298 | echo "Doing install-html in textutils" ; \ | |
26299 | (cd $(HOST_SUBDIR)/textutils && \ | |
26300 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26301 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26302 | "RANLIB=$${RANLIB}" \ | |
26303 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26304 | install-html) \ | |
26305 | || exit 1 | |
26306 | ||
26307 | @endif textutils | |
26308 | ||
b813574b PB |
26309 | .PHONY: maybe-installcheck-textutils installcheck-textutils |
26310 | maybe-installcheck-textutils: | |
26311 | @if textutils | |
26312 | maybe-installcheck-textutils: installcheck-textutils | |
4fa63067 | 26313 | |
b813574b PB |
26314 | installcheck-textutils: \ |
26315 | configure-textutils | |
0aed8855 | 26316 | @: $(MAKE); $(unstage) |
b813574b | 26317 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 NN |
26318 | r=`${PWD_COMMAND}`; export r; \ |
26319 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26320 | $(HOST_EXPORTS) \ |
b813574b | 26321 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26322 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26323 | done; \ | |
b813574b | 26324 | echo "Doing installcheck in textutils" ; \ |
b00612cc | 26325 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26326 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26327 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26328 | "RANLIB=$${RANLIB}" \ | |
26329 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26330 | installcheck) \ |
4fa63067 NN |
26331 | || exit 1 |
26332 | ||
b813574b | 26333 | @endif textutils |
4fa63067 | 26334 | |
b813574b PB |
26335 | .PHONY: maybe-mostlyclean-textutils mostlyclean-textutils |
26336 | maybe-mostlyclean-textutils: | |
26337 | @if textutils | |
26338 | maybe-mostlyclean-textutils: mostlyclean-textutils | |
4fa63067 | 26339 | |
b813574b | 26340 | mostlyclean-textutils: |
0aed8855 | 26341 | @: $(MAKE); $(unstage) |
b813574b | 26342 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 NN |
26343 | r=`${PWD_COMMAND}`; export r; \ |
26344 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26345 | $(HOST_EXPORTS) \ |
b813574b | 26346 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26347 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26348 | done; \ | |
b813574b | 26349 | echo "Doing mostlyclean in textutils" ; \ |
b00612cc | 26350 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26351 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26352 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26353 | "RANLIB=$${RANLIB}" \ | |
26354 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26355 | mostlyclean) \ |
4fa63067 NN |
26356 | || exit 1 |
26357 | ||
b813574b | 26358 | @endif textutils |
4fa63067 | 26359 | |
b813574b PB |
26360 | .PHONY: maybe-clean-textutils clean-textutils |
26361 | maybe-clean-textutils: | |
26362 | @if textutils | |
26363 | maybe-clean-textutils: clean-textutils | |
4fa63067 | 26364 | |
b813574b | 26365 | clean-textutils: |
0aed8855 | 26366 | @: $(MAKE); $(unstage) |
b813574b | 26367 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 NN |
26368 | r=`${PWD_COMMAND}`; export r; \ |
26369 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26370 | $(HOST_EXPORTS) \ |
b813574b | 26371 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26372 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26373 | done; \ | |
b813574b | 26374 | echo "Doing clean in textutils" ; \ |
b00612cc | 26375 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26376 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26377 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26378 | "RANLIB=$${RANLIB}" \ | |
26379 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26380 | clean) \ |
4fa63067 NN |
26381 | || exit 1 |
26382 | ||
b813574b | 26383 | @endif textutils |
4fa63067 | 26384 | |
b813574b PB |
26385 | .PHONY: maybe-distclean-textutils distclean-textutils |
26386 | maybe-distclean-textutils: | |
26387 | @if textutils | |
26388 | maybe-distclean-textutils: distclean-textutils | |
4fa63067 | 26389 | |
b813574b | 26390 | distclean-textutils: |
0aed8855 | 26391 | @: $(MAKE); $(unstage) |
b813574b | 26392 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 NN |
26393 | r=`${PWD_COMMAND}`; export r; \ |
26394 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26395 | $(HOST_EXPORTS) \ |
b813574b | 26396 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26397 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26398 | done; \ | |
b813574b | 26399 | echo "Doing distclean in textutils" ; \ |
b00612cc | 26400 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26401 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26402 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26403 | "RANLIB=$${RANLIB}" \ | |
26404 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26405 | distclean) \ |
4fa63067 NN |
26406 | || exit 1 |
26407 | ||
b813574b | 26408 | @endif textutils |
4fa63067 | 26409 | |
b813574b PB |
26410 | .PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils |
26411 | maybe-maintainer-clean-textutils: | |
26412 | @if textutils | |
26413 | maybe-maintainer-clean-textutils: maintainer-clean-textutils | |
16ae0395 | 26414 | |
b813574b | 26415 | maintainer-clean-textutils: |
0aed8855 | 26416 | @: $(MAKE); $(unstage) |
b813574b | 26417 | @[ -f ./textutils/Makefile ] || exit 0; \ |
4fa63067 | 26418 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26420 | $(HOST_EXPORTS) \ |
b813574b | 26421 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26422 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26423 | done; \ | |
b813574b | 26424 | echo "Doing maintainer-clean in textutils" ; \ |
b00612cc | 26425 | (cd $(HOST_SUBDIR)/textutils && \ |
4fa63067 NN |
26426 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26427 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26428 | "RANLIB=$${RANLIB}" \ | |
26429 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26430 | maintainer-clean) \ |
4fa63067 | 26431 | || exit 1 |
3866be5d | 26432 | |
b813574b | 26433 | @endif textutils |
3866be5d | 26434 | |
4fa63067 | 26435 | |
a7254363 | 26436 | |
b813574b PB |
26437 | .PHONY: configure-time maybe-configure-time |
26438 | maybe-configure-time: | |
26439 | @if time | |
26440 | maybe-configure-time: configure-time | |
c52c6897 | 26441 | configure-time: |
0aed8855 | 26442 | @: $(MAKE); $(unstage) |
c52c6897 | 26443 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
26445 | test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \ |
26446 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \ | |
378fce5b | 26447 | $(HOST_EXPORTS) \ |
a7254363 PB |
26448 | echo Configuring in $(HOST_SUBDIR)/time; \ |
26449 | cd "$(HOST_SUBDIR)/time" || exit 1; \ | |
e2b9e2dc | 26450 | case $(srcdir) in \ |
b00612cc PB |
26451 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26452 | *) topdir=`echo $(HOST_SUBDIR)/time/ | \ | |
26453 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 26454 | esac; \ |
b00612cc PB |
26455 | srcdiroption="--srcdir=$${topdir}/time"; \ |
26456 | libsrcdir="$$s/time"; \ | |
e2b9e2dc | 26457 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 26458 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 26459 | || exit 1 |
b813574b | 26460 | @endif time |
e2b9e2dc | 26461 | |
a7254363 PB |
26462 | |
26463 | ||
d545f33b PB |
26464 | |
26465 | ||
b813574b PB |
26466 | .PHONY: all-time maybe-all-time |
26467 | maybe-all-time: | |
26468 | @if time | |
d27cc32e | 26469 | TARGET-time=all |
b813574b PB |
26470 | maybe-all-time: all-time |
26471 | all-time: configure-time | |
0aed8855 | 26472 | @: $(MAKE); $(unstage) |
b40e3958 L |
26473 | @r=`${PWD_COMMAND}`; export r; \ |
26474 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26475 | $(HOST_EXPORTS) \ |
b00612cc PB |
26476 | (cd $(HOST_SUBDIR)/time && \ |
26477 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-time)) | |
b813574b | 26478 | @endif time |
3866be5d | 26479 | |
a7254363 | 26480 | |
d545f33b PB |
26481 | |
26482 | ||
b813574b PB |
26483 | .PHONY: check-time maybe-check-time |
26484 | maybe-check-time: | |
26485 | @if time | |
26486 | maybe-check-time: check-time | |
3866be5d | 26487 | |
b813574b | 26488 | check-time: |
0aed8855 | 26489 | @: $(MAKE); $(unstage) |
b40e3958 L |
26490 | @r=`${PWD_COMMAND}`; export r; \ |
26491 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26492 | $(HOST_EXPORTS) \ |
b00612cc PB |
26493 | (cd $(HOST_SUBDIR)/time && \ |
26494 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 26495 | |
b813574b | 26496 | @endif time |
3866be5d | 26497 | |
b813574b PB |
26498 | .PHONY: install-time maybe-install-time |
26499 | maybe-install-time: | |
26500 | @if time | |
26501 | maybe-install-time: install-time | |
4fa63067 | 26502 | |
b813574b | 26503 | install-time: installdirs |
0aed8855 | 26504 | @: $(MAKE); $(unstage) |
4fa63067 NN |
26505 | @r=`${PWD_COMMAND}`; export r; \ |
26506 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26507 | $(HOST_EXPORTS) \ |
b00612cc | 26508 | (cd $(HOST_SUBDIR)/time && \ |
2da12f12 | 26509 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 26510 | |
b813574b | 26511 | @endif time |
4fa63067 NN |
26512 | |
26513 | # Other targets (info, dvi, etc.) | |
26514 | ||
b813574b PB |
26515 | .PHONY: maybe-info-time info-time |
26516 | maybe-info-time: | |
26517 | @if time | |
26518 | maybe-info-time: info-time | |
4fa63067 | 26519 | |
b813574b PB |
26520 | info-time: \ |
26521 | configure-time | |
0aed8855 | 26522 | @: $(MAKE); $(unstage) |
b813574b | 26523 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26524 | r=`${PWD_COMMAND}`; export r; \ |
26525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26526 | $(HOST_EXPORTS) \ |
b813574b | 26527 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26528 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26529 | done; \ | |
b813574b | 26530 | echo "Doing info in time" ; \ |
b00612cc | 26531 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26532 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26533 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26534 | "RANLIB=$${RANLIB}" \ | |
26535 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26536 | info) \ |
4fa63067 NN |
26537 | || exit 1 |
26538 | ||
b813574b | 26539 | @endif time |
4fa63067 | 26540 | |
b813574b PB |
26541 | .PHONY: maybe-dvi-time dvi-time |
26542 | maybe-dvi-time: | |
26543 | @if time | |
26544 | maybe-dvi-time: dvi-time | |
4fa63067 | 26545 | |
b813574b PB |
26546 | dvi-time: \ |
26547 | configure-time | |
0aed8855 | 26548 | @: $(MAKE); $(unstage) |
b813574b | 26549 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26550 | r=`${PWD_COMMAND}`; export r; \ |
26551 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26552 | $(HOST_EXPORTS) \ |
b813574b | 26553 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26554 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26555 | done; \ | |
b813574b | 26556 | echo "Doing dvi in time" ; \ |
b00612cc | 26557 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26558 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26559 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26560 | "RANLIB=$${RANLIB}" \ | |
26561 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26562 | dvi) \ |
4fa63067 NN |
26563 | || exit 1 |
26564 | ||
b813574b | 26565 | @endif time |
4fa63067 | 26566 | |
6d389afc MS |
26567 | .PHONY: maybe-html-time html-time |
26568 | maybe-html-time: | |
26569 | @if time | |
26570 | maybe-html-time: html-time | |
26571 | ||
26572 | html-time: \ | |
26573 | configure-time | |
0aed8855 | 26574 | @: $(MAKE); $(unstage) |
6d389afc MS |
26575 | @[ -f ./time/Makefile ] || exit 0; \ |
26576 | r=`${PWD_COMMAND}`; export r; \ | |
26577 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26578 | $(HOST_EXPORTS) \ |
26579 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26580 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26581 | done; \ | |
26582 | echo "Doing html in time" ; \ | |
b00612cc | 26583 | (cd $(HOST_SUBDIR)/time && \ |
6d389afc MS |
26584 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26585 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26586 | "RANLIB=$${RANLIB}" \ | |
26587 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26588 | html) \ | |
26589 | || exit 1 | |
26590 | ||
26591 | @endif time | |
26592 | ||
b813574b PB |
26593 | .PHONY: maybe-TAGS-time TAGS-time |
26594 | maybe-TAGS-time: | |
26595 | @if time | |
26596 | maybe-TAGS-time: TAGS-time | |
4fa63067 | 26597 | |
b813574b PB |
26598 | TAGS-time: \ |
26599 | configure-time | |
0aed8855 | 26600 | @: $(MAKE); $(unstage) |
b813574b | 26601 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26602 | r=`${PWD_COMMAND}`; export r; \ |
26603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26604 | $(HOST_EXPORTS) \ |
b813574b | 26605 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26606 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26607 | done; \ | |
b813574b | 26608 | echo "Doing TAGS in time" ; \ |
b00612cc | 26609 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26610 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26611 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26612 | "RANLIB=$${RANLIB}" \ | |
26613 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26614 | TAGS) \ |
4fa63067 NN |
26615 | || exit 1 |
26616 | ||
b813574b | 26617 | @endif time |
4fa63067 | 26618 | |
b813574b PB |
26619 | .PHONY: maybe-install-info-time install-info-time |
26620 | maybe-install-info-time: | |
26621 | @if time | |
26622 | maybe-install-info-time: install-info-time | |
4fa63067 | 26623 | |
b813574b PB |
26624 | install-info-time: \ |
26625 | configure-time \ | |
26626 | info-time | |
0aed8855 | 26627 | @: $(MAKE); $(unstage) |
b813574b | 26628 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26629 | r=`${PWD_COMMAND}`; export r; \ |
26630 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26631 | $(HOST_EXPORTS) \ |
b813574b | 26632 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26633 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26634 | done; \ | |
b813574b | 26635 | echo "Doing install-info in time" ; \ |
b00612cc | 26636 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26637 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26638 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26639 | "RANLIB=$${RANLIB}" \ | |
26640 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26641 | install-info) \ |
4fa63067 NN |
26642 | || exit 1 |
26643 | ||
b813574b | 26644 | @endif time |
4fa63067 | 26645 | |
108a6f8e CD |
26646 | .PHONY: maybe-install-html-time install-html-time |
26647 | maybe-install-html-time: | |
26648 | @if time | |
26649 | maybe-install-html-time: install-html-time | |
26650 | ||
26651 | install-html-time: \ | |
26652 | configure-time \ | |
26653 | html-time | |
26654 | @: $(MAKE); $(unstage) | |
26655 | @[ -f ./time/Makefile ] || exit 0; \ | |
26656 | r=`${PWD_COMMAND}`; export r; \ | |
26657 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
26658 | $(HOST_EXPORTS) \ | |
26659 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26660 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26661 | done; \ | |
26662 | echo "Doing install-html in time" ; \ | |
26663 | (cd $(HOST_SUBDIR)/time && \ | |
26664 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
26665 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26666 | "RANLIB=$${RANLIB}" \ | |
26667 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26668 | install-html) \ | |
26669 | || exit 1 | |
26670 | ||
26671 | @endif time | |
26672 | ||
b813574b PB |
26673 | .PHONY: maybe-installcheck-time installcheck-time |
26674 | maybe-installcheck-time: | |
26675 | @if time | |
26676 | maybe-installcheck-time: installcheck-time | |
4fa63067 | 26677 | |
b813574b PB |
26678 | installcheck-time: \ |
26679 | configure-time | |
0aed8855 | 26680 | @: $(MAKE); $(unstage) |
b813574b | 26681 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26682 | r=`${PWD_COMMAND}`; export r; \ |
26683 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26684 | $(HOST_EXPORTS) \ |
b813574b | 26685 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26686 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26687 | done; \ | |
b813574b | 26688 | echo "Doing installcheck in time" ; \ |
b00612cc | 26689 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26690 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26691 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26692 | "RANLIB=$${RANLIB}" \ | |
26693 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26694 | installcheck) \ |
4fa63067 NN |
26695 | || exit 1 |
26696 | ||
b813574b | 26697 | @endif time |
4fa63067 | 26698 | |
b813574b PB |
26699 | .PHONY: maybe-mostlyclean-time mostlyclean-time |
26700 | maybe-mostlyclean-time: | |
26701 | @if time | |
26702 | maybe-mostlyclean-time: mostlyclean-time | |
4fa63067 | 26703 | |
b813574b | 26704 | mostlyclean-time: |
0aed8855 | 26705 | @: $(MAKE); $(unstage) |
b813574b | 26706 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26707 | r=`${PWD_COMMAND}`; export r; \ |
26708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26709 | $(HOST_EXPORTS) \ |
b813574b | 26710 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26711 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26712 | done; \ | |
b813574b | 26713 | echo "Doing mostlyclean in time" ; \ |
b00612cc | 26714 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26717 | "RANLIB=$${RANLIB}" \ | |
26718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26719 | mostlyclean) \ |
4fa63067 NN |
26720 | || exit 1 |
26721 | ||
b813574b | 26722 | @endif time |
4fa63067 | 26723 | |
b813574b PB |
26724 | .PHONY: maybe-clean-time clean-time |
26725 | maybe-clean-time: | |
26726 | @if time | |
26727 | maybe-clean-time: clean-time | |
4fa63067 | 26728 | |
b813574b | 26729 | clean-time: |
0aed8855 | 26730 | @: $(MAKE); $(unstage) |
b813574b | 26731 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26732 | r=`${PWD_COMMAND}`; export r; \ |
26733 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26734 | $(HOST_EXPORTS) \ |
b813574b | 26735 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26736 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26737 | done; \ | |
b813574b | 26738 | echo "Doing clean in time" ; \ |
b00612cc | 26739 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26740 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26741 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26742 | "RANLIB=$${RANLIB}" \ | |
26743 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26744 | clean) \ |
4fa63067 NN |
26745 | || exit 1 |
26746 | ||
b813574b | 26747 | @endif time |
4fa63067 | 26748 | |
b813574b PB |
26749 | .PHONY: maybe-distclean-time distclean-time |
26750 | maybe-distclean-time: | |
26751 | @if time | |
26752 | maybe-distclean-time: distclean-time | |
4fa63067 | 26753 | |
b813574b | 26754 | distclean-time: |
0aed8855 | 26755 | @: $(MAKE); $(unstage) |
b813574b | 26756 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26757 | r=`${PWD_COMMAND}`; export r; \ |
26758 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26759 | $(HOST_EXPORTS) \ |
b813574b | 26760 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26761 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26762 | done; \ | |
b813574b | 26763 | echo "Doing distclean in time" ; \ |
b00612cc | 26764 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26765 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26766 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26767 | "RANLIB=$${RANLIB}" \ | |
26768 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26769 | distclean) \ |
4fa63067 NN |
26770 | || exit 1 |
26771 | ||
b813574b | 26772 | @endif time |
4fa63067 | 26773 | |
b813574b PB |
26774 | .PHONY: maybe-maintainer-clean-time maintainer-clean-time |
26775 | maybe-maintainer-clean-time: | |
26776 | @if time | |
26777 | maybe-maintainer-clean-time: maintainer-clean-time | |
4fa63067 | 26778 | |
b813574b | 26779 | maintainer-clean-time: |
0aed8855 | 26780 | @: $(MAKE); $(unstage) |
b813574b | 26781 | @[ -f ./time/Makefile ] || exit 0; \ |
4fa63067 NN |
26782 | r=`${PWD_COMMAND}`; export r; \ |
26783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26784 | $(HOST_EXPORTS) \ |
b813574b | 26785 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26786 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26787 | done; \ | |
b813574b | 26788 | echo "Doing maintainer-clean in time" ; \ |
b00612cc | 26789 | (cd $(HOST_SUBDIR)/time && \ |
4fa63067 NN |
26790 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26791 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26792 | "RANLIB=$${RANLIB}" \ | |
26793 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26794 | maintainer-clean) \ |
4fa63067 | 26795 | || exit 1 |
16ae0395 | 26796 | |
b813574b | 26797 | @endif time |
3866be5d NN |
26798 | |
26799 | ||
a7254363 | 26800 | |
b813574b PB |
26801 | .PHONY: configure-uudecode maybe-configure-uudecode |
26802 | maybe-configure-uudecode: | |
26803 | @if uudecode | |
26804 | maybe-configure-uudecode: configure-uudecode | |
c52c6897 | 26805 | configure-uudecode: |
0aed8855 | 26806 | @: $(MAKE); $(unstage) |
c52c6897 | 26807 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 26808 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
26809 | test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \ |
26810 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \ | |
378fce5b | 26811 | $(HOST_EXPORTS) \ |
a7254363 PB |
26812 | echo Configuring in $(HOST_SUBDIR)/uudecode; \ |
26813 | cd "$(HOST_SUBDIR)/uudecode" || exit 1; \ | |
e2b9e2dc | 26814 | case $(srcdir) in \ |
b00612cc PB |
26815 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
26816 | *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \ | |
26817 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 26818 | esac; \ |
b00612cc PB |
26819 | srcdiroption="--srcdir=$${topdir}/uudecode"; \ |
26820 | libsrcdir="$$s/uudecode"; \ | |
e2b9e2dc | 26821 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 26822 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 26823 | || exit 1 |
b813574b | 26824 | @endif uudecode |
e2b9e2dc | 26825 | |
a7254363 PB |
26826 | |
26827 | ||
d545f33b PB |
26828 | |
26829 | ||
b813574b PB |
26830 | .PHONY: all-uudecode maybe-all-uudecode |
26831 | maybe-all-uudecode: | |
26832 | @if uudecode | |
d27cc32e | 26833 | TARGET-uudecode=all |
b813574b PB |
26834 | maybe-all-uudecode: all-uudecode |
26835 | all-uudecode: configure-uudecode | |
0aed8855 | 26836 | @: $(MAKE); $(unstage) |
b40e3958 L |
26837 | @r=`${PWD_COMMAND}`; export r; \ |
26838 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26839 | $(HOST_EXPORTS) \ |
b00612cc PB |
26840 | (cd $(HOST_SUBDIR)/uudecode && \ |
26841 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-uudecode)) | |
b813574b | 26842 | @endif uudecode |
3866be5d | 26843 | |
a7254363 | 26844 | |
d545f33b PB |
26845 | |
26846 | ||
b813574b PB |
26847 | .PHONY: check-uudecode maybe-check-uudecode |
26848 | maybe-check-uudecode: | |
26849 | @if uudecode | |
26850 | maybe-check-uudecode: check-uudecode | |
3866be5d | 26851 | |
b813574b | 26852 | check-uudecode: |
0aed8855 | 26853 | @: $(MAKE); $(unstage) |
b40e3958 L |
26854 | @r=`${PWD_COMMAND}`; export r; \ |
26855 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26856 | $(HOST_EXPORTS) \ |
b00612cc PB |
26857 | (cd $(HOST_SUBDIR)/uudecode && \ |
26858 | $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d | 26859 | |
b813574b | 26860 | @endif uudecode |
3866be5d | 26861 | |
b813574b PB |
26862 | .PHONY: install-uudecode maybe-install-uudecode |
26863 | maybe-install-uudecode: | |
26864 | @if uudecode | |
26865 | maybe-install-uudecode: install-uudecode | |
4fa63067 | 26866 | |
b813574b | 26867 | install-uudecode: installdirs |
0aed8855 | 26868 | @: $(MAKE); $(unstage) |
4fa63067 NN |
26869 | @r=`${PWD_COMMAND}`; export r; \ |
26870 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26871 | $(HOST_EXPORTS) \ |
b00612cc | 26872 | (cd $(HOST_SUBDIR)/uudecode && \ |
2da12f12 | 26873 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 26874 | |
b813574b | 26875 | @endif uudecode |
4fa63067 NN |
26876 | |
26877 | # Other targets (info, dvi, etc.) | |
26878 | ||
b813574b PB |
26879 | .PHONY: maybe-info-uudecode info-uudecode |
26880 | maybe-info-uudecode: | |
26881 | @if uudecode | |
26882 | maybe-info-uudecode: info-uudecode | |
4fa63067 | 26883 | |
b813574b PB |
26884 | info-uudecode: \ |
26885 | configure-uudecode | |
0aed8855 | 26886 | @: $(MAKE); $(unstage) |
b813574b | 26887 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
26888 | r=`${PWD_COMMAND}`; export r; \ |
26889 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26890 | $(HOST_EXPORTS) \ |
b813574b | 26891 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26892 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26893 | done; \ | |
b813574b | 26894 | echo "Doing info in uudecode" ; \ |
b00612cc | 26895 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
26896 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26897 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26898 | "RANLIB=$${RANLIB}" \ | |
26899 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26900 | info) \ |
4fa63067 NN |
26901 | || exit 1 |
26902 | ||
b813574b | 26903 | @endif uudecode |
4fa63067 | 26904 | |
b813574b PB |
26905 | .PHONY: maybe-dvi-uudecode dvi-uudecode |
26906 | maybe-dvi-uudecode: | |
26907 | @if uudecode | |
26908 | maybe-dvi-uudecode: dvi-uudecode | |
4fa63067 | 26909 | |
b813574b PB |
26910 | dvi-uudecode: \ |
26911 | configure-uudecode | |
0aed8855 | 26912 | @: $(MAKE); $(unstage) |
b813574b | 26913 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
26914 | r=`${PWD_COMMAND}`; export r; \ |
26915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26916 | $(HOST_EXPORTS) \ |
b813574b | 26917 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26919 | done; \ | |
b813574b | 26920 | echo "Doing dvi in uudecode" ; \ |
b00612cc | 26921 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
26922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26924 | "RANLIB=$${RANLIB}" \ | |
26925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26926 | dvi) \ |
4fa63067 NN |
26927 | || exit 1 |
26928 | ||
b813574b | 26929 | @endif uudecode |
4fa63067 | 26930 | |
6d389afc MS |
26931 | .PHONY: maybe-html-uudecode html-uudecode |
26932 | maybe-html-uudecode: | |
26933 | @if uudecode | |
26934 | maybe-html-uudecode: html-uudecode | |
26935 | ||
26936 | html-uudecode: \ | |
26937 | configure-uudecode | |
0aed8855 | 26938 | @: $(MAKE); $(unstage) |
6d389afc MS |
26939 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
26940 | r=`${PWD_COMMAND}`; export r; \ | |
26941 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
26942 | $(HOST_EXPORTS) \ |
26943 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
26944 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
26945 | done; \ | |
26946 | echo "Doing html in uudecode" ; \ | |
b00612cc | 26947 | (cd $(HOST_SUBDIR)/uudecode && \ |
6d389afc MS |
26948 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26949 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26950 | "RANLIB=$${RANLIB}" \ | |
26951 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
26952 | html) \ | |
26953 | || exit 1 | |
26954 | ||
26955 | @endif uudecode | |
26956 | ||
b813574b PB |
26957 | .PHONY: maybe-TAGS-uudecode TAGS-uudecode |
26958 | maybe-TAGS-uudecode: | |
26959 | @if uudecode | |
26960 | maybe-TAGS-uudecode: TAGS-uudecode | |
4fa63067 | 26961 | |
b813574b PB |
26962 | TAGS-uudecode: \ |
26963 | configure-uudecode | |
0aed8855 | 26964 | @: $(MAKE); $(unstage) |
b813574b PB |
26965 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
26966 | r=`${PWD_COMMAND}`; export r; \ | |
4fa63067 | 26967 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 26968 | $(HOST_EXPORTS) \ |
b813574b | 26969 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26970 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26971 | done; \ | |
b813574b | 26972 | echo "Doing TAGS in uudecode" ; \ |
b00612cc | 26973 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
26974 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
26975 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
26976 | "RANLIB=$${RANLIB}" \ | |
26977 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 26978 | TAGS) \ |
4fa63067 NN |
26979 | || exit 1 |
26980 | ||
b813574b | 26981 | @endif uudecode |
4fa63067 | 26982 | |
b813574b PB |
26983 | .PHONY: maybe-install-info-uudecode install-info-uudecode |
26984 | maybe-install-info-uudecode: | |
26985 | @if uudecode | |
26986 | maybe-install-info-uudecode: install-info-uudecode | |
4fa63067 | 26987 | |
b813574b PB |
26988 | install-info-uudecode: \ |
26989 | configure-uudecode \ | |
26990 | info-uudecode | |
0aed8855 | 26991 | @: $(MAKE); $(unstage) |
b813574b | 26992 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
26993 | r=`${PWD_COMMAND}`; export r; \ |
26994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 26995 | $(HOST_EXPORTS) \ |
b813574b | 26996 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
26997 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
26998 | done; \ | |
b813574b | 26999 | echo "Doing install-info in uudecode" ; \ |
b00612cc | 27000 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
27001 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27002 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27003 | "RANLIB=$${RANLIB}" \ | |
27004 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27005 | install-info) \ |
4fa63067 NN |
27006 | || exit 1 |
27007 | ||
b813574b | 27008 | @endif uudecode |
4fa63067 | 27009 | |
108a6f8e CD |
27010 | .PHONY: maybe-install-html-uudecode install-html-uudecode |
27011 | maybe-install-html-uudecode: | |
27012 | @if uudecode | |
27013 | maybe-install-html-uudecode: install-html-uudecode | |
27014 | ||
27015 | install-html-uudecode: \ | |
27016 | configure-uudecode \ | |
27017 | html-uudecode | |
27018 | @: $(MAKE); $(unstage) | |
27019 | @[ -f ./uudecode/Makefile ] || exit 0; \ | |
27020 | r=`${PWD_COMMAND}`; export r; \ | |
27021 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27022 | $(HOST_EXPORTS) \ | |
27023 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27024 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27025 | done; \ | |
27026 | echo "Doing install-html in uudecode" ; \ | |
27027 | (cd $(HOST_SUBDIR)/uudecode && \ | |
27028 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27029 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27030 | "RANLIB=$${RANLIB}" \ | |
27031 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27032 | install-html) \ | |
27033 | || exit 1 | |
27034 | ||
27035 | @endif uudecode | |
27036 | ||
b813574b PB |
27037 | .PHONY: maybe-installcheck-uudecode installcheck-uudecode |
27038 | maybe-installcheck-uudecode: | |
27039 | @if uudecode | |
27040 | maybe-installcheck-uudecode: installcheck-uudecode | |
4fa63067 | 27041 | |
b813574b PB |
27042 | installcheck-uudecode: \ |
27043 | configure-uudecode | |
0aed8855 | 27044 | @: $(MAKE); $(unstage) |
b813574b | 27045 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
27046 | r=`${PWD_COMMAND}`; export r; \ |
27047 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27048 | $(HOST_EXPORTS) \ |
b813574b | 27049 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27050 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27051 | done; \ | |
b813574b | 27052 | echo "Doing installcheck in uudecode" ; \ |
b00612cc | 27053 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
27054 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27055 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27056 | "RANLIB=$${RANLIB}" \ | |
27057 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27058 | installcheck) \ |
4fa63067 NN |
27059 | || exit 1 |
27060 | ||
b813574b | 27061 | @endif uudecode |
4fa63067 | 27062 | |
b813574b PB |
27063 | .PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode |
27064 | maybe-mostlyclean-uudecode: | |
27065 | @if uudecode | |
27066 | maybe-mostlyclean-uudecode: mostlyclean-uudecode | |
4fa63067 | 27067 | |
b813574b | 27068 | mostlyclean-uudecode: |
0aed8855 | 27069 | @: $(MAKE); $(unstage) |
b813574b | 27070 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
27071 | r=`${PWD_COMMAND}`; export r; \ |
27072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27073 | $(HOST_EXPORTS) \ |
b813574b | 27074 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27075 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27076 | done; \ | |
b813574b | 27077 | echo "Doing mostlyclean in uudecode" ; \ |
b00612cc | 27078 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
27079 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27080 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27081 | "RANLIB=$${RANLIB}" \ | |
27082 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27083 | mostlyclean) \ |
4fa63067 NN |
27084 | || exit 1 |
27085 | ||
b813574b | 27086 | @endif uudecode |
4fa63067 | 27087 | |
b813574b PB |
27088 | .PHONY: maybe-clean-uudecode clean-uudecode |
27089 | maybe-clean-uudecode: | |
27090 | @if uudecode | |
27091 | maybe-clean-uudecode: clean-uudecode | |
4fa63067 | 27092 | |
b813574b | 27093 | clean-uudecode: |
0aed8855 | 27094 | @: $(MAKE); $(unstage) |
b813574b | 27095 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
27096 | r=`${PWD_COMMAND}`; export r; \ |
27097 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27098 | $(HOST_EXPORTS) \ |
b813574b | 27099 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27100 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27101 | done; \ | |
b813574b | 27102 | echo "Doing clean in uudecode" ; \ |
b00612cc | 27103 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
27104 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27105 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27106 | "RANLIB=$${RANLIB}" \ | |
27107 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27108 | clean) \ |
4fa63067 NN |
27109 | || exit 1 |
27110 | ||
b813574b | 27111 | @endif uudecode |
4fa63067 | 27112 | |
b813574b PB |
27113 | .PHONY: maybe-distclean-uudecode distclean-uudecode |
27114 | maybe-distclean-uudecode: | |
27115 | @if uudecode | |
27116 | maybe-distclean-uudecode: distclean-uudecode | |
4fa63067 | 27117 | |
b813574b | 27118 | distclean-uudecode: |
0aed8855 | 27119 | @: $(MAKE); $(unstage) |
b813574b | 27120 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
27121 | r=`${PWD_COMMAND}`; export r; \ |
27122 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27123 | $(HOST_EXPORTS) \ |
b813574b | 27124 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27125 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27126 | done; \ | |
b813574b | 27127 | echo "Doing distclean in uudecode" ; \ |
b00612cc | 27128 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
27129 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27130 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27131 | "RANLIB=$${RANLIB}" \ | |
27132 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27133 | distclean) \ |
4fa63067 NN |
27134 | || exit 1 |
27135 | ||
b813574b | 27136 | @endif uudecode |
4fa63067 | 27137 | |
b813574b PB |
27138 | .PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode |
27139 | maybe-maintainer-clean-uudecode: | |
27140 | @if uudecode | |
27141 | maybe-maintainer-clean-uudecode: maintainer-clean-uudecode | |
4fa63067 | 27142 | |
b813574b | 27143 | maintainer-clean-uudecode: |
0aed8855 | 27144 | @: $(MAKE); $(unstage) |
b813574b | 27145 | @[ -f ./uudecode/Makefile ] || exit 0; \ |
4fa63067 NN |
27146 | r=`${PWD_COMMAND}`; export r; \ |
27147 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27148 | $(HOST_EXPORTS) \ |
b813574b | 27149 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27150 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27151 | done; \ | |
b813574b | 27152 | echo "Doing maintainer-clean in uudecode" ; \ |
b00612cc | 27153 | (cd $(HOST_SUBDIR)/uudecode && \ |
4fa63067 NN |
27154 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27155 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27156 | "RANLIB=$${RANLIB}" \ | |
27157 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27158 | maintainer-clean) \ |
4fa63067 | 27159 | || exit 1 |
16ae0395 | 27160 | |
b813574b | 27161 | @endif uudecode |
3866be5d NN |
27162 | |
27163 | ||
a7254363 | 27164 | |
b813574b PB |
27165 | .PHONY: configure-wdiff maybe-configure-wdiff |
27166 | maybe-configure-wdiff: | |
27167 | @if wdiff | |
27168 | maybe-configure-wdiff: configure-wdiff | |
c52c6897 | 27169 | configure-wdiff: |
0aed8855 | 27170 | @: $(MAKE); $(unstage) |
c52c6897 | 27171 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27172 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
27173 | test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \ |
27174 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \ | |
378fce5b | 27175 | $(HOST_EXPORTS) \ |
a7254363 PB |
27176 | echo Configuring in $(HOST_SUBDIR)/wdiff; \ |
27177 | cd "$(HOST_SUBDIR)/wdiff" || exit 1; \ | |
e2b9e2dc | 27178 | case $(srcdir) in \ |
b00612cc PB |
27179 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
27180 | *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \ | |
27181 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 27182 | esac; \ |
b00612cc PB |
27183 | srcdiroption="--srcdir=$${topdir}/wdiff"; \ |
27184 | libsrcdir="$$s/wdiff"; \ | |
e2b9e2dc | 27185 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 27186 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 27187 | || exit 1 |
b813574b | 27188 | @endif wdiff |
e2b9e2dc | 27189 | |
a7254363 PB |
27190 | |
27191 | ||
d545f33b PB |
27192 | |
27193 | ||
b813574b PB |
27194 | .PHONY: all-wdiff maybe-all-wdiff |
27195 | maybe-all-wdiff: | |
27196 | @if wdiff | |
d27cc32e | 27197 | TARGET-wdiff=all |
b813574b PB |
27198 | maybe-all-wdiff: all-wdiff |
27199 | all-wdiff: configure-wdiff | |
0aed8855 | 27200 | @: $(MAKE); $(unstage) |
b40e3958 L |
27201 | @r=`${PWD_COMMAND}`; export r; \ |
27202 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27203 | $(HOST_EXPORTS) \ |
b00612cc PB |
27204 | (cd $(HOST_SUBDIR)/wdiff && \ |
27205 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-wdiff)) | |
b813574b | 27206 | @endif wdiff |
3866be5d | 27207 | |
a7254363 | 27208 | |
d545f33b PB |
27209 | |
27210 | ||
b813574b PB |
27211 | .PHONY: check-wdiff maybe-check-wdiff |
27212 | maybe-check-wdiff: | |
27213 | @if wdiff | |
27214 | maybe-check-wdiff: check-wdiff | |
3866be5d | 27215 | |
b813574b | 27216 | check-wdiff: |
0aed8855 | 27217 | @: $(MAKE); $(unstage) |
b813574b PB |
27218 | @r=`${PWD_COMMAND}`; export r; \ |
27219 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 27220 | $(HOST_EXPORTS) \ |
b00612cc PB |
27221 | (cd $(HOST_SUBDIR)/wdiff && \ |
27222 | $(MAKE) $(FLAGS_TO_PASS) check) | |
4fa63067 | 27223 | |
b813574b | 27224 | @endif wdiff |
4fa63067 | 27225 | |
b813574b PB |
27226 | .PHONY: install-wdiff maybe-install-wdiff |
27227 | maybe-install-wdiff: | |
27228 | @if wdiff | |
27229 | maybe-install-wdiff: install-wdiff | |
4fa63067 | 27230 | |
b813574b | 27231 | install-wdiff: installdirs |
0aed8855 | 27232 | @: $(MAKE); $(unstage) |
b40e3958 L |
27233 | @r=`${PWD_COMMAND}`; export r; \ |
27234 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27235 | $(HOST_EXPORTS) \ |
b00612cc | 27236 | (cd $(HOST_SUBDIR)/wdiff && \ |
2da12f12 | 27237 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 27238 | |
b813574b | 27239 | @endif wdiff |
3866be5d | 27240 | |
4fa63067 | 27241 | # Other targets (info, dvi, etc.) |
16ae0395 | 27242 | |
b813574b PB |
27243 | .PHONY: maybe-info-wdiff info-wdiff |
27244 | maybe-info-wdiff: | |
27245 | @if wdiff | |
27246 | maybe-info-wdiff: info-wdiff | |
4fa63067 | 27247 | |
b813574b PB |
27248 | info-wdiff: \ |
27249 | configure-wdiff | |
0aed8855 | 27250 | @: $(MAKE); $(unstage) |
b813574b | 27251 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 | 27252 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27253 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27254 | $(HOST_EXPORTS) \ |
b813574b | 27255 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27256 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27257 | done; \ | |
b813574b | 27258 | echo "Doing info in wdiff" ; \ |
b00612cc | 27259 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27260 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27261 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27262 | "RANLIB=$${RANLIB}" \ | |
27263 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27264 | info) \ |
4fa63067 | 27265 | || exit 1 |
3866be5d | 27266 | |
b813574b | 27267 | @endif wdiff |
3866be5d | 27268 | |
b813574b PB |
27269 | .PHONY: maybe-dvi-wdiff dvi-wdiff |
27270 | maybe-dvi-wdiff: | |
27271 | @if wdiff | |
27272 | maybe-dvi-wdiff: dvi-wdiff | |
4fa63067 | 27273 | |
b813574b PB |
27274 | dvi-wdiff: \ |
27275 | configure-wdiff | |
0aed8855 | 27276 | @: $(MAKE); $(unstage) |
b813574b | 27277 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27278 | r=`${PWD_COMMAND}`; export r; \ |
27279 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27280 | $(HOST_EXPORTS) \ |
b813574b | 27281 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27282 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27283 | done; \ | |
b813574b | 27284 | echo "Doing dvi in wdiff" ; \ |
b00612cc | 27285 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27286 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27287 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27288 | "RANLIB=$${RANLIB}" \ | |
27289 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27290 | dvi) \ |
4fa63067 NN |
27291 | || exit 1 |
27292 | ||
b813574b | 27293 | @endif wdiff |
4fa63067 | 27294 | |
6d389afc MS |
27295 | .PHONY: maybe-html-wdiff html-wdiff |
27296 | maybe-html-wdiff: | |
27297 | @if wdiff | |
27298 | maybe-html-wdiff: html-wdiff | |
27299 | ||
27300 | html-wdiff: \ | |
27301 | configure-wdiff | |
0aed8855 | 27302 | @: $(MAKE); $(unstage) |
6d389afc MS |
27303 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
27304 | r=`${PWD_COMMAND}`; export r; \ | |
27305 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
27306 | $(HOST_EXPORTS) \ |
27307 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27308 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27309 | done; \ | |
27310 | echo "Doing html in wdiff" ; \ | |
b00612cc | 27311 | (cd $(HOST_SUBDIR)/wdiff && \ |
6d389afc MS |
27312 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27313 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27314 | "RANLIB=$${RANLIB}" \ | |
27315 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27316 | html) \ | |
27317 | || exit 1 | |
27318 | ||
27319 | @endif wdiff | |
27320 | ||
b813574b PB |
27321 | .PHONY: maybe-TAGS-wdiff TAGS-wdiff |
27322 | maybe-TAGS-wdiff: | |
27323 | @if wdiff | |
27324 | maybe-TAGS-wdiff: TAGS-wdiff | |
4fa63067 | 27325 | |
b813574b PB |
27326 | TAGS-wdiff: \ |
27327 | configure-wdiff | |
0aed8855 | 27328 | @: $(MAKE); $(unstage) |
b813574b | 27329 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27330 | r=`${PWD_COMMAND}`; export r; \ |
27331 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27332 | $(HOST_EXPORTS) \ |
b813574b | 27333 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27334 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27335 | done; \ | |
b813574b | 27336 | echo "Doing TAGS in wdiff" ; \ |
b00612cc | 27337 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27338 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27339 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27340 | "RANLIB=$${RANLIB}" \ | |
27341 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27342 | TAGS) \ |
4fa63067 NN |
27343 | || exit 1 |
27344 | ||
b813574b | 27345 | @endif wdiff |
4fa63067 | 27346 | |
b813574b PB |
27347 | .PHONY: maybe-install-info-wdiff install-info-wdiff |
27348 | maybe-install-info-wdiff: | |
27349 | @if wdiff | |
27350 | maybe-install-info-wdiff: install-info-wdiff | |
4fa63067 | 27351 | |
b813574b PB |
27352 | install-info-wdiff: \ |
27353 | configure-wdiff \ | |
27354 | info-wdiff | |
0aed8855 | 27355 | @: $(MAKE); $(unstage) |
b813574b | 27356 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27357 | r=`${PWD_COMMAND}`; export r; \ |
27358 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27359 | $(HOST_EXPORTS) \ |
b813574b | 27360 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27361 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27362 | done; \ | |
b813574b | 27363 | echo "Doing install-info in wdiff" ; \ |
b00612cc | 27364 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27365 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27366 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27367 | "RANLIB=$${RANLIB}" \ | |
27368 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27369 | install-info) \ |
4fa63067 NN |
27370 | || exit 1 |
27371 | ||
b813574b | 27372 | @endif wdiff |
4fa63067 | 27373 | |
108a6f8e CD |
27374 | .PHONY: maybe-install-html-wdiff install-html-wdiff |
27375 | maybe-install-html-wdiff: | |
27376 | @if wdiff | |
27377 | maybe-install-html-wdiff: install-html-wdiff | |
27378 | ||
27379 | install-html-wdiff: \ | |
27380 | configure-wdiff \ | |
27381 | html-wdiff | |
27382 | @: $(MAKE); $(unstage) | |
27383 | @[ -f ./wdiff/Makefile ] || exit 0; \ | |
27384 | r=`${PWD_COMMAND}`; export r; \ | |
27385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27386 | $(HOST_EXPORTS) \ | |
27387 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27388 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27389 | done; \ | |
27390 | echo "Doing install-html in wdiff" ; \ | |
27391 | (cd $(HOST_SUBDIR)/wdiff && \ | |
27392 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27393 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27394 | "RANLIB=$${RANLIB}" \ | |
27395 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27396 | install-html) \ | |
27397 | || exit 1 | |
27398 | ||
27399 | @endif wdiff | |
27400 | ||
b813574b PB |
27401 | .PHONY: maybe-installcheck-wdiff installcheck-wdiff |
27402 | maybe-installcheck-wdiff: | |
27403 | @if wdiff | |
27404 | maybe-installcheck-wdiff: installcheck-wdiff | |
4fa63067 | 27405 | |
b813574b PB |
27406 | installcheck-wdiff: \ |
27407 | configure-wdiff | |
0aed8855 | 27408 | @: $(MAKE); $(unstage) |
b813574b | 27409 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27410 | r=`${PWD_COMMAND}`; export r; \ |
27411 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27412 | $(HOST_EXPORTS) \ |
b813574b | 27413 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27414 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27415 | done; \ | |
b813574b | 27416 | echo "Doing installcheck in wdiff" ; \ |
b00612cc | 27417 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27418 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27419 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27420 | "RANLIB=$${RANLIB}" \ | |
27421 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27422 | installcheck) \ |
4fa63067 NN |
27423 | || exit 1 |
27424 | ||
b813574b | 27425 | @endif wdiff |
4fa63067 | 27426 | |
b813574b PB |
27427 | .PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff |
27428 | maybe-mostlyclean-wdiff: | |
27429 | @if wdiff | |
27430 | maybe-mostlyclean-wdiff: mostlyclean-wdiff | |
4fa63067 | 27431 | |
b813574b | 27432 | mostlyclean-wdiff: |
0aed8855 | 27433 | @: $(MAKE); $(unstage) |
b813574b | 27434 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27435 | r=`${PWD_COMMAND}`; export r; \ |
27436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27437 | $(HOST_EXPORTS) \ |
b813574b | 27438 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27439 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27440 | done; \ | |
b813574b | 27441 | echo "Doing mostlyclean in wdiff" ; \ |
b00612cc | 27442 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27445 | "RANLIB=$${RANLIB}" \ | |
27446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27447 | mostlyclean) \ |
4fa63067 NN |
27448 | || exit 1 |
27449 | ||
b813574b | 27450 | @endif wdiff |
4fa63067 | 27451 | |
b813574b PB |
27452 | .PHONY: maybe-clean-wdiff clean-wdiff |
27453 | maybe-clean-wdiff: | |
27454 | @if wdiff | |
27455 | maybe-clean-wdiff: clean-wdiff | |
4fa63067 | 27456 | |
b813574b | 27457 | clean-wdiff: |
0aed8855 | 27458 | @: $(MAKE); $(unstage) |
b813574b | 27459 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27460 | r=`${PWD_COMMAND}`; export r; \ |
27461 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27462 | $(HOST_EXPORTS) \ |
b813574b | 27463 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27464 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27465 | done; \ | |
b813574b | 27466 | echo "Doing clean in wdiff" ; \ |
b00612cc | 27467 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27468 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27469 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27470 | "RANLIB=$${RANLIB}" \ | |
27471 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27472 | clean) \ |
4fa63067 NN |
27473 | || exit 1 |
27474 | ||
b813574b | 27475 | @endif wdiff |
4fa63067 | 27476 | |
b813574b PB |
27477 | .PHONY: maybe-distclean-wdiff distclean-wdiff |
27478 | maybe-distclean-wdiff: | |
27479 | @if wdiff | |
27480 | maybe-distclean-wdiff: distclean-wdiff | |
4fa63067 | 27481 | |
b813574b | 27482 | distclean-wdiff: |
0aed8855 | 27483 | @: $(MAKE); $(unstage) |
b813574b | 27484 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27485 | r=`${PWD_COMMAND}`; export r; \ |
27486 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27487 | $(HOST_EXPORTS) \ |
b813574b | 27488 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27489 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27490 | done; \ | |
b813574b | 27491 | echo "Doing distclean in wdiff" ; \ |
b00612cc | 27492 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27493 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27494 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27495 | "RANLIB=$${RANLIB}" \ | |
27496 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27497 | distclean) \ |
4fa63067 NN |
27498 | || exit 1 |
27499 | ||
b813574b | 27500 | @endif wdiff |
4fa63067 | 27501 | |
b813574b PB |
27502 | .PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff |
27503 | maybe-maintainer-clean-wdiff: | |
27504 | @if wdiff | |
27505 | maybe-maintainer-clean-wdiff: maintainer-clean-wdiff | |
4fa63067 | 27506 | |
b813574b | 27507 | maintainer-clean-wdiff: |
0aed8855 | 27508 | @: $(MAKE); $(unstage) |
b813574b | 27509 | @[ -f ./wdiff/Makefile ] || exit 0; \ |
4fa63067 NN |
27510 | r=`${PWD_COMMAND}`; export r; \ |
27511 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27512 | $(HOST_EXPORTS) \ |
b813574b | 27513 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27514 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27515 | done; \ | |
b813574b | 27516 | echo "Doing maintainer-clean in wdiff" ; \ |
b00612cc | 27517 | (cd $(HOST_SUBDIR)/wdiff && \ |
4fa63067 NN |
27518 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27519 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27520 | "RANLIB=$${RANLIB}" \ | |
27521 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27522 | maintainer-clean) \ |
4fa63067 NN |
27523 | || exit 1 |
27524 | ||
b813574b | 27525 | @endif wdiff |
4fa63067 NN |
27526 | |
27527 | ||
a7254363 | 27528 | |
b813574b PB |
27529 | .PHONY: configure-zip maybe-configure-zip |
27530 | maybe-configure-zip: | |
27531 | @if zip | |
27532 | maybe-configure-zip: configure-zip | |
c52c6897 | 27533 | configure-zip: |
0aed8855 | 27534 | @: $(MAKE); $(unstage) |
c52c6897 | 27535 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27536 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
27537 | test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \ |
27538 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \ | |
378fce5b | 27539 | $(HOST_EXPORTS) \ |
a7254363 PB |
27540 | echo Configuring in $(HOST_SUBDIR)/zip; \ |
27541 | cd "$(HOST_SUBDIR)/zip" || exit 1; \ | |
e2b9e2dc | 27542 | case $(srcdir) in \ |
b00612cc PB |
27543 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
27544 | *) topdir=`echo $(HOST_SUBDIR)/zip/ | \ | |
27545 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 27546 | esac; \ |
b00612cc PB |
27547 | srcdiroption="--srcdir=$${topdir}/zip"; \ |
27548 | libsrcdir="$$s/zip"; \ | |
e2b9e2dc | 27549 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 27550 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 27551 | || exit 1 |
b813574b | 27552 | @endif zip |
e2b9e2dc | 27553 | |
a7254363 PB |
27554 | |
27555 | ||
d545f33b PB |
27556 | |
27557 | ||
b813574b PB |
27558 | .PHONY: all-zip maybe-all-zip |
27559 | maybe-all-zip: | |
27560 | @if zip | |
d27cc32e | 27561 | TARGET-zip=all |
b813574b PB |
27562 | maybe-all-zip: all-zip |
27563 | all-zip: configure-zip | |
0aed8855 | 27564 | @: $(MAKE); $(unstage) |
b40e3958 L |
27565 | @r=`${PWD_COMMAND}`; export r; \ |
27566 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27567 | $(HOST_EXPORTS) \ |
b00612cc PB |
27568 | (cd $(HOST_SUBDIR)/zip && \ |
27569 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zip)) | |
b813574b | 27570 | @endif zip |
3866be5d | 27571 | |
a7254363 | 27572 | |
d545f33b PB |
27573 | |
27574 | ||
b813574b PB |
27575 | .PHONY: check-zip maybe-check-zip |
27576 | maybe-check-zip: | |
27577 | @if zip | |
27578 | maybe-check-zip: check-zip | |
3866be5d | 27579 | |
b813574b PB |
27580 | # This module is only tested in a native toolchain. |
27581 | check-zip: | |
0aed8855 | 27582 | @: $(MAKE); $(unstage) |
b813574b PB |
27583 | @if [ '$(host)' = '$(target)' ] ; then \ |
27584 | r=`${PWD_COMMAND}`; export r; \ | |
27585 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 27586 | $(HOST_EXPORTS) \ |
b00612cc | 27587 | (cd $(HOST_SUBDIR)/zip && \ |
4cfaf6d5 | 27588 | $(MAKE) $(FLAGS_TO_PASS) check); \ |
b813574b | 27589 | fi |
4fa63067 | 27590 | |
b813574b | 27591 | @endif zip |
4fa63067 | 27592 | |
b813574b PB |
27593 | .PHONY: install-zip maybe-install-zip |
27594 | maybe-install-zip: | |
27595 | @if zip | |
27596 | maybe-install-zip: install-zip | |
4fa63067 | 27597 | |
b813574b | 27598 | install-zip: installdirs |
0aed8855 | 27599 | @: $(MAKE); $(unstage) |
b813574b PB |
27600 | @r=`${PWD_COMMAND}`; export r; \ |
27601 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 27602 | $(HOST_EXPORTS) \ |
b00612cc | 27603 | (cd $(HOST_SUBDIR)/zip && \ |
2da12f12 | 27604 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 27605 | |
b813574b | 27606 | @endif zip |
4fa63067 NN |
27607 | |
27608 | # Other targets (info, dvi, etc.) | |
27609 | ||
b813574b PB |
27610 | .PHONY: maybe-info-zip info-zip |
27611 | maybe-info-zip: | |
27612 | @if zip | |
27613 | maybe-info-zip: info-zip | |
4fa63067 | 27614 | |
b813574b PB |
27615 | info-zip: \ |
27616 | configure-zip | |
0aed8855 | 27617 | @: $(MAKE); $(unstage) |
b813574b | 27618 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 | 27619 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27620 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27621 | $(HOST_EXPORTS) \ |
b813574b | 27622 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27623 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27624 | done; \ | |
b813574b | 27625 | echo "Doing info in zip" ; \ |
b00612cc | 27626 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27627 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27628 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27629 | "RANLIB=$${RANLIB}" \ | |
27630 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27631 | info) \ |
4fa63067 | 27632 | || exit 1 |
3866be5d | 27633 | |
b813574b | 27634 | @endif zip |
3866be5d | 27635 | |
b813574b PB |
27636 | .PHONY: maybe-dvi-zip dvi-zip |
27637 | maybe-dvi-zip: | |
27638 | @if zip | |
27639 | maybe-dvi-zip: dvi-zip | |
16ae0395 | 27640 | |
b813574b PB |
27641 | dvi-zip: \ |
27642 | configure-zip | |
0aed8855 | 27643 | @: $(MAKE); $(unstage) |
b813574b | 27644 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 | 27645 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27646 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27647 | $(HOST_EXPORTS) \ |
b813574b | 27648 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27649 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27650 | done; \ | |
b813574b | 27651 | echo "Doing dvi in zip" ; \ |
b00612cc | 27652 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27653 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27654 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27655 | "RANLIB=$${RANLIB}" \ | |
27656 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27657 | dvi) \ |
4fa63067 | 27658 | || exit 1 |
3866be5d | 27659 | |
b813574b | 27660 | @endif zip |
3866be5d | 27661 | |
6d389afc MS |
27662 | .PHONY: maybe-html-zip html-zip |
27663 | maybe-html-zip: | |
27664 | @if zip | |
27665 | maybe-html-zip: html-zip | |
27666 | ||
27667 | html-zip: \ | |
27668 | configure-zip | |
0aed8855 | 27669 | @: $(MAKE); $(unstage) |
6d389afc MS |
27670 | @[ -f ./zip/Makefile ] || exit 0; \ |
27671 | r=`${PWD_COMMAND}`; export r; \ | |
27672 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
27673 | $(HOST_EXPORTS) \ |
27674 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27675 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27676 | done; \ | |
27677 | echo "Doing html in zip" ; \ | |
b00612cc | 27678 | (cd $(HOST_SUBDIR)/zip && \ |
6d389afc MS |
27679 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27680 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27681 | "RANLIB=$${RANLIB}" \ | |
27682 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27683 | html) \ | |
27684 | || exit 1 | |
27685 | ||
27686 | @endif zip | |
27687 | ||
b813574b PB |
27688 | .PHONY: maybe-TAGS-zip TAGS-zip |
27689 | maybe-TAGS-zip: | |
27690 | @if zip | |
27691 | maybe-TAGS-zip: TAGS-zip | |
4fa63067 | 27692 | |
b813574b PB |
27693 | TAGS-zip: \ |
27694 | configure-zip | |
0aed8855 | 27695 | @: $(MAKE); $(unstage) |
b813574b | 27696 | @[ -f ./zip/Makefile ] || exit 0; \ |
b40e3958 L |
27697 | r=`${PWD_COMMAND}`; export r; \ |
27698 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27699 | $(HOST_EXPORTS) \ |
b813574b | 27700 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27701 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27702 | done; \ | |
b813574b | 27703 | echo "Doing TAGS in zip" ; \ |
b00612cc | 27704 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27705 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27706 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27707 | "RANLIB=$${RANLIB}" \ | |
27708 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27709 | TAGS) \ |
e2b9e2dc NN |
27710 | || exit 1 |
27711 | ||
b813574b | 27712 | @endif zip |
4fa63067 | 27713 | |
b813574b PB |
27714 | .PHONY: maybe-install-info-zip install-info-zip |
27715 | maybe-install-info-zip: | |
27716 | @if zip | |
27717 | maybe-install-info-zip: install-info-zip | |
4fa63067 | 27718 | |
b813574b PB |
27719 | install-info-zip: \ |
27720 | configure-zip \ | |
27721 | info-zip | |
0aed8855 | 27722 | @: $(MAKE); $(unstage) |
b813574b | 27723 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 | 27724 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27725 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27726 | $(HOST_EXPORTS) \ |
b813574b | 27727 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27728 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27729 | done; \ | |
b813574b | 27730 | echo "Doing install-info in zip" ; \ |
b00612cc | 27731 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27732 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27733 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27734 | "RANLIB=$${RANLIB}" \ | |
27735 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27736 | install-info) \ |
4fa63067 | 27737 | || exit 1 |
3866be5d | 27738 | |
b813574b | 27739 | @endif zip |
3866be5d | 27740 | |
108a6f8e CD |
27741 | .PHONY: maybe-install-html-zip install-html-zip |
27742 | maybe-install-html-zip: | |
27743 | @if zip | |
27744 | maybe-install-html-zip: install-html-zip | |
27745 | ||
27746 | install-html-zip: \ | |
27747 | configure-zip \ | |
27748 | html-zip | |
27749 | @: $(MAKE); $(unstage) | |
27750 | @[ -f ./zip/Makefile ] || exit 0; \ | |
27751 | r=`${PWD_COMMAND}`; export r; \ | |
27752 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
27753 | $(HOST_EXPORTS) \ | |
27754 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
27755 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
27756 | done; \ | |
27757 | echo "Doing install-html in zip" ; \ | |
27758 | (cd $(HOST_SUBDIR)/zip && \ | |
27759 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
27760 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27761 | "RANLIB=$${RANLIB}" \ | |
27762 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
27763 | install-html) \ | |
27764 | || exit 1 | |
27765 | ||
27766 | @endif zip | |
27767 | ||
b813574b PB |
27768 | .PHONY: maybe-installcheck-zip installcheck-zip |
27769 | maybe-installcheck-zip: | |
27770 | @if zip | |
27771 | maybe-installcheck-zip: installcheck-zip | |
4fa63067 | 27772 | |
b813574b PB |
27773 | installcheck-zip: \ |
27774 | configure-zip | |
0aed8855 | 27775 | @: $(MAKE); $(unstage) |
b813574b | 27776 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 | 27777 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27778 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27779 | $(HOST_EXPORTS) \ |
b813574b | 27780 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27781 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27782 | done; \ | |
b813574b | 27783 | echo "Doing installcheck in zip" ; \ |
b00612cc | 27784 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27785 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27786 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27787 | "RANLIB=$${RANLIB}" \ | |
27788 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27789 | installcheck) \ |
4fa63067 | 27790 | || exit 1 |
3866be5d | 27791 | |
b813574b | 27792 | @endif zip |
3866be5d | 27793 | |
b813574b PB |
27794 | .PHONY: maybe-mostlyclean-zip mostlyclean-zip |
27795 | maybe-mostlyclean-zip: | |
27796 | @if zip | |
27797 | maybe-mostlyclean-zip: mostlyclean-zip | |
16ae0395 | 27798 | |
b813574b | 27799 | mostlyclean-zip: |
0aed8855 | 27800 | @: $(MAKE); $(unstage) |
b813574b | 27801 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 NN |
27802 | r=`${PWD_COMMAND}`; export r; \ |
27803 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27804 | $(HOST_EXPORTS) \ |
b813574b | 27805 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27806 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27807 | done; \ | |
b813574b | 27808 | echo "Doing mostlyclean in zip" ; \ |
b00612cc | 27809 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27810 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27811 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27812 | "RANLIB=$${RANLIB}" \ | |
27813 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27814 | mostlyclean) \ |
4fa63067 NN |
27815 | || exit 1 |
27816 | ||
b813574b | 27817 | @endif zip |
4fa63067 | 27818 | |
b813574b PB |
27819 | .PHONY: maybe-clean-zip clean-zip |
27820 | maybe-clean-zip: | |
27821 | @if zip | |
27822 | maybe-clean-zip: clean-zip | |
4fa63067 | 27823 | |
b813574b | 27824 | clean-zip: |
0aed8855 | 27825 | @: $(MAKE); $(unstage) |
b813574b | 27826 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 NN |
27827 | r=`${PWD_COMMAND}`; export r; \ |
27828 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27829 | $(HOST_EXPORTS) \ |
b813574b | 27830 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27831 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27832 | done; \ | |
b813574b | 27833 | echo "Doing clean in zip" ; \ |
b00612cc | 27834 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27835 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27836 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27837 | "RANLIB=$${RANLIB}" \ | |
27838 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27839 | clean) \ |
4fa63067 NN |
27840 | || exit 1 |
27841 | ||
b813574b | 27842 | @endif zip |
4fa63067 | 27843 | |
b813574b PB |
27844 | .PHONY: maybe-distclean-zip distclean-zip |
27845 | maybe-distclean-zip: | |
27846 | @if zip | |
27847 | maybe-distclean-zip: distclean-zip | |
4fa63067 | 27848 | |
b813574b | 27849 | distclean-zip: |
0aed8855 | 27850 | @: $(MAKE); $(unstage) |
b813574b | 27851 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 NN |
27852 | r=`${PWD_COMMAND}`; export r; \ |
27853 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 27854 | $(HOST_EXPORTS) \ |
b813574b | 27855 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27856 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27857 | done; \ | |
b813574b | 27858 | echo "Doing distclean in zip" ; \ |
b00612cc | 27859 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27860 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27861 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27862 | "RANLIB=$${RANLIB}" \ | |
27863 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27864 | distclean) \ |
4fa63067 NN |
27865 | || exit 1 |
27866 | ||
b813574b | 27867 | @endif zip |
4fa63067 | 27868 | |
b813574b PB |
27869 | .PHONY: maybe-maintainer-clean-zip maintainer-clean-zip |
27870 | maybe-maintainer-clean-zip: | |
27871 | @if zip | |
27872 | maybe-maintainer-clean-zip: maintainer-clean-zip | |
4fa63067 | 27873 | |
b813574b | 27874 | maintainer-clean-zip: |
0aed8855 | 27875 | @: $(MAKE); $(unstage) |
b813574b | 27876 | @[ -f ./zip/Makefile ] || exit 0; \ |
4fa63067 | 27877 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 27878 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 27879 | $(HOST_EXPORTS) \ |
b813574b | 27880 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
27881 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
27882 | done; \ | |
b813574b | 27883 | echo "Doing maintainer-clean in zip" ; \ |
b00612cc | 27884 | (cd $(HOST_SUBDIR)/zip && \ |
4fa63067 NN |
27885 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
27886 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
27887 | "RANLIB=$${RANLIB}" \ | |
27888 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 27889 | maintainer-clean) \ |
4fa63067 | 27890 | || exit 1 |
3866be5d | 27891 | |
b813574b | 27892 | @endif zip |
3866be5d | 27893 | |
4fa63067 | 27894 | |
a7254363 | 27895 | |
b813574b PB |
27896 | .PHONY: configure-zlib maybe-configure-zlib |
27897 | maybe-configure-zlib: | |
27898 | @if zlib | |
27899 | maybe-configure-zlib: configure-zlib | |
c52c6897 PB |
27900 | configure-zlib: |
27901 | @endif zlib | |
27902 | @if zlib-bootstrap | |
27903 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
27904 | @endif zlib-bootstrap | |
27905 | @if zlib | |
27906 | @r=`${PWD_COMMAND}`; export r; \ | |
27907 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
27908 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
27909 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ | |
378fce5b | 27910 | $(HOST_EXPORTS) \ |
a7254363 PB |
27911 | echo Configuring in $(HOST_SUBDIR)/zlib; \ |
27912 | cd "$(HOST_SUBDIR)/zlib" || exit 1; \ | |
e2b9e2dc | 27913 | case $(srcdir) in \ |
b00612cc PB |
27914 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
27915 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
27916 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 27917 | esac; \ |
b00612cc PB |
27918 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
27919 | libsrcdir="$$s/zlib"; \ | |
e2b9e2dc | 27920 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 27921 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 27922 | || exit 1 |
b813574b | 27923 | @endif zlib |
e2b9e2dc | 27924 | |
a7254363 PB |
27925 | |
27926 | ||
d545f33b PB |
27927 | .PHONY: configure-stage1-zlib maybe-configure-stage1-zlib |
27928 | maybe-configure-stage1-zlib: | |
27929 | @if zlib-bootstrap | |
27930 | maybe-configure-stage1-zlib: configure-stage1-zlib | |
0aed8855 | 27931 | configure-stage1-zlib: |
c52c6897 | 27932 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
0aed8855 | 27933 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27934 | @r=`${PWD_COMMAND}`; export r; \ |
27935 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 27936 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b PB |
27937 | $(HOST_EXPORTS) \ |
27938 | echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \ | |
0aed8855 | 27939 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ |
d545f33b PB |
27940 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
27941 | case $(srcdir) in \ | |
27942 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
27943 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
27944 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
27945 | esac; \ | |
27946 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
27947 | libsrcdir="$$s/zlib"; \ | |
27948 | $(SHELL) $${libsrcdir}/configure \ | |
27949 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
27950 | --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | |
27951 | @endif zlib-bootstrap | |
27952 | ||
27953 | .PHONY: configure-stage2-zlib maybe-configure-stage2-zlib | |
27954 | maybe-configure-stage2-zlib: | |
27955 | @if zlib-bootstrap | |
27956 | maybe-configure-stage2-zlib: configure-stage2-zlib | |
0aed8855 | 27957 | configure-stage2-zlib: |
c52c6897 | 27958 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
0aed8855 | 27959 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27960 | @r=`${PWD_COMMAND}`; export r; \ |
27961 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 27962 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b PB |
27963 | $(HOST_EXPORTS) \ |
27964 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
27965 | echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \ | |
0aed8855 | 27966 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ |
d545f33b PB |
27967 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
27968 | case $(srcdir) in \ | |
27969 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
27970 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
27971 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
27972 | esac; \ | |
27973 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
27974 | libsrcdir="$$s/zlib"; \ | |
27975 | $(SHELL) $${libsrcdir}/configure \ | |
27976 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
27977 | @stage2_werror_flag@ | |
27978 | @endif zlib-bootstrap | |
27979 | ||
27980 | .PHONY: configure-stage3-zlib maybe-configure-stage3-zlib | |
27981 | maybe-configure-stage3-zlib: | |
27982 | @if zlib-bootstrap | |
27983 | maybe-configure-stage3-zlib: configure-stage3-zlib | |
0aed8855 | 27984 | configure-stage3-zlib: |
c52c6897 | 27985 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
0aed8855 | 27986 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
27987 | @r=`${PWD_COMMAND}`; export r; \ |
27988 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 27989 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b PB |
27990 | $(HOST_EXPORTS) \ |
27991 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
27992 | echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \ | |
0aed8855 | 27993 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ |
d545f33b PB |
27994 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
27995 | case $(srcdir) in \ | |
27996 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
27997 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
27998 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
27999 | esac; \ | |
28000 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
28001 | libsrcdir="$$s/zlib"; \ | |
28002 | $(SHELL) $${libsrcdir}/configure \ | |
28003 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
28004 | @stage2_werror_flag@ | |
28005 | @endif zlib-bootstrap | |
28006 | ||
28007 | .PHONY: configure-stage4-zlib maybe-configure-stage4-zlib | |
28008 | maybe-configure-stage4-zlib: | |
28009 | @if zlib-bootstrap | |
28010 | maybe-configure-stage4-zlib: configure-stage4-zlib | |
0aed8855 | 28011 | configure-stage4-zlib: |
c52c6897 | 28012 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
0aed8855 | 28013 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
28014 | @r=`${PWD_COMMAND}`; export r; \ |
28015 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 28016 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b PB |
28017 | $(HOST_EXPORTS) \ |
28018 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28019 | echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \ | |
0aed8855 | 28020 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ |
d545f33b PB |
28021 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
28022 | case $(srcdir) in \ | |
28023 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
28024 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
28025 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
28026 | esac; \ | |
28027 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
28028 | libsrcdir="$$s/zlib"; \ | |
28029 | $(SHELL) $${libsrcdir}/configure \ | |
28030 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
28031 | @stage2_werror_flag@ | |
28032 | @endif zlib-bootstrap | |
28033 | ||
28034 | .PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib | |
28035 | maybe-configure-stageprofile-zlib: | |
28036 | @if zlib-bootstrap | |
28037 | maybe-configure-stageprofile-zlib: configure-stageprofile-zlib | |
0aed8855 | 28038 | configure-stageprofile-zlib: |
c52c6897 | 28039 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
0aed8855 | 28040 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
28041 | @r=`${PWD_COMMAND}`; export r; \ |
28042 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 28043 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b PB |
28044 | $(HOST_EXPORTS) \ |
28045 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28046 | echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \ | |
0aed8855 | 28047 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ |
d545f33b PB |
28048 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
28049 | case $(srcdir) in \ | |
28050 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
28051 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
28052 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
28053 | esac; \ | |
28054 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
28055 | libsrcdir="$$s/zlib"; \ | |
28056 | $(SHELL) $${libsrcdir}/configure \ | |
28057 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
28058 | @stage2_werror_flag@ | |
28059 | @endif zlib-bootstrap | |
28060 | ||
28061 | .PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib | |
28062 | maybe-configure-stagefeedback-zlib: | |
28063 | @if zlib-bootstrap | |
28064 | maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib | |
0aed8855 | 28065 | configure-stagefeedback-zlib: |
c52c6897 | 28066 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
0aed8855 | 28067 | @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib |
c52c6897 PB |
28068 | @r=`${PWD_COMMAND}`; export r; \ |
28069 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
0aed8855 | 28070 | test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \ |
d545f33b PB |
28071 | $(HOST_EXPORTS) \ |
28072 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28073 | echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \ | |
0aed8855 | 28074 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \ |
d545f33b PB |
28075 | cd $(HOST_SUBDIR)/zlib || exit 1; \ |
28076 | case $(srcdir) in \ | |
28077 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
28078 | *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \ | |
28079 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
28080 | esac; \ | |
28081 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
28082 | libsrcdir="$$s/zlib"; \ | |
28083 | $(SHELL) $${libsrcdir}/configure \ | |
28084 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
28085 | @stage2_werror_flag@ | |
28086 | @endif zlib-bootstrap | |
28087 | ||
28088 | ||
28089 | ||
28090 | ||
28091 | ||
b813574b PB |
28092 | .PHONY: all-zlib maybe-all-zlib |
28093 | maybe-all-zlib: | |
28094 | @if zlib | |
d27cc32e | 28095 | TARGET-zlib=all |
b813574b PB |
28096 | maybe-all-zlib: all-zlib |
28097 | all-zlib: configure-zlib | |
c52c6897 PB |
28098 | @endif zlib |
28099 | @if zlib-bootstrap | |
28100 | @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | |
28101 | @endif zlib-bootstrap | |
28102 | @if zlib | |
28103 | @r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 28104 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 28105 | $(HOST_EXPORTS) \ |
b00612cc PB |
28106 | (cd $(HOST_SUBDIR)/zlib && \ |
28107 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zlib)) | |
b813574b | 28108 | @endif zlib |
3866be5d | 28109 | |
a7254363 | 28110 | |
d545f33b PB |
28111 | |
28112 | .PHONY: all-stage1-zlib maybe-all-stage1-zlib | |
28113 | .PHONY: clean-stage1-zlib maybe-clean-stage1-zlib | |
28114 | maybe-all-stage1-zlib: | |
28115 | maybe-clean-stage1-zlib: | |
28116 | @if zlib-bootstrap | |
28117 | maybe-all-stage1-zlib: all-stage1-zlib | |
28118 | all-stage1: all-stage1-zlib | |
f70224b5 | 28119 | TARGET-stage1-zlib = $(TARGET-zlib) |
d545f33b | 28120 | all-stage1-zlib: configure-stage1-zlib |
c52c6897 | 28121 | @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start |
d545f33b PB |
28122 | @r=`${PWD_COMMAND}`; export r; \ |
28123 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28124 | $(HOST_EXPORTS) \ | |
28125 | cd $(HOST_SUBDIR)/zlib && \ | |
c52c6897 | 28126 | $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \ |
f70224b5 | 28127 | $(TARGET-stage1-zlib) |
d545f33b PB |
28128 | |
28129 | maybe-clean-stage1-zlib: clean-stage1-zlib | |
28130 | clean-stage1: clean-stage1-zlib | |
28131 | clean-stage1-zlib: | |
28132 | @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] \ | |
28133 | || exit 0 ; \ | |
c52c6897 | 28134 | [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \ |
d545f33b PB |
28135 | cd $(HOST_SUBDIR)/zlib && \ |
28136 | $(MAKE) $(FLAGS_TO_PASS) \ | |
c52c6897 | 28137 | CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean |
d545f33b PB |
28138 | @endif zlib-bootstrap |
28139 | ||
28140 | ||
28141 | .PHONY: all-stage2-zlib maybe-all-stage2-zlib | |
28142 | .PHONY: clean-stage2-zlib maybe-clean-stage2-zlib | |
28143 | maybe-all-stage2-zlib: | |
28144 | maybe-clean-stage2-zlib: | |
28145 | @if zlib-bootstrap | |
28146 | maybe-all-stage2-zlib: all-stage2-zlib | |
28147 | all-stage2: all-stage2-zlib | |
f70224b5 | 28148 | TARGET-stage2-zlib = $(TARGET-zlib) |
d545f33b | 28149 | all-stage2-zlib: configure-stage2-zlib |
c52c6897 | 28150 | @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start |
d545f33b PB |
28151 | @r=`${PWD_COMMAND}`; export r; \ |
28152 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28153 | $(HOST_EXPORTS) \ | |
28154 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28155 | cd $(HOST_SUBDIR)/zlib && \ | |
f70224b5 PB |
28156 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
28157 | $(TARGET-stage2-zlib) | |
d545f33b PB |
28158 | |
28159 | maybe-clean-stage2-zlib: clean-stage2-zlib | |
28160 | clean-stage2: clean-stage2-zlib | |
28161 | clean-stage2-zlib: | |
28162 | @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] \ | |
28163 | || exit 0 ; \ | |
c52c6897 | 28164 | [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \ |
d545f33b PB |
28165 | cd $(HOST_SUBDIR)/zlib && \ |
28166 | $(MAKE) $(FLAGS_TO_PASS) \ | |
28167 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
28168 | clean | |
28169 | @endif zlib-bootstrap | |
28170 | ||
28171 | ||
28172 | .PHONY: all-stage3-zlib maybe-all-stage3-zlib | |
28173 | .PHONY: clean-stage3-zlib maybe-clean-stage3-zlib | |
28174 | maybe-all-stage3-zlib: | |
28175 | maybe-clean-stage3-zlib: | |
28176 | @if zlib-bootstrap | |
28177 | maybe-all-stage3-zlib: all-stage3-zlib | |
28178 | all-stage3: all-stage3-zlib | |
f70224b5 | 28179 | TARGET-stage3-zlib = $(TARGET-zlib) |
d545f33b | 28180 | all-stage3-zlib: configure-stage3-zlib |
c52c6897 | 28181 | @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start |
d545f33b PB |
28182 | @r=`${PWD_COMMAND}`; export r; \ |
28183 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28184 | $(HOST_EXPORTS) \ | |
28185 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28186 | cd $(HOST_SUBDIR)/zlib && \ | |
f70224b5 PB |
28187 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
28188 | $(TARGET-stage3-zlib) | |
d545f33b PB |
28189 | |
28190 | maybe-clean-stage3-zlib: clean-stage3-zlib | |
28191 | clean-stage3: clean-stage3-zlib | |
28192 | clean-stage3-zlib: | |
28193 | @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] \ | |
28194 | || exit 0 ; \ | |
c52c6897 | 28195 | [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \ |
d545f33b PB |
28196 | cd $(HOST_SUBDIR)/zlib && \ |
28197 | $(MAKE) $(FLAGS_TO_PASS) \ | |
28198 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
28199 | clean | |
28200 | @endif zlib-bootstrap | |
28201 | ||
28202 | ||
28203 | .PHONY: all-stage4-zlib maybe-all-stage4-zlib | |
28204 | .PHONY: clean-stage4-zlib maybe-clean-stage4-zlib | |
28205 | maybe-all-stage4-zlib: | |
28206 | maybe-clean-stage4-zlib: | |
28207 | @if zlib-bootstrap | |
28208 | maybe-all-stage4-zlib: all-stage4-zlib | |
28209 | all-stage4: all-stage4-zlib | |
f70224b5 | 28210 | TARGET-stage4-zlib = $(TARGET-zlib) |
d545f33b | 28211 | all-stage4-zlib: configure-stage4-zlib |
c52c6897 | 28212 | @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start |
d545f33b PB |
28213 | @r=`${PWD_COMMAND}`; export r; \ |
28214 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28215 | $(HOST_EXPORTS) \ | |
28216 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28217 | cd $(HOST_SUBDIR)/zlib && \ | |
f70224b5 PB |
28218 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \ |
28219 | $(TARGET-stage4-zlib) | |
d545f33b PB |
28220 | |
28221 | maybe-clean-stage4-zlib: clean-stage4-zlib | |
28222 | clean-stage4: clean-stage4-zlib | |
28223 | clean-stage4-zlib: | |
28224 | @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] \ | |
28225 | || exit 0 ; \ | |
c52c6897 | 28226 | [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \ |
d545f33b PB |
28227 | cd $(HOST_SUBDIR)/zlib && \ |
28228 | $(MAKE) $(FLAGS_TO_PASS) \ | |
28229 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
28230 | clean | |
28231 | @endif zlib-bootstrap | |
28232 | ||
28233 | ||
28234 | .PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib | |
28235 | .PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib | |
28236 | maybe-all-stageprofile-zlib: | |
28237 | maybe-clean-stageprofile-zlib: | |
28238 | @if zlib-bootstrap | |
28239 | maybe-all-stageprofile-zlib: all-stageprofile-zlib | |
28240 | all-stageprofile: all-stageprofile-zlib | |
f70224b5 | 28241 | TARGET-stageprofile-zlib = $(TARGET-zlib) |
d545f33b | 28242 | all-stageprofile-zlib: configure-stageprofile-zlib |
c52c6897 | 28243 | @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start |
d545f33b PB |
28244 | @r=`${PWD_COMMAND}`; export r; \ |
28245 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28246 | $(HOST_EXPORTS) \ | |
28247 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28248 | cd $(HOST_SUBDIR)/zlib && \ | |
f70224b5 PB |
28249 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \ |
28250 | $(TARGET-stageprofile-zlib) | |
d545f33b PB |
28251 | |
28252 | maybe-clean-stageprofile-zlib: clean-stageprofile-zlib | |
28253 | clean-stageprofile: clean-stageprofile-zlib | |
28254 | clean-stageprofile-zlib: | |
28255 | @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] \ | |
28256 | || exit 0 ; \ | |
c52c6897 | 28257 | [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \ |
d545f33b PB |
28258 | cd $(HOST_SUBDIR)/zlib && \ |
28259 | $(MAKE) $(FLAGS_TO_PASS) \ | |
28260 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
28261 | CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean | |
28262 | @endif zlib-bootstrap | |
28263 | ||
28264 | ||
28265 | .PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib | |
28266 | .PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib | |
28267 | maybe-all-stagefeedback-zlib: | |
28268 | maybe-clean-stagefeedback-zlib: | |
28269 | @if zlib-bootstrap | |
28270 | maybe-all-stagefeedback-zlib: all-stagefeedback-zlib | |
28271 | all-stagefeedback: all-stagefeedback-zlib | |
f70224b5 | 28272 | TARGET-stagefeedback-zlib = $(TARGET-zlib) |
d545f33b | 28273 | all-stagefeedback-zlib: configure-stagefeedback-zlib |
c52c6897 | 28274 | @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start |
d545f33b PB |
28275 | @r=`${PWD_COMMAND}`; export r; \ |
28276 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28277 | $(HOST_EXPORTS) \ | |
28278 | $(POSTSTAGE1_HOST_EXPORTS) \ | |
28279 | cd $(HOST_SUBDIR)/zlib && \ | |
f70224b5 PB |
28280 | $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \ |
28281 | $(TARGET-stagefeedback-zlib) | |
d545f33b PB |
28282 | |
28283 | maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib | |
28284 | clean-stagefeedback: clean-stagefeedback-zlib | |
28285 | clean-stagefeedback-zlib: | |
28286 | @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] \ | |
28287 | || exit 0 ; \ | |
c52c6897 | 28288 | [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \ |
d545f33b PB |
28289 | cd $(HOST_SUBDIR)/zlib && \ |
28290 | $(MAKE) $(FLAGS_TO_PASS) \ | |
28291 | $(POSTSTAGE1_FLAGS_TO_PASS) \ | |
28292 | CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean | |
28293 | @endif zlib-bootstrap | |
28294 | ||
28295 | ||
28296 | ||
28297 | ||
28298 | ||
b813574b PB |
28299 | .PHONY: check-zlib maybe-check-zlib |
28300 | maybe-check-zlib: | |
28301 | @if zlib | |
28302 | maybe-check-zlib: check-zlib | |
3866be5d | 28303 | |
b813574b | 28304 | check-zlib: |
3866be5d | 28305 | |
b813574b | 28306 | @endif zlib |
3866be5d | 28307 | |
b813574b PB |
28308 | .PHONY: install-zlib maybe-install-zlib |
28309 | maybe-install-zlib: | |
28310 | @if zlib | |
28311 | maybe-install-zlib: install-zlib | |
4fa63067 | 28312 | |
b813574b | 28313 | install-zlib: |
4fa63067 | 28314 | |
b813574b | 28315 | @endif zlib |
4fa63067 NN |
28316 | |
28317 | # Other targets (info, dvi, etc.) | |
28318 | ||
b813574b PB |
28319 | .PHONY: maybe-info-zlib info-zlib |
28320 | maybe-info-zlib: | |
28321 | @if zlib | |
28322 | maybe-info-zlib: info-zlib | |
4fa63067 | 28323 | |
6d389afc MS |
28324 | info-zlib: \ |
28325 | configure-zlib | |
28326 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
28327 | r=`${PWD_COMMAND}`; export r; \ | |
28328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
28329 | $(HOST_EXPORTS) \ |
28330 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28331 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28332 | done; \ | |
28333 | echo "Doing info in zlib" ; \ | |
b00612cc | 28334 | (cd $(HOST_SUBDIR)/zlib && \ |
6d389afc MS |
28335 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28336 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28337 | "RANLIB=$${RANLIB}" \ | |
28338 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28339 | info) \ | |
28340 | || exit 1 | |
28341 | ||
28342 | @endif zlib | |
28343 | ||
28344 | .PHONY: maybe-dvi-zlib dvi-zlib | |
28345 | maybe-dvi-zlib: | |
28346 | @if zlib | |
28347 | maybe-dvi-zlib: dvi-zlib | |
28348 | ||
28349 | dvi-zlib: \ | |
b813574b PB |
28350 | configure-zlib |
28351 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28352 | r=`${PWD_COMMAND}`; export r; \ |
28353 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28354 | $(HOST_EXPORTS) \ |
b813574b | 28355 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28356 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28357 | done; \ | |
6d389afc | 28358 | echo "Doing dvi in zlib" ; \ |
b00612cc | 28359 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28360 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28361 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28362 | "RANLIB=$${RANLIB}" \ | |
28363 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 28364 | dvi) \ |
4fa63067 NN |
28365 | || exit 1 |
28366 | ||
b813574b | 28367 | @endif zlib |
4fa63067 | 28368 | |
6d389afc MS |
28369 | .PHONY: maybe-html-zlib html-zlib |
28370 | maybe-html-zlib: | |
b813574b | 28371 | @if zlib |
6d389afc | 28372 | maybe-html-zlib: html-zlib |
4fa63067 | 28373 | |
6d389afc | 28374 | html-zlib: \ |
b813574b PB |
28375 | configure-zlib |
28376 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28377 | r=`${PWD_COMMAND}`; export r; \ |
28378 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28379 | $(HOST_EXPORTS) \ |
b813574b | 28380 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28381 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28382 | done; \ | |
6d389afc | 28383 | echo "Doing html in zlib" ; \ |
b00612cc | 28384 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28385 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28386 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28387 | "RANLIB=$${RANLIB}" \ | |
28388 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 28389 | html) \ |
4fa63067 NN |
28390 | || exit 1 |
28391 | ||
b813574b | 28392 | @endif zlib |
4fa63067 | 28393 | |
b813574b PB |
28394 | .PHONY: maybe-TAGS-zlib TAGS-zlib |
28395 | maybe-TAGS-zlib: | |
28396 | @if zlib | |
28397 | maybe-TAGS-zlib: TAGS-zlib | |
4fa63067 | 28398 | |
b813574b PB |
28399 | TAGS-zlib: \ |
28400 | configure-zlib | |
28401 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28402 | r=`${PWD_COMMAND}`; export r; \ |
28403 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28404 | $(HOST_EXPORTS) \ |
b813574b | 28405 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28406 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28407 | done; \ | |
b813574b | 28408 | echo "Doing TAGS in zlib" ; \ |
b00612cc | 28409 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28410 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28411 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28412 | "RANLIB=$${RANLIB}" \ | |
28413 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28414 | TAGS) \ |
4fa63067 NN |
28415 | || exit 1 |
28416 | ||
b813574b | 28417 | @endif zlib |
4fa63067 | 28418 | |
b813574b PB |
28419 | .PHONY: maybe-install-info-zlib install-info-zlib |
28420 | maybe-install-info-zlib: | |
28421 | @if zlib | |
28422 | maybe-install-info-zlib: install-info-zlib | |
4fa63067 | 28423 | |
b813574b PB |
28424 | install-info-zlib: \ |
28425 | configure-zlib \ | |
28426 | info-zlib | |
28427 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28428 | r=`${PWD_COMMAND}`; export r; \ |
28429 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28430 | $(HOST_EXPORTS) \ |
b813574b | 28431 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28432 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28433 | done; \ | |
b813574b | 28434 | echo "Doing install-info in zlib" ; \ |
b00612cc | 28435 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28436 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28437 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28438 | "RANLIB=$${RANLIB}" \ | |
28439 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28440 | install-info) \ |
4fa63067 NN |
28441 | || exit 1 |
28442 | ||
b813574b | 28443 | @endif zlib |
4fa63067 | 28444 | |
108a6f8e CD |
28445 | .PHONY: maybe-install-html-zlib install-html-zlib |
28446 | maybe-install-html-zlib: | |
28447 | @if zlib | |
28448 | maybe-install-html-zlib: install-html-zlib | |
28449 | ||
28450 | install-html-zlib: \ | |
28451 | configure-zlib \ | |
28452 | html-zlib | |
28453 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
28454 | r=`${PWD_COMMAND}`; export r; \ | |
28455 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28456 | $(HOST_EXPORTS) \ | |
28457 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
28458 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28459 | done; \ | |
28460 | echo "Doing install-html in zlib" ; \ | |
28461 | (cd $(HOST_SUBDIR)/zlib && \ | |
28462 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28463 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28464 | "RANLIB=$${RANLIB}" \ | |
28465 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28466 | install-html) \ | |
28467 | || exit 1 | |
28468 | ||
28469 | @endif zlib | |
28470 | ||
b813574b PB |
28471 | .PHONY: maybe-installcheck-zlib installcheck-zlib |
28472 | maybe-installcheck-zlib: | |
28473 | @if zlib | |
28474 | maybe-installcheck-zlib: installcheck-zlib | |
4fa63067 | 28475 | |
b813574b PB |
28476 | installcheck-zlib: \ |
28477 | configure-zlib | |
28478 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28479 | r=`${PWD_COMMAND}`; export r; \ |
28480 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28481 | $(HOST_EXPORTS) \ |
b813574b | 28482 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28483 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28484 | done; \ | |
b813574b | 28485 | echo "Doing installcheck in zlib" ; \ |
b00612cc | 28486 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28487 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28488 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28489 | "RANLIB=$${RANLIB}" \ | |
28490 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28491 | installcheck) \ |
4fa63067 NN |
28492 | || exit 1 |
28493 | ||
b813574b | 28494 | @endif zlib |
4fa63067 | 28495 | |
b813574b PB |
28496 | .PHONY: maybe-mostlyclean-zlib mostlyclean-zlib |
28497 | maybe-mostlyclean-zlib: | |
28498 | @if zlib | |
28499 | maybe-mostlyclean-zlib: mostlyclean-zlib | |
4fa63067 | 28500 | |
b813574b PB |
28501 | mostlyclean-zlib: |
28502 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28503 | r=`${PWD_COMMAND}`; export r; \ |
28504 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28505 | $(HOST_EXPORTS) \ |
b813574b | 28506 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28507 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28508 | done; \ | |
b813574b | 28509 | echo "Doing mostlyclean in zlib" ; \ |
b00612cc | 28510 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28511 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28512 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28513 | "RANLIB=$${RANLIB}" \ | |
28514 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28515 | mostlyclean) \ |
4fa63067 NN |
28516 | || exit 1 |
28517 | ||
b813574b | 28518 | @endif zlib |
4fa63067 | 28519 | |
b813574b PB |
28520 | .PHONY: maybe-clean-zlib clean-zlib |
28521 | maybe-clean-zlib: | |
28522 | @if zlib | |
28523 | maybe-clean-zlib: clean-zlib | |
4fa63067 | 28524 | |
b813574b PB |
28525 | clean-zlib: |
28526 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28527 | r=`${PWD_COMMAND}`; export r; \ |
28528 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28529 | $(HOST_EXPORTS) \ |
b813574b | 28530 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28531 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28532 | done; \ | |
b813574b | 28533 | echo "Doing clean in zlib" ; \ |
b00612cc | 28534 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28535 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28536 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28537 | "RANLIB=$${RANLIB}" \ | |
28538 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28539 | clean) \ |
4fa63067 NN |
28540 | || exit 1 |
28541 | ||
b813574b | 28542 | @endif zlib |
4fa63067 | 28543 | |
b813574b PB |
28544 | .PHONY: maybe-distclean-zlib distclean-zlib |
28545 | maybe-distclean-zlib: | |
28546 | @if zlib | |
28547 | maybe-distclean-zlib: distclean-zlib | |
4fa63067 | 28548 | |
b813574b PB |
28549 | distclean-zlib: |
28550 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28551 | r=`${PWD_COMMAND}`; export r; \ |
28552 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28553 | $(HOST_EXPORTS) \ |
b813574b | 28554 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28555 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28556 | done; \ | |
b813574b | 28557 | echo "Doing distclean in zlib" ; \ |
b00612cc | 28558 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28559 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28560 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28561 | "RANLIB=$${RANLIB}" \ | |
28562 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28563 | distclean) \ |
4fa63067 NN |
28564 | || exit 1 |
28565 | ||
b813574b | 28566 | @endif zlib |
4fa63067 | 28567 | |
b813574b PB |
28568 | .PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib |
28569 | maybe-maintainer-clean-zlib: | |
28570 | @if zlib | |
28571 | maybe-maintainer-clean-zlib: maintainer-clean-zlib | |
4fa63067 | 28572 | |
b813574b PB |
28573 | maintainer-clean-zlib: |
28574 | @[ -f ./zlib/Makefile ] || exit 0; \ | |
4fa63067 NN |
28575 | r=`${PWD_COMMAND}`; export r; \ |
28576 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28577 | $(HOST_EXPORTS) \ |
b813574b | 28578 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
28579 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28580 | done; \ | |
b813574b | 28581 | echo "Doing maintainer-clean in zlib" ; \ |
b00612cc | 28582 | (cd $(HOST_SUBDIR)/zlib && \ |
4fa63067 NN |
28583 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28584 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28585 | "RANLIB=$${RANLIB}" \ | |
28586 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28587 | maintainer-clean) \ |
4fa63067 | 28588 | || exit 1 |
16ae0395 | 28589 | |
b813574b | 28590 | @endif zlib |
3866be5d NN |
28591 | |
28592 | ||
a7254363 | 28593 | |
b813574b PB |
28594 | .PHONY: configure-gdb maybe-configure-gdb |
28595 | maybe-configure-gdb: | |
28596 | @if gdb | |
28597 | maybe-configure-gdb: configure-gdb | |
c52c6897 | 28598 | configure-gdb: |
0aed8855 | 28599 | @: $(MAKE); $(unstage) |
c52c6897 | 28600 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 28601 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
28602 | test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \ |
28603 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \ | |
378fce5b | 28604 | $(HOST_EXPORTS) \ |
a7254363 PB |
28605 | echo Configuring in $(HOST_SUBDIR)/gdb; \ |
28606 | cd "$(HOST_SUBDIR)/gdb" || exit 1; \ | |
e2b9e2dc | 28607 | case $(srcdir) in \ |
b00612cc PB |
28608 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
28609 | *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \ | |
28610 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 28611 | esac; \ |
b00612cc PB |
28612 | srcdiroption="--srcdir=$${topdir}/gdb"; \ |
28613 | libsrcdir="$$s/gdb"; \ | |
e2b9e2dc | 28614 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 28615 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 28616 | || exit 1 |
b813574b | 28617 | @endif gdb |
e2b9e2dc | 28618 | |
a7254363 PB |
28619 | |
28620 | ||
d545f33b PB |
28621 | |
28622 | ||
b813574b PB |
28623 | .PHONY: all-gdb maybe-all-gdb |
28624 | maybe-all-gdb: | |
28625 | @if gdb | |
d27cc32e | 28626 | TARGET-gdb=all |
b813574b PB |
28627 | maybe-all-gdb: all-gdb |
28628 | all-gdb: configure-gdb | |
0aed8855 | 28629 | @: $(MAKE); $(unstage) |
b40e3958 L |
28630 | @r=`${PWD_COMMAND}`; export r; \ |
28631 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28632 | $(HOST_EXPORTS) \ |
b00612cc PB |
28633 | (cd $(HOST_SUBDIR)/gdb && \ |
28634 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-gdb)) | |
b813574b | 28635 | @endif gdb |
3866be5d | 28636 | |
a7254363 | 28637 | |
d545f33b PB |
28638 | |
28639 | ||
b813574b PB |
28640 | .PHONY: check-gdb maybe-check-gdb |
28641 | maybe-check-gdb: | |
28642 | @if gdb | |
28643 | maybe-check-gdb: check-gdb | |
3866be5d | 28644 | |
b813574b | 28645 | check-gdb: |
0aed8855 | 28646 | @: $(MAKE); $(unstage) |
b40e3958 L |
28647 | @r=`${PWD_COMMAND}`; export r; \ |
28648 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28649 | $(HOST_EXPORTS) \ |
b00612cc PB |
28650 | (cd $(HOST_SUBDIR)/gdb && \ |
28651 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 28652 | |
b813574b | 28653 | @endif gdb |
3866be5d | 28654 | |
b813574b PB |
28655 | .PHONY: install-gdb maybe-install-gdb |
28656 | maybe-install-gdb: | |
28657 | @if gdb | |
28658 | maybe-install-gdb: install-gdb | |
16ae0395 | 28659 | |
b813574b | 28660 | install-gdb: installdirs |
0aed8855 | 28661 | @: $(MAKE); $(unstage) |
b40e3958 L |
28662 | @r=`${PWD_COMMAND}`; export r; \ |
28663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28664 | $(HOST_EXPORTS) \ |
b00612cc | 28665 | (cd $(HOST_SUBDIR)/gdb && \ |
2da12f12 | 28666 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d | 28667 | |
b813574b | 28668 | @endif gdb |
3866be5d | 28669 | |
4fa63067 NN |
28670 | # Other targets (info, dvi, etc.) |
28671 | ||
b813574b PB |
28672 | .PHONY: maybe-info-gdb info-gdb |
28673 | maybe-info-gdb: | |
28674 | @if gdb | |
28675 | maybe-info-gdb: info-gdb | |
4fa63067 | 28676 | |
b813574b PB |
28677 | info-gdb: \ |
28678 | configure-gdb | |
0aed8855 | 28679 | @: $(MAKE); $(unstage) |
b813574b | 28680 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28681 | r=`${PWD_COMMAND}`; export r; \ |
28682 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28683 | $(HOST_EXPORTS) \ |
72b2455a | 28684 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28685 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28686 | done; \ | |
b813574b | 28687 | echo "Doing info in gdb" ; \ |
b00612cc | 28688 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28689 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28690 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28691 | "RANLIB=$${RANLIB}" \ | |
28692 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28693 | info) \ |
4fa63067 NN |
28694 | || exit 1 |
28695 | ||
b813574b | 28696 | @endif gdb |
4fa63067 | 28697 | |
b813574b PB |
28698 | .PHONY: maybe-dvi-gdb dvi-gdb |
28699 | maybe-dvi-gdb: | |
28700 | @if gdb | |
28701 | maybe-dvi-gdb: dvi-gdb | |
4fa63067 | 28702 | |
b813574b PB |
28703 | dvi-gdb: \ |
28704 | configure-gdb | |
0aed8855 | 28705 | @: $(MAKE); $(unstage) |
b813574b | 28706 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28707 | r=`${PWD_COMMAND}`; export r; \ |
28708 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28709 | $(HOST_EXPORTS) \ |
72b2455a | 28710 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28711 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28712 | done; \ | |
b813574b | 28713 | echo "Doing dvi in gdb" ; \ |
b00612cc | 28714 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28715 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28716 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28717 | "RANLIB=$${RANLIB}" \ | |
28718 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28719 | dvi) \ |
4fa63067 NN |
28720 | || exit 1 |
28721 | ||
b813574b | 28722 | @endif gdb |
4fa63067 | 28723 | |
6d389afc MS |
28724 | .PHONY: maybe-html-gdb html-gdb |
28725 | maybe-html-gdb: | |
28726 | @if gdb | |
28727 | maybe-html-gdb: html-gdb | |
28728 | ||
28729 | html-gdb: \ | |
28730 | configure-gdb | |
0aed8855 | 28731 | @: $(MAKE); $(unstage) |
6d389afc MS |
28732 | @[ -f ./gdb/Makefile ] || exit 0; \ |
28733 | r=`${PWD_COMMAND}`; export r; \ | |
28734 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
28735 | $(HOST_EXPORTS) \ |
28736 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
28737 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28738 | done; \ | |
28739 | echo "Doing html in gdb" ; \ | |
b00612cc | 28740 | (cd $(HOST_SUBDIR)/gdb && \ |
6d389afc MS |
28741 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28742 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28743 | "RANLIB=$${RANLIB}" \ | |
28744 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28745 | html) \ | |
28746 | || exit 1 | |
28747 | ||
28748 | @endif gdb | |
28749 | ||
b813574b PB |
28750 | .PHONY: maybe-TAGS-gdb TAGS-gdb |
28751 | maybe-TAGS-gdb: | |
28752 | @if gdb | |
28753 | maybe-TAGS-gdb: TAGS-gdb | |
4fa63067 | 28754 | |
b813574b PB |
28755 | TAGS-gdb: \ |
28756 | configure-gdb | |
0aed8855 | 28757 | @: $(MAKE); $(unstage) |
b813574b | 28758 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28759 | r=`${PWD_COMMAND}`; export r; \ |
28760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28761 | $(HOST_EXPORTS) \ |
72b2455a | 28762 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28763 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28764 | done; \ | |
b813574b | 28765 | echo "Doing TAGS in gdb" ; \ |
b00612cc | 28766 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28769 | "RANLIB=$${RANLIB}" \ | |
28770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28771 | TAGS) \ |
4fa63067 NN |
28772 | || exit 1 |
28773 | ||
b813574b | 28774 | @endif gdb |
4fa63067 | 28775 | |
b813574b PB |
28776 | .PHONY: maybe-install-info-gdb install-info-gdb |
28777 | maybe-install-info-gdb: | |
28778 | @if gdb | |
28779 | maybe-install-info-gdb: install-info-gdb | |
4fa63067 | 28780 | |
b813574b PB |
28781 | install-info-gdb: \ |
28782 | configure-gdb \ | |
28783 | info-gdb | |
0aed8855 | 28784 | @: $(MAKE); $(unstage) |
b813574b | 28785 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28786 | r=`${PWD_COMMAND}`; export r; \ |
28787 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28788 | $(HOST_EXPORTS) \ |
72b2455a | 28789 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28790 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28791 | done; \ | |
b813574b | 28792 | echo "Doing install-info in gdb" ; \ |
b00612cc | 28793 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28794 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28795 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28796 | "RANLIB=$${RANLIB}" \ | |
28797 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28798 | install-info) \ |
4fa63067 NN |
28799 | || exit 1 |
28800 | ||
b813574b | 28801 | @endif gdb |
4fa63067 | 28802 | |
108a6f8e CD |
28803 | .PHONY: maybe-install-html-gdb install-html-gdb |
28804 | maybe-install-html-gdb: | |
28805 | @if gdb | |
28806 | maybe-install-html-gdb: install-html-gdb | |
28807 | ||
28808 | install-html-gdb: \ | |
28809 | configure-gdb \ | |
28810 | html-gdb | |
28811 | @: $(MAKE); $(unstage) | |
28812 | @[ -f ./gdb/Makefile ] || exit 0; \ | |
28813 | r=`${PWD_COMMAND}`; export r; \ | |
28814 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
28815 | $(HOST_EXPORTS) \ | |
28816 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
28817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
28818 | done; \ | |
28819 | echo "Doing install-html in gdb" ; \ | |
28820 | (cd $(HOST_SUBDIR)/gdb && \ | |
28821 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
28822 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28823 | "RANLIB=$${RANLIB}" \ | |
28824 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
28825 | install-html) \ | |
28826 | || exit 1 | |
28827 | ||
28828 | @endif gdb | |
28829 | ||
b813574b PB |
28830 | .PHONY: maybe-installcheck-gdb installcheck-gdb |
28831 | maybe-installcheck-gdb: | |
28832 | @if gdb | |
28833 | maybe-installcheck-gdb: installcheck-gdb | |
4fa63067 | 28834 | |
b813574b PB |
28835 | installcheck-gdb: \ |
28836 | configure-gdb | |
0aed8855 | 28837 | @: $(MAKE); $(unstage) |
b813574b | 28838 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28839 | r=`${PWD_COMMAND}`; export r; \ |
28840 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28841 | $(HOST_EXPORTS) \ |
72b2455a | 28842 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28843 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28844 | done; \ | |
b813574b | 28845 | echo "Doing installcheck in gdb" ; \ |
b00612cc | 28846 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28847 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28848 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28849 | "RANLIB=$${RANLIB}" \ | |
28850 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28851 | installcheck) \ |
4fa63067 NN |
28852 | || exit 1 |
28853 | ||
b813574b | 28854 | @endif gdb |
4fa63067 | 28855 | |
b813574b PB |
28856 | .PHONY: maybe-mostlyclean-gdb mostlyclean-gdb |
28857 | maybe-mostlyclean-gdb: | |
28858 | @if gdb | |
28859 | maybe-mostlyclean-gdb: mostlyclean-gdb | |
4fa63067 | 28860 | |
b813574b | 28861 | mostlyclean-gdb: |
0aed8855 | 28862 | @: $(MAKE); $(unstage) |
b813574b | 28863 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28864 | r=`${PWD_COMMAND}`; export r; \ |
28865 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28866 | $(HOST_EXPORTS) \ |
72b2455a | 28867 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28868 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28869 | done; \ | |
b813574b | 28870 | echo "Doing mostlyclean in gdb" ; \ |
b00612cc | 28871 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28872 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28873 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28874 | "RANLIB=$${RANLIB}" \ | |
28875 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28876 | mostlyclean) \ |
4fa63067 NN |
28877 | || exit 1 |
28878 | ||
b813574b | 28879 | @endif gdb |
4fa63067 | 28880 | |
b813574b PB |
28881 | .PHONY: maybe-clean-gdb clean-gdb |
28882 | maybe-clean-gdb: | |
28883 | @if gdb | |
28884 | maybe-clean-gdb: clean-gdb | |
4fa63067 | 28885 | |
b813574b | 28886 | clean-gdb: |
0aed8855 | 28887 | @: $(MAKE); $(unstage) |
b813574b | 28888 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28889 | r=`${PWD_COMMAND}`; export r; \ |
28890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28891 | $(HOST_EXPORTS) \ |
72b2455a | 28892 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28893 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28894 | done; \ | |
b813574b | 28895 | echo "Doing clean in gdb" ; \ |
b00612cc | 28896 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28897 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28898 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28899 | "RANLIB=$${RANLIB}" \ | |
28900 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28901 | clean) \ |
4fa63067 NN |
28902 | || exit 1 |
28903 | ||
b813574b | 28904 | @endif gdb |
4fa63067 | 28905 | |
b813574b PB |
28906 | .PHONY: maybe-distclean-gdb distclean-gdb |
28907 | maybe-distclean-gdb: | |
28908 | @if gdb | |
28909 | maybe-distclean-gdb: distclean-gdb | |
4fa63067 | 28910 | |
b813574b | 28911 | distclean-gdb: |
0aed8855 | 28912 | @: $(MAKE); $(unstage) |
b813574b | 28913 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28914 | r=`${PWD_COMMAND}`; export r; \ |
28915 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28916 | $(HOST_EXPORTS) \ |
72b2455a | 28917 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28918 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28919 | done; \ | |
b813574b | 28920 | echo "Doing distclean in gdb" ; \ |
b00612cc | 28921 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28922 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28923 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28924 | "RANLIB=$${RANLIB}" \ | |
28925 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28926 | distclean) \ |
4fa63067 NN |
28927 | || exit 1 |
28928 | ||
b813574b | 28929 | @endif gdb |
4fa63067 | 28930 | |
b813574b PB |
28931 | .PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb |
28932 | maybe-maintainer-clean-gdb: | |
28933 | @if gdb | |
28934 | maybe-maintainer-clean-gdb: maintainer-clean-gdb | |
4fa63067 | 28935 | |
b813574b | 28936 | maintainer-clean-gdb: |
0aed8855 | 28937 | @: $(MAKE); $(unstage) |
b813574b | 28938 | @[ -f ./gdb/Makefile ] || exit 0; \ |
4fa63067 NN |
28939 | r=`${PWD_COMMAND}`; export r; \ |
28940 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28941 | $(HOST_EXPORTS) \ |
72b2455a | 28942 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
28943 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
28944 | done; \ | |
b813574b | 28945 | echo "Doing maintainer-clean in gdb" ; \ |
b00612cc | 28946 | (cd $(HOST_SUBDIR)/gdb && \ |
4fa63067 NN |
28947 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
28948 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
28949 | "RANLIB=$${RANLIB}" \ | |
28950 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 28951 | maintainer-clean) \ |
4fa63067 NN |
28952 | || exit 1 |
28953 | ||
b813574b | 28954 | @endif gdb |
4fa63067 NN |
28955 | |
28956 | ||
a7254363 | 28957 | |
b813574b PB |
28958 | .PHONY: configure-expect maybe-configure-expect |
28959 | maybe-configure-expect: | |
28960 | @if expect | |
28961 | maybe-configure-expect: configure-expect | |
c52c6897 | 28962 | configure-expect: |
0aed8855 | 28963 | @: $(MAKE); $(unstage) |
c52c6897 | 28964 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 28965 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
28966 | test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \ |
28967 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \ | |
378fce5b | 28968 | $(HOST_EXPORTS) \ |
a7254363 PB |
28969 | echo Configuring in $(HOST_SUBDIR)/expect; \ |
28970 | cd "$(HOST_SUBDIR)/expect" || exit 1; \ | |
e2b9e2dc | 28971 | case $(srcdir) in \ |
b00612cc PB |
28972 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
28973 | *) topdir=`echo $(HOST_SUBDIR)/expect/ | \ | |
28974 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 28975 | esac; \ |
b00612cc PB |
28976 | srcdiroption="--srcdir=$${topdir}/expect"; \ |
28977 | libsrcdir="$$s/expect"; \ | |
e2b9e2dc | 28978 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 28979 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 28980 | || exit 1 |
b813574b | 28981 | @endif expect |
e2b9e2dc | 28982 | |
a7254363 PB |
28983 | |
28984 | ||
d545f33b PB |
28985 | |
28986 | ||
b813574b PB |
28987 | .PHONY: all-expect maybe-all-expect |
28988 | maybe-all-expect: | |
28989 | @if expect | |
d27cc32e | 28990 | TARGET-expect=all |
b813574b PB |
28991 | maybe-all-expect: all-expect |
28992 | all-expect: configure-expect | |
0aed8855 | 28993 | @: $(MAKE); $(unstage) |
b40e3958 L |
28994 | @r=`${PWD_COMMAND}`; export r; \ |
28995 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 28996 | $(HOST_EXPORTS) \ |
b00612cc PB |
28997 | (cd $(HOST_SUBDIR)/expect && \ |
28998 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-expect)) | |
b813574b | 28999 | @endif expect |
3866be5d | 29000 | |
a7254363 | 29001 | |
d545f33b PB |
29002 | |
29003 | ||
b813574b PB |
29004 | .PHONY: check-expect maybe-check-expect |
29005 | maybe-check-expect: | |
29006 | @if expect | |
29007 | maybe-check-expect: check-expect | |
3866be5d | 29008 | |
b813574b | 29009 | check-expect: |
0aed8855 | 29010 | @: $(MAKE); $(unstage) |
b40e3958 L |
29011 | @r=`${PWD_COMMAND}`; export r; \ |
29012 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29013 | $(HOST_EXPORTS) \ |
b00612cc PB |
29014 | (cd $(HOST_SUBDIR)/expect && \ |
29015 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 29016 | |
b813574b | 29017 | @endif expect |
3866be5d | 29018 | |
b813574b PB |
29019 | .PHONY: install-expect maybe-install-expect |
29020 | maybe-install-expect: | |
29021 | @if expect | |
29022 | maybe-install-expect: install-expect | |
16ae0395 | 29023 | |
b813574b | 29024 | install-expect: installdirs |
0aed8855 | 29025 | @: $(MAKE); $(unstage) |
b40e3958 L |
29026 | @r=`${PWD_COMMAND}`; export r; \ |
29027 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29028 | $(HOST_EXPORTS) \ |
b00612cc | 29029 | (cd $(HOST_SUBDIR)/expect && \ |
2da12f12 | 29030 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d | 29031 | |
b813574b | 29032 | @endif expect |
3866be5d | 29033 | |
4fa63067 NN |
29034 | # Other targets (info, dvi, etc.) |
29035 | ||
b813574b PB |
29036 | .PHONY: maybe-info-expect info-expect |
29037 | maybe-info-expect: | |
29038 | @if expect | |
29039 | maybe-info-expect: info-expect | |
4fa63067 | 29040 | |
b813574b PB |
29041 | info-expect: \ |
29042 | configure-expect | |
0aed8855 | 29043 | @: $(MAKE); $(unstage) |
b813574b | 29044 | @[ -f ./expect/Makefile ] || exit 0; \ |
b40e3958 L |
29045 | r=`${PWD_COMMAND}`; export r; \ |
29046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29047 | $(HOST_EXPORTS) \ |
72b2455a | 29048 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29049 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29050 | done; \ | |
b813574b | 29051 | echo "Doing info in expect" ; \ |
b00612cc | 29052 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29053 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29054 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29055 | "RANLIB=$${RANLIB}" \ | |
29056 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29057 | info) \ |
e2b9e2dc NN |
29058 | || exit 1 |
29059 | ||
b813574b | 29060 | @endif expect |
4fa63067 | 29061 | |
b813574b PB |
29062 | .PHONY: maybe-dvi-expect dvi-expect |
29063 | maybe-dvi-expect: | |
29064 | @if expect | |
29065 | maybe-dvi-expect: dvi-expect | |
4fa63067 | 29066 | |
b813574b PB |
29067 | dvi-expect: \ |
29068 | configure-expect | |
0aed8855 | 29069 | @: $(MAKE); $(unstage) |
b813574b | 29070 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 | 29071 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29072 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29073 | $(HOST_EXPORTS) \ |
72b2455a | 29074 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29075 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29076 | done; \ | |
b813574b | 29077 | echo "Doing dvi in expect" ; \ |
b00612cc | 29078 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29079 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29080 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29081 | "RANLIB=$${RANLIB}" \ | |
29082 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29083 | dvi) \ |
4fa63067 | 29084 | || exit 1 |
3866be5d | 29085 | |
b813574b | 29086 | @endif expect |
3866be5d | 29087 | |
6d389afc MS |
29088 | .PHONY: maybe-html-expect html-expect |
29089 | maybe-html-expect: | |
29090 | @if expect | |
29091 | maybe-html-expect: html-expect | |
29092 | ||
29093 | html-expect: \ | |
29094 | configure-expect | |
0aed8855 | 29095 | @: $(MAKE); $(unstage) |
6d389afc MS |
29096 | @[ -f ./expect/Makefile ] || exit 0; \ |
29097 | r=`${PWD_COMMAND}`; export r; \ | |
29098 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29099 | $(HOST_EXPORTS) \ |
29100 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
29101 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29102 | done; \ | |
29103 | echo "Doing html in expect" ; \ | |
b00612cc | 29104 | (cd $(HOST_SUBDIR)/expect && \ |
6d389afc MS |
29105 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29106 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29107 | "RANLIB=$${RANLIB}" \ | |
29108 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29109 | html) \ | |
29110 | || exit 1 | |
29111 | ||
29112 | @endif expect | |
29113 | ||
b813574b PB |
29114 | .PHONY: maybe-TAGS-expect TAGS-expect |
29115 | maybe-TAGS-expect: | |
29116 | @if expect | |
29117 | maybe-TAGS-expect: TAGS-expect | |
4fa63067 | 29118 | |
b813574b PB |
29119 | TAGS-expect: \ |
29120 | configure-expect | |
0aed8855 | 29121 | @: $(MAKE); $(unstage) |
b813574b | 29122 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 | 29123 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29124 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29125 | $(HOST_EXPORTS) \ |
72b2455a | 29126 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29127 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29128 | done; \ | |
b813574b | 29129 | echo "Doing TAGS in expect" ; \ |
b00612cc | 29130 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29131 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29132 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29133 | "RANLIB=$${RANLIB}" \ | |
29134 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29135 | TAGS) \ |
4fa63067 | 29136 | || exit 1 |
3866be5d | 29137 | |
b813574b | 29138 | @endif expect |
3866be5d | 29139 | |
b813574b PB |
29140 | .PHONY: maybe-install-info-expect install-info-expect |
29141 | maybe-install-info-expect: | |
29142 | @if expect | |
29143 | maybe-install-info-expect: install-info-expect | |
16ae0395 | 29144 | |
b813574b PB |
29145 | install-info-expect: \ |
29146 | configure-expect \ | |
29147 | info-expect | |
0aed8855 | 29148 | @: $(MAKE); $(unstage) |
b813574b | 29149 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 NN |
29150 | r=`${PWD_COMMAND}`; export r; \ |
29151 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29152 | $(HOST_EXPORTS) \ |
72b2455a | 29153 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29154 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29155 | done; \ | |
b813574b | 29156 | echo "Doing install-info in expect" ; \ |
b00612cc | 29157 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29158 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29159 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29160 | "RANLIB=$${RANLIB}" \ | |
29161 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29162 | install-info) \ |
4fa63067 NN |
29163 | || exit 1 |
29164 | ||
b813574b | 29165 | @endif expect |
4fa63067 | 29166 | |
108a6f8e CD |
29167 | .PHONY: maybe-install-html-expect install-html-expect |
29168 | maybe-install-html-expect: | |
29169 | @if expect | |
29170 | maybe-install-html-expect: install-html-expect | |
29171 | ||
29172 | install-html-expect: \ | |
29173 | configure-expect \ | |
29174 | html-expect | |
29175 | @: $(MAKE); $(unstage) | |
29176 | @[ -f ./expect/Makefile ] || exit 0; \ | |
29177 | r=`${PWD_COMMAND}`; export r; \ | |
29178 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29179 | $(HOST_EXPORTS) \ | |
29180 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
29181 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29182 | done; \ | |
29183 | echo "Doing install-html in expect" ; \ | |
29184 | (cd $(HOST_SUBDIR)/expect && \ | |
29185 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29186 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29187 | "RANLIB=$${RANLIB}" \ | |
29188 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29189 | install-html) \ | |
29190 | || exit 1 | |
29191 | ||
29192 | @endif expect | |
29193 | ||
b813574b PB |
29194 | .PHONY: maybe-installcheck-expect installcheck-expect |
29195 | maybe-installcheck-expect: | |
29196 | @if expect | |
29197 | maybe-installcheck-expect: installcheck-expect | |
4fa63067 | 29198 | |
b813574b PB |
29199 | installcheck-expect: \ |
29200 | configure-expect | |
0aed8855 | 29201 | @: $(MAKE); $(unstage) |
b813574b | 29202 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 NN |
29203 | r=`${PWD_COMMAND}`; export r; \ |
29204 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29205 | $(HOST_EXPORTS) \ |
72b2455a | 29206 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29207 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29208 | done; \ | |
b813574b | 29209 | echo "Doing installcheck in expect" ; \ |
b00612cc | 29210 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29211 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29212 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29213 | "RANLIB=$${RANLIB}" \ | |
29214 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29215 | installcheck) \ |
4fa63067 NN |
29216 | || exit 1 |
29217 | ||
b813574b | 29218 | @endif expect |
4fa63067 | 29219 | |
b813574b PB |
29220 | .PHONY: maybe-mostlyclean-expect mostlyclean-expect |
29221 | maybe-mostlyclean-expect: | |
29222 | @if expect | |
29223 | maybe-mostlyclean-expect: mostlyclean-expect | |
4fa63067 | 29224 | |
b813574b | 29225 | mostlyclean-expect: |
0aed8855 | 29226 | @: $(MAKE); $(unstage) |
b813574b | 29227 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 NN |
29228 | r=`${PWD_COMMAND}`; export r; \ |
29229 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29230 | $(HOST_EXPORTS) \ |
72b2455a | 29231 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29232 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29233 | done; \ | |
b813574b | 29234 | echo "Doing mostlyclean in expect" ; \ |
b00612cc | 29235 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29236 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29237 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29238 | "RANLIB=$${RANLIB}" \ | |
29239 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29240 | mostlyclean) \ |
4fa63067 NN |
29241 | || exit 1 |
29242 | ||
b813574b | 29243 | @endif expect |
4fa63067 | 29244 | |
b813574b PB |
29245 | .PHONY: maybe-clean-expect clean-expect |
29246 | maybe-clean-expect: | |
29247 | @if expect | |
29248 | maybe-clean-expect: clean-expect | |
4fa63067 | 29249 | |
b813574b | 29250 | clean-expect: |
0aed8855 | 29251 | @: $(MAKE); $(unstage) |
b813574b | 29252 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 NN |
29253 | r=`${PWD_COMMAND}`; export r; \ |
29254 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29255 | $(HOST_EXPORTS) \ |
72b2455a | 29256 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29257 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29258 | done; \ | |
b813574b | 29259 | echo "Doing clean in expect" ; \ |
b00612cc | 29260 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29261 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29262 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29263 | "RANLIB=$${RANLIB}" \ | |
29264 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29265 | clean) \ |
4fa63067 NN |
29266 | || exit 1 |
29267 | ||
b813574b | 29268 | @endif expect |
4fa63067 | 29269 | |
b813574b PB |
29270 | .PHONY: maybe-distclean-expect distclean-expect |
29271 | maybe-distclean-expect: | |
29272 | @if expect | |
29273 | maybe-distclean-expect: distclean-expect | |
4fa63067 | 29274 | |
b813574b | 29275 | distclean-expect: |
0aed8855 | 29276 | @: $(MAKE); $(unstage) |
b813574b | 29277 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 NN |
29278 | r=`${PWD_COMMAND}`; export r; \ |
29279 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29280 | $(HOST_EXPORTS) \ |
72b2455a | 29281 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29282 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29283 | done; \ | |
b813574b | 29284 | echo "Doing distclean in expect" ; \ |
b00612cc | 29285 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29286 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29287 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29288 | "RANLIB=$${RANLIB}" \ | |
29289 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29290 | distclean) \ |
4fa63067 NN |
29291 | || exit 1 |
29292 | ||
b813574b | 29293 | @endif expect |
4fa63067 | 29294 | |
b813574b PB |
29295 | .PHONY: maybe-maintainer-clean-expect maintainer-clean-expect |
29296 | maybe-maintainer-clean-expect: | |
29297 | @if expect | |
29298 | maybe-maintainer-clean-expect: maintainer-clean-expect | |
4fa63067 | 29299 | |
b813574b | 29300 | maintainer-clean-expect: |
0aed8855 | 29301 | @: $(MAKE); $(unstage) |
b813574b | 29302 | @[ -f ./expect/Makefile ] || exit 0; \ |
4fa63067 | 29303 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29305 | $(HOST_EXPORTS) \ |
72b2455a | 29306 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29307 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29308 | done; \ | |
b813574b | 29309 | echo "Doing maintainer-clean in expect" ; \ |
b00612cc | 29310 | (cd $(HOST_SUBDIR)/expect && \ |
4fa63067 NN |
29311 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29312 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29313 | "RANLIB=$${RANLIB}" \ | |
29314 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29315 | maintainer-clean) \ |
4fa63067 | 29316 | || exit 1 |
3866be5d | 29317 | |
b813574b | 29318 | @endif expect |
3866be5d | 29319 | |
4fa63067 | 29320 | |
a7254363 | 29321 | |
b813574b PB |
29322 | .PHONY: configure-guile maybe-configure-guile |
29323 | maybe-configure-guile: | |
29324 | @if guile | |
29325 | maybe-configure-guile: configure-guile | |
c52c6897 | 29326 | configure-guile: |
0aed8855 | 29327 | @: $(MAKE); $(unstage) |
c52c6897 | 29328 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29329 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
29330 | test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \ |
29331 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \ | |
378fce5b | 29332 | $(HOST_EXPORTS) \ |
a7254363 PB |
29333 | echo Configuring in $(HOST_SUBDIR)/guile; \ |
29334 | cd "$(HOST_SUBDIR)/guile" || exit 1; \ | |
e2b9e2dc | 29335 | case $(srcdir) in \ |
b00612cc PB |
29336 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
29337 | *) topdir=`echo $(HOST_SUBDIR)/guile/ | \ | |
29338 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 29339 | esac; \ |
b00612cc PB |
29340 | srcdiroption="--srcdir=$${topdir}/guile"; \ |
29341 | libsrcdir="$$s/guile"; \ | |
e2b9e2dc | 29342 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 29343 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 29344 | || exit 1 |
b813574b | 29345 | @endif guile |
e2b9e2dc | 29346 | |
a7254363 PB |
29347 | |
29348 | ||
d545f33b PB |
29349 | |
29350 | ||
b813574b PB |
29351 | .PHONY: all-guile maybe-all-guile |
29352 | maybe-all-guile: | |
29353 | @if guile | |
d27cc32e | 29354 | TARGET-guile=all |
b813574b PB |
29355 | maybe-all-guile: all-guile |
29356 | all-guile: configure-guile | |
0aed8855 | 29357 | @: $(MAKE); $(unstage) |
b40e3958 L |
29358 | @r=`${PWD_COMMAND}`; export r; \ |
29359 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29360 | $(HOST_EXPORTS) \ |
b00612cc PB |
29361 | (cd $(HOST_SUBDIR)/guile && \ |
29362 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-guile)) | |
b813574b | 29363 | @endif guile |
3866be5d | 29364 | |
a7254363 | 29365 | |
d545f33b PB |
29366 | |
29367 | ||
b813574b PB |
29368 | .PHONY: check-guile maybe-check-guile |
29369 | maybe-check-guile: | |
29370 | @if guile | |
29371 | maybe-check-guile: check-guile | |
3866be5d | 29372 | |
b813574b | 29373 | check-guile: |
0aed8855 | 29374 | @: $(MAKE); $(unstage) |
b40e3958 L |
29375 | @r=`${PWD_COMMAND}`; export r; \ |
29376 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29377 | $(HOST_EXPORTS) \ |
b00612cc PB |
29378 | (cd $(HOST_SUBDIR)/guile && \ |
29379 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 29380 | |
b813574b | 29381 | @endif guile |
16ae0395 | 29382 | |
b813574b PB |
29383 | .PHONY: install-guile maybe-install-guile |
29384 | maybe-install-guile: | |
29385 | @if guile | |
29386 | maybe-install-guile: install-guile | |
29387 | ||
29388 | install-guile: installdirs | |
0aed8855 | 29389 | @: $(MAKE); $(unstage) |
b40e3958 L |
29390 | @r=`${PWD_COMMAND}`; export r; \ |
29391 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29392 | $(HOST_EXPORTS) \ |
b00612cc | 29393 | (cd $(HOST_SUBDIR)/guile && \ |
2da12f12 | 29394 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
4fa63067 | 29395 | |
b813574b | 29396 | @endif guile |
4fa63067 NN |
29397 | |
29398 | # Other targets (info, dvi, etc.) | |
29399 | ||
b813574b PB |
29400 | .PHONY: maybe-info-guile info-guile |
29401 | maybe-info-guile: | |
29402 | @if guile | |
29403 | maybe-info-guile: info-guile | |
4fa63067 | 29404 | |
b813574b PB |
29405 | info-guile: \ |
29406 | configure-guile | |
0aed8855 | 29407 | @: $(MAKE); $(unstage) |
b813574b | 29408 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29409 | r=`${PWD_COMMAND}`; export r; \ |
29410 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29411 | $(HOST_EXPORTS) \ |
72b2455a | 29412 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29413 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29414 | done; \ | |
b813574b | 29415 | echo "Doing info in guile" ; \ |
b00612cc | 29416 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29417 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29418 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29419 | "RANLIB=$${RANLIB}" \ | |
29420 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29421 | info) \ |
4fa63067 NN |
29422 | || exit 1 |
29423 | ||
b813574b | 29424 | @endif guile |
4fa63067 | 29425 | |
b813574b PB |
29426 | .PHONY: maybe-dvi-guile dvi-guile |
29427 | maybe-dvi-guile: | |
29428 | @if guile | |
29429 | maybe-dvi-guile: dvi-guile | |
4fa63067 | 29430 | |
b813574b PB |
29431 | dvi-guile: \ |
29432 | configure-guile | |
0aed8855 | 29433 | @: $(MAKE); $(unstage) |
b813574b | 29434 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29435 | r=`${PWD_COMMAND}`; export r; \ |
29436 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29437 | $(HOST_EXPORTS) \ |
72b2455a | 29438 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29439 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29440 | done; \ | |
b813574b | 29441 | echo "Doing dvi in guile" ; \ |
b00612cc | 29442 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29443 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29444 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29445 | "RANLIB=$${RANLIB}" \ | |
29446 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29447 | dvi) \ |
4fa63067 NN |
29448 | || exit 1 |
29449 | ||
b813574b | 29450 | @endif guile |
4fa63067 | 29451 | |
6d389afc MS |
29452 | .PHONY: maybe-html-guile html-guile |
29453 | maybe-html-guile: | |
29454 | @if guile | |
29455 | maybe-html-guile: html-guile | |
29456 | ||
29457 | html-guile: \ | |
29458 | configure-guile | |
0aed8855 | 29459 | @: $(MAKE); $(unstage) |
6d389afc MS |
29460 | @[ -f ./guile/Makefile ] || exit 0; \ |
29461 | r=`${PWD_COMMAND}`; export r; \ | |
29462 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29463 | $(HOST_EXPORTS) \ |
29464 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
29465 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29466 | done; \ | |
29467 | echo "Doing html in guile" ; \ | |
b00612cc | 29468 | (cd $(HOST_SUBDIR)/guile && \ |
6d389afc MS |
29469 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29470 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29471 | "RANLIB=$${RANLIB}" \ | |
29472 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29473 | html) \ | |
29474 | || exit 1 | |
29475 | ||
29476 | @endif guile | |
29477 | ||
b813574b PB |
29478 | .PHONY: maybe-TAGS-guile TAGS-guile |
29479 | maybe-TAGS-guile: | |
29480 | @if guile | |
29481 | maybe-TAGS-guile: TAGS-guile | |
4fa63067 | 29482 | |
b813574b PB |
29483 | TAGS-guile: \ |
29484 | configure-guile | |
0aed8855 | 29485 | @: $(MAKE); $(unstage) |
b813574b | 29486 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29487 | r=`${PWD_COMMAND}`; export r; \ |
29488 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29489 | $(HOST_EXPORTS) \ |
72b2455a | 29490 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29491 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29492 | done; \ | |
b813574b | 29493 | echo "Doing TAGS in guile" ; \ |
b00612cc | 29494 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29495 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29496 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29497 | "RANLIB=$${RANLIB}" \ | |
29498 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29499 | TAGS) \ |
4fa63067 NN |
29500 | || exit 1 |
29501 | ||
b813574b | 29502 | @endif guile |
4fa63067 | 29503 | |
b813574b PB |
29504 | .PHONY: maybe-install-info-guile install-info-guile |
29505 | maybe-install-info-guile: | |
29506 | @if guile | |
29507 | maybe-install-info-guile: install-info-guile | |
4fa63067 | 29508 | |
b813574b PB |
29509 | install-info-guile: \ |
29510 | configure-guile \ | |
29511 | info-guile | |
0aed8855 | 29512 | @: $(MAKE); $(unstage) |
b813574b | 29513 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29514 | r=`${PWD_COMMAND}`; export r; \ |
29515 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29516 | $(HOST_EXPORTS) \ |
72b2455a | 29517 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29518 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29519 | done; \ | |
b813574b | 29520 | echo "Doing install-info in guile" ; \ |
b00612cc | 29521 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29522 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29523 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29524 | "RANLIB=$${RANLIB}" \ | |
29525 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29526 | install-info) \ |
4fa63067 NN |
29527 | || exit 1 |
29528 | ||
b813574b | 29529 | @endif guile |
4fa63067 | 29530 | |
108a6f8e CD |
29531 | .PHONY: maybe-install-html-guile install-html-guile |
29532 | maybe-install-html-guile: | |
29533 | @if guile | |
29534 | maybe-install-html-guile: install-html-guile | |
29535 | ||
29536 | install-html-guile: \ | |
29537 | configure-guile \ | |
29538 | html-guile | |
29539 | @: $(MAKE); $(unstage) | |
29540 | @[ -f ./guile/Makefile ] || exit 0; \ | |
29541 | r=`${PWD_COMMAND}`; export r; \ | |
29542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29543 | $(HOST_EXPORTS) \ | |
29544 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
29545 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29546 | done; \ | |
29547 | echo "Doing install-html in guile" ; \ | |
29548 | (cd $(HOST_SUBDIR)/guile && \ | |
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}" \ | |
29553 | install-html) \ | |
29554 | || exit 1 | |
29555 | ||
29556 | @endif guile | |
29557 | ||
b813574b PB |
29558 | .PHONY: maybe-installcheck-guile installcheck-guile |
29559 | maybe-installcheck-guile: | |
29560 | @if guile | |
29561 | maybe-installcheck-guile: installcheck-guile | |
4fa63067 | 29562 | |
b813574b PB |
29563 | installcheck-guile: \ |
29564 | configure-guile | |
0aed8855 | 29565 | @: $(MAKE); $(unstage) |
b813574b | 29566 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29567 | r=`${PWD_COMMAND}`; export r; \ |
29568 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29569 | $(HOST_EXPORTS) \ |
72b2455a | 29570 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29571 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29572 | done; \ | |
b813574b | 29573 | echo "Doing installcheck in guile" ; \ |
b00612cc | 29574 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29575 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29576 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29577 | "RANLIB=$${RANLIB}" \ | |
29578 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29579 | installcheck) \ |
4fa63067 NN |
29580 | || exit 1 |
29581 | ||
b813574b | 29582 | @endif guile |
4fa63067 | 29583 | |
b813574b PB |
29584 | .PHONY: maybe-mostlyclean-guile mostlyclean-guile |
29585 | maybe-mostlyclean-guile: | |
29586 | @if guile | |
29587 | maybe-mostlyclean-guile: mostlyclean-guile | |
4fa63067 | 29588 | |
b813574b | 29589 | mostlyclean-guile: |
0aed8855 | 29590 | @: $(MAKE); $(unstage) |
b813574b | 29591 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29592 | r=`${PWD_COMMAND}`; export r; \ |
29593 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29594 | $(HOST_EXPORTS) \ |
72b2455a | 29595 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29596 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29597 | done; \ | |
b813574b | 29598 | echo "Doing mostlyclean in guile" ; \ |
b00612cc | 29599 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29600 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29601 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29602 | "RANLIB=$${RANLIB}" \ | |
29603 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29604 | mostlyclean) \ |
4fa63067 NN |
29605 | || exit 1 |
29606 | ||
b813574b | 29607 | @endif guile |
4fa63067 | 29608 | |
b813574b PB |
29609 | .PHONY: maybe-clean-guile clean-guile |
29610 | maybe-clean-guile: | |
29611 | @if guile | |
29612 | maybe-clean-guile: clean-guile | |
4fa63067 | 29613 | |
b813574b | 29614 | clean-guile: |
0aed8855 | 29615 | @: $(MAKE); $(unstage) |
b813574b | 29616 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29617 | r=`${PWD_COMMAND}`; export r; \ |
29618 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29619 | $(HOST_EXPORTS) \ |
72b2455a | 29620 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29621 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29622 | done; \ | |
b813574b | 29623 | echo "Doing clean in guile" ; \ |
b00612cc | 29624 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29625 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29626 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29627 | "RANLIB=$${RANLIB}" \ | |
29628 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29629 | clean) \ |
4fa63067 NN |
29630 | || exit 1 |
29631 | ||
b813574b | 29632 | @endif guile |
4fa63067 | 29633 | |
b813574b PB |
29634 | .PHONY: maybe-distclean-guile distclean-guile |
29635 | maybe-distclean-guile: | |
29636 | @if guile | |
29637 | maybe-distclean-guile: distclean-guile | |
4fa63067 | 29638 | |
b813574b | 29639 | distclean-guile: |
0aed8855 | 29640 | @: $(MAKE); $(unstage) |
b813574b | 29641 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29642 | r=`${PWD_COMMAND}`; export r; \ |
29643 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29644 | $(HOST_EXPORTS) \ |
72b2455a | 29645 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29646 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29647 | done; \ | |
b813574b | 29648 | echo "Doing distclean in guile" ; \ |
b00612cc | 29649 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29650 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29651 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29652 | "RANLIB=$${RANLIB}" \ | |
29653 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29654 | distclean) \ |
4fa63067 NN |
29655 | || exit 1 |
29656 | ||
b813574b | 29657 | @endif guile |
4fa63067 | 29658 | |
b813574b PB |
29659 | .PHONY: maybe-maintainer-clean-guile maintainer-clean-guile |
29660 | maybe-maintainer-clean-guile: | |
29661 | @if guile | |
29662 | maybe-maintainer-clean-guile: maintainer-clean-guile | |
4fa63067 | 29663 | |
b813574b | 29664 | maintainer-clean-guile: |
0aed8855 | 29665 | @: $(MAKE); $(unstage) |
b813574b | 29666 | @[ -f ./guile/Makefile ] || exit 0; \ |
4fa63067 NN |
29667 | r=`${PWD_COMMAND}`; export r; \ |
29668 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29669 | $(HOST_EXPORTS) \ |
72b2455a | 29670 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29671 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29672 | done; \ | |
b813574b | 29673 | echo "Doing maintainer-clean in guile" ; \ |
b00612cc | 29674 | (cd $(HOST_SUBDIR)/guile && \ |
4fa63067 NN |
29675 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29676 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29677 | "RANLIB=$${RANLIB}" \ | |
29678 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29679 | maintainer-clean) \ |
4fa63067 NN |
29680 | || exit 1 |
29681 | ||
b813574b | 29682 | @endif guile |
3866be5d NN |
29683 | |
29684 | ||
a7254363 | 29685 | |
b813574b PB |
29686 | .PHONY: configure-tk maybe-configure-tk |
29687 | maybe-configure-tk: | |
29688 | @if tk | |
29689 | maybe-configure-tk: configure-tk | |
c52c6897 | 29690 | configure-tk: |
0aed8855 | 29691 | @: $(MAKE); $(unstage) |
c52c6897 | 29692 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29693 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
29694 | test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \ |
29695 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \ | |
378fce5b | 29696 | $(HOST_EXPORTS) \ |
a7254363 PB |
29697 | echo Configuring in $(HOST_SUBDIR)/tk; \ |
29698 | cd "$(HOST_SUBDIR)/tk" || exit 1; \ | |
e2b9e2dc | 29699 | case $(srcdir) in \ |
b00612cc PB |
29700 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
29701 | *) topdir=`echo $(HOST_SUBDIR)/tk/ | \ | |
29702 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 29703 | esac; \ |
b00612cc PB |
29704 | srcdiroption="--srcdir=$${topdir}/tk"; \ |
29705 | libsrcdir="$$s/tk"; \ | |
e2b9e2dc | 29706 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 29707 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 29708 | || exit 1 |
b813574b | 29709 | @endif tk |
e2b9e2dc | 29710 | |
a7254363 PB |
29711 | |
29712 | ||
d545f33b PB |
29713 | |
29714 | ||
b813574b PB |
29715 | .PHONY: all-tk maybe-all-tk |
29716 | maybe-all-tk: | |
29717 | @if tk | |
d27cc32e | 29718 | TARGET-tk=all |
b813574b PB |
29719 | maybe-all-tk: all-tk |
29720 | all-tk: configure-tk | |
0aed8855 | 29721 | @: $(MAKE); $(unstage) |
b40e3958 L |
29722 | @r=`${PWD_COMMAND}`; export r; \ |
29723 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29724 | $(HOST_EXPORTS) \ |
b00612cc PB |
29725 | (cd $(HOST_SUBDIR)/tk && \ |
29726 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-tk)) | |
b813574b | 29727 | @endif tk |
3866be5d | 29728 | |
a7254363 | 29729 | |
d545f33b PB |
29730 | |
29731 | ||
b813574b PB |
29732 | .PHONY: check-tk maybe-check-tk |
29733 | maybe-check-tk: | |
29734 | @if tk | |
29735 | maybe-check-tk: check-tk | |
3866be5d | 29736 | |
b813574b | 29737 | check-tk: |
0aed8855 | 29738 | @: $(MAKE); $(unstage) |
b40e3958 L |
29739 | @r=`${PWD_COMMAND}`; export r; \ |
29740 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29741 | $(HOST_EXPORTS) \ |
b00612cc PB |
29742 | (cd $(HOST_SUBDIR)/tk && \ |
29743 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d | 29744 | |
b813574b | 29745 | @endif tk |
3866be5d | 29746 | |
b813574b PB |
29747 | .PHONY: install-tk maybe-install-tk |
29748 | maybe-install-tk: | |
29749 | @if tk | |
29750 | maybe-install-tk: install-tk | |
16ae0395 | 29751 | |
b813574b | 29752 | install-tk: installdirs |
0aed8855 | 29753 | @: $(MAKE); $(unstage) |
b40e3958 L |
29754 | @r=`${PWD_COMMAND}`; export r; \ |
29755 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29756 | $(HOST_EXPORTS) \ |
b00612cc | 29757 | (cd $(HOST_SUBDIR)/tk && \ |
2da12f12 | 29758 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d | 29759 | |
b813574b | 29760 | @endif tk |
3866be5d | 29761 | |
4fa63067 NN |
29762 | # Other targets (info, dvi, etc.) |
29763 | ||
b813574b PB |
29764 | .PHONY: maybe-info-tk info-tk |
29765 | maybe-info-tk: | |
29766 | @if tk | |
29767 | maybe-info-tk: info-tk | |
4fa63067 | 29768 | |
b813574b PB |
29769 | info-tk: \ |
29770 | configure-tk | |
0aed8855 | 29771 | @: $(MAKE); $(unstage) |
b813574b | 29772 | @[ -f ./tk/Makefile ] || exit 0; \ |
b40e3958 L |
29773 | r=`${PWD_COMMAND}`; export r; \ |
29774 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29775 | $(HOST_EXPORTS) \ |
72b2455a | 29776 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29777 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29778 | done; \ | |
b813574b | 29779 | echo "Doing info in tk" ; \ |
b00612cc | 29780 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29781 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29782 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29783 | "RANLIB=$${RANLIB}" \ | |
29784 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29785 | info) \ |
e2b9e2dc NN |
29786 | || exit 1 |
29787 | ||
b813574b | 29788 | @endif tk |
4fa63067 | 29789 | |
b813574b PB |
29790 | .PHONY: maybe-dvi-tk dvi-tk |
29791 | maybe-dvi-tk: | |
29792 | @if tk | |
29793 | maybe-dvi-tk: dvi-tk | |
4fa63067 | 29794 | |
b813574b PB |
29795 | dvi-tk: \ |
29796 | configure-tk | |
0aed8855 | 29797 | @: $(MAKE); $(unstage) |
b813574b | 29798 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 | 29799 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29800 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29801 | $(HOST_EXPORTS) \ |
72b2455a | 29802 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29803 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29804 | done; \ | |
b813574b | 29805 | echo "Doing dvi in tk" ; \ |
b00612cc | 29806 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29807 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29808 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29809 | "RANLIB=$${RANLIB}" \ | |
29810 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29811 | dvi) \ |
4fa63067 | 29812 | || exit 1 |
3866be5d | 29813 | |
b813574b | 29814 | @endif tk |
3866be5d | 29815 | |
6d389afc MS |
29816 | .PHONY: maybe-html-tk html-tk |
29817 | maybe-html-tk: | |
29818 | @if tk | |
29819 | maybe-html-tk: html-tk | |
29820 | ||
29821 | html-tk: \ | |
29822 | configure-tk | |
0aed8855 | 29823 | @: $(MAKE); $(unstage) |
6d389afc MS |
29824 | @[ -f ./tk/Makefile ] || exit 0; \ |
29825 | r=`${PWD_COMMAND}`; export r; \ | |
29826 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
29827 | $(HOST_EXPORTS) \ |
29828 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
29829 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29830 | done; \ | |
29831 | echo "Doing html in tk" ; \ | |
b00612cc | 29832 | (cd $(HOST_SUBDIR)/tk && \ |
6d389afc MS |
29833 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29834 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29835 | "RANLIB=$${RANLIB}" \ | |
29836 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29837 | html) \ | |
29838 | || exit 1 | |
29839 | ||
29840 | @endif tk | |
29841 | ||
b813574b PB |
29842 | .PHONY: maybe-TAGS-tk TAGS-tk |
29843 | maybe-TAGS-tk: | |
29844 | @if tk | |
29845 | maybe-TAGS-tk: TAGS-tk | |
4fa63067 | 29846 | |
b813574b PB |
29847 | TAGS-tk: \ |
29848 | configure-tk | |
0aed8855 | 29849 | @: $(MAKE); $(unstage) |
b813574b | 29850 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 | 29851 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 29852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 29853 | $(HOST_EXPORTS) \ |
72b2455a | 29854 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29855 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29856 | done; \ | |
b813574b | 29857 | echo "Doing TAGS in tk" ; \ |
b00612cc | 29858 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29859 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29860 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29861 | "RANLIB=$${RANLIB}" \ | |
29862 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29863 | TAGS) \ |
4fa63067 | 29864 | || exit 1 |
3866be5d | 29865 | |
b813574b | 29866 | @endif tk |
3866be5d | 29867 | |
b813574b PB |
29868 | .PHONY: maybe-install-info-tk install-info-tk |
29869 | maybe-install-info-tk: | |
29870 | @if tk | |
29871 | maybe-install-info-tk: install-info-tk | |
4fa63067 | 29872 | |
b813574b PB |
29873 | install-info-tk: \ |
29874 | configure-tk \ | |
29875 | info-tk | |
0aed8855 | 29876 | @: $(MAKE); $(unstage) |
b813574b | 29877 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 NN |
29878 | r=`${PWD_COMMAND}`; export r; \ |
29879 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29880 | $(HOST_EXPORTS) \ |
72b2455a | 29881 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29882 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29883 | done; \ | |
b813574b | 29884 | echo "Doing install-info in tk" ; \ |
b00612cc | 29885 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29886 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29887 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29888 | "RANLIB=$${RANLIB}" \ | |
29889 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29890 | install-info) \ |
4fa63067 NN |
29891 | || exit 1 |
29892 | ||
b813574b | 29893 | @endif tk |
4fa63067 | 29894 | |
108a6f8e CD |
29895 | .PHONY: maybe-install-html-tk install-html-tk |
29896 | maybe-install-html-tk: | |
29897 | @if tk | |
29898 | maybe-install-html-tk: install-html-tk | |
29899 | ||
29900 | install-html-tk: \ | |
29901 | configure-tk \ | |
29902 | html-tk | |
29903 | @: $(MAKE); $(unstage) | |
29904 | @[ -f ./tk/Makefile ] || exit 0; \ | |
29905 | r=`${PWD_COMMAND}`; export r; \ | |
29906 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
29907 | $(HOST_EXPORTS) \ | |
29908 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ | |
29909 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
29910 | done; \ | |
29911 | echo "Doing install-html in tk" ; \ | |
29912 | (cd $(HOST_SUBDIR)/tk && \ | |
29913 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
29914 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29915 | "RANLIB=$${RANLIB}" \ | |
29916 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
29917 | install-html) \ | |
29918 | || exit 1 | |
29919 | ||
29920 | @endif tk | |
29921 | ||
b813574b PB |
29922 | .PHONY: maybe-installcheck-tk installcheck-tk |
29923 | maybe-installcheck-tk: | |
29924 | @if tk | |
29925 | maybe-installcheck-tk: installcheck-tk | |
4fa63067 | 29926 | |
b813574b PB |
29927 | installcheck-tk: \ |
29928 | configure-tk | |
0aed8855 | 29929 | @: $(MAKE); $(unstage) |
b813574b | 29930 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 NN |
29931 | r=`${PWD_COMMAND}`; export r; \ |
29932 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29933 | $(HOST_EXPORTS) \ |
72b2455a | 29934 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29935 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29936 | done; \ | |
b813574b | 29937 | echo "Doing installcheck in tk" ; \ |
b00612cc | 29938 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29939 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29940 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29941 | "RANLIB=$${RANLIB}" \ | |
29942 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29943 | installcheck) \ |
4fa63067 NN |
29944 | || exit 1 |
29945 | ||
b813574b | 29946 | @endif tk |
4fa63067 | 29947 | |
b813574b PB |
29948 | .PHONY: maybe-mostlyclean-tk mostlyclean-tk |
29949 | maybe-mostlyclean-tk: | |
29950 | @if tk | |
29951 | maybe-mostlyclean-tk: mostlyclean-tk | |
4fa63067 | 29952 | |
b813574b | 29953 | mostlyclean-tk: |
0aed8855 | 29954 | @: $(MAKE); $(unstage) |
b813574b | 29955 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 NN |
29956 | r=`${PWD_COMMAND}`; export r; \ |
29957 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29958 | $(HOST_EXPORTS) \ |
72b2455a | 29959 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29960 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29961 | done; \ | |
b813574b | 29962 | echo "Doing mostlyclean in tk" ; \ |
b00612cc | 29963 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29964 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29965 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29966 | "RANLIB=$${RANLIB}" \ | |
29967 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29968 | mostlyclean) \ |
4fa63067 NN |
29969 | || exit 1 |
29970 | ||
b813574b | 29971 | @endif tk |
4fa63067 | 29972 | |
b813574b PB |
29973 | .PHONY: maybe-clean-tk clean-tk |
29974 | maybe-clean-tk: | |
29975 | @if tk | |
29976 | maybe-clean-tk: clean-tk | |
4fa63067 | 29977 | |
b813574b | 29978 | clean-tk: |
0aed8855 | 29979 | @: $(MAKE); $(unstage) |
b813574b | 29980 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 NN |
29981 | r=`${PWD_COMMAND}`; export r; \ |
29982 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 29983 | $(HOST_EXPORTS) \ |
72b2455a | 29984 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
29985 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
29986 | done; \ | |
b813574b | 29987 | echo "Doing clean in tk" ; \ |
b00612cc | 29988 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
29989 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
29990 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
29991 | "RANLIB=$${RANLIB}" \ | |
29992 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 29993 | clean) \ |
4fa63067 NN |
29994 | || exit 1 |
29995 | ||
b813574b | 29996 | @endif tk |
4fa63067 | 29997 | |
b813574b PB |
29998 | .PHONY: maybe-distclean-tk distclean-tk |
29999 | maybe-distclean-tk: | |
30000 | @if tk | |
30001 | maybe-distclean-tk: distclean-tk | |
4fa63067 | 30002 | |
b813574b | 30003 | distclean-tk: |
0aed8855 | 30004 | @: $(MAKE); $(unstage) |
b813574b | 30005 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 NN |
30006 | r=`${PWD_COMMAND}`; export r; \ |
30007 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30008 | $(HOST_EXPORTS) \ |
72b2455a | 30009 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
30010 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30011 | done; \ | |
b813574b | 30012 | echo "Doing distclean in tk" ; \ |
b00612cc | 30013 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
30014 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30015 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30016 | "RANLIB=$${RANLIB}" \ | |
30017 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30018 | distclean) \ |
4fa63067 NN |
30019 | || exit 1 |
30020 | ||
b813574b | 30021 | @endif tk |
4fa63067 | 30022 | |
b813574b PB |
30023 | .PHONY: maybe-maintainer-clean-tk maintainer-clean-tk |
30024 | maybe-maintainer-clean-tk: | |
30025 | @if tk | |
30026 | maybe-maintainer-clean-tk: maintainer-clean-tk | |
16ae0395 | 30027 | |
b813574b | 30028 | maintainer-clean-tk: |
0aed8855 | 30029 | @: $(MAKE); $(unstage) |
b813574b | 30030 | @[ -f ./tk/Makefile ] || exit 0; \ |
4fa63067 | 30031 | r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 30032 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30033 | $(HOST_EXPORTS) \ |
72b2455a | 30034 | for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \ |
4fa63067 NN |
30035 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30036 | done; \ | |
b813574b | 30037 | echo "Doing maintainer-clean in tk" ; \ |
b00612cc | 30038 | (cd $(HOST_SUBDIR)/tk && \ |
4fa63067 NN |
30039 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30040 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30041 | "RANLIB=$${RANLIB}" \ | |
30042 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30043 | maintainer-clean) \ |
4fa63067 | 30044 | || exit 1 |
3866be5d | 30045 | |
b813574b | 30046 | @endif tk |
3866be5d | 30047 | |
4fa63067 | 30048 | |
a7254363 | 30049 | |
b813574b PB |
30050 | .PHONY: configure-libtermcap maybe-configure-libtermcap |
30051 | maybe-configure-libtermcap: | |
30052 | @if libtermcap | |
30053 | maybe-configure-libtermcap: configure-libtermcap | |
c52c6897 | 30054 | configure-libtermcap: |
0aed8855 | 30055 | @: $(MAKE); $(unstage) |
c52c6897 | 30056 | @r=`${PWD_COMMAND}`; export r; \ |
b813574b | 30057 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
30058 | test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \ |
30059 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \ | |
b813574b | 30060 | $(HOST_EXPORTS) \ |
a7254363 PB |
30061 | echo Configuring in $(HOST_SUBDIR)/libtermcap; \ |
30062 | cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \ | |
b813574b | 30063 | case $(srcdir) in \ |
b00612cc PB |
30064 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30065 | *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \ | |
30066 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
b813574b | 30067 | esac; \ |
b00612cc PB |
30068 | srcdiroption="--srcdir=$${topdir}/libtermcap"; \ |
30069 | libsrcdir="$$s/libtermcap"; \ | |
b813574b PB |
30070 | $(SHELL) $${libsrcdir}/configure \ |
30071 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
30072 | || exit 1 | |
30073 | @endif libtermcap | |
30074 | ||
a7254363 PB |
30075 | |
30076 | ||
d545f33b PB |
30077 | |
30078 | ||
b813574b PB |
30079 | .PHONY: all-libtermcap maybe-all-libtermcap |
30080 | maybe-all-libtermcap: | |
30081 | @if libtermcap | |
d27cc32e | 30082 | TARGET-libtermcap=all |
b813574b PB |
30083 | maybe-all-libtermcap: all-libtermcap |
30084 | all-libtermcap: configure-libtermcap | |
0aed8855 | 30085 | @: $(MAKE); $(unstage) |
b813574b PB |
30086 | @r=`${PWD_COMMAND}`; export r; \ |
30087 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b813574b | 30088 | $(HOST_EXPORTS) \ |
b00612cc PB |
30089 | (cd $(HOST_SUBDIR)/libtermcap && \ |
30090 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtermcap)) | |
b813574b PB |
30091 | @endif libtermcap |
30092 | ||
a7254363 | 30093 | |
d545f33b PB |
30094 | |
30095 | ||
b813574b PB |
30096 | .PHONY: check-libtermcap maybe-check-libtermcap |
30097 | maybe-check-libtermcap: | |
30098 | @if libtermcap | |
30099 | maybe-check-libtermcap: check-libtermcap | |
30100 | ||
30101 | check-libtermcap: | |
4fa63067 | 30102 | |
6bd3dfaa | 30103 | @endif libtermcap |
4fa63067 NN |
30104 | |
30105 | .PHONY: install-libtermcap maybe-install-libtermcap | |
30106 | maybe-install-libtermcap: | |
6bd3dfaa PB |
30107 | @if libtermcap |
30108 | maybe-install-libtermcap: install-libtermcap | |
4fa63067 NN |
30109 | |
30110 | install-libtermcap: installdirs | |
0aed8855 | 30111 | @: $(MAKE); $(unstage) |
b40e3958 L |
30112 | @r=`${PWD_COMMAND}`; export r; \ |
30113 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30114 | $(HOST_EXPORTS) \ |
b00612cc | 30115 | (cd $(HOST_SUBDIR)/libtermcap && \ |
2da12f12 | 30116 | $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d | 30117 | |
6bd3dfaa | 30118 | @endif libtermcap |
3866be5d | 30119 | |
4fa63067 | 30120 | # Other targets (info, dvi, etc.) |
16ae0395 | 30121 | |
4fa63067 NN |
30122 | .PHONY: maybe-info-libtermcap info-libtermcap |
30123 | maybe-info-libtermcap: | |
6bd3dfaa PB |
30124 | @if libtermcap |
30125 | maybe-info-libtermcap: info-libtermcap | |
4fa63067 NN |
30126 | |
30127 | info-libtermcap: \ | |
30128 | configure-libtermcap | |
0aed8855 | 30129 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30130 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
30131 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30132 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30133 | $(HOST_EXPORTS) \ |
b813574b | 30134 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30135 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30136 | done; \ | |
30137 | echo "Doing info in libtermcap" ; \ | |
b00612cc | 30138 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
30139 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30140 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30141 | "RANLIB=$${RANLIB}" \ | |
30142 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30143 | info) \ |
4fa63067 | 30144 | || exit 1 |
3866be5d | 30145 | |
6bd3dfaa | 30146 | @endif libtermcap |
3866be5d | 30147 | |
4fa63067 NN |
30148 | .PHONY: maybe-dvi-libtermcap dvi-libtermcap |
30149 | maybe-dvi-libtermcap: | |
6bd3dfaa PB |
30150 | @if libtermcap |
30151 | maybe-dvi-libtermcap: dvi-libtermcap | |
4fa63067 NN |
30152 | |
30153 | dvi-libtermcap: \ | |
30154 | configure-libtermcap | |
0aed8855 | 30155 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30156 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
30157 | r=`${PWD_COMMAND}`; export r; \ | |
30158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30159 | $(HOST_EXPORTS) \ |
b813574b | 30160 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30161 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30162 | done; \ | |
30163 | echo "Doing dvi in libtermcap" ; \ | |
b00612cc | 30164 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
30165 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30166 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30167 | "RANLIB=$${RANLIB}" \ | |
30168 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30169 | dvi) \ |
4fa63067 NN |
30170 | || exit 1 |
30171 | ||
6bd3dfaa | 30172 | @endif libtermcap |
4fa63067 | 30173 | |
6d389afc MS |
30174 | .PHONY: maybe-html-libtermcap html-libtermcap |
30175 | maybe-html-libtermcap: | |
30176 | @if libtermcap | |
30177 | maybe-html-libtermcap: html-libtermcap | |
30178 | ||
30179 | html-libtermcap: \ | |
30180 | configure-libtermcap | |
0aed8855 | 30181 | @: $(MAKE); $(unstage) |
6d389afc MS |
30182 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
30183 | r=`${PWD_COMMAND}`; export r; \ | |
30184 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
30185 | $(HOST_EXPORTS) \ |
30186 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30187 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30188 | done; \ | |
30189 | echo "Doing html in libtermcap" ; \ | |
b00612cc | 30190 | (cd $(HOST_SUBDIR)/libtermcap && \ |
6d389afc MS |
30191 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30192 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30193 | "RANLIB=$${RANLIB}" \ | |
30194 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30195 | html) \ | |
30196 | || exit 1 | |
30197 | ||
30198 | @endif libtermcap | |
30199 | ||
4fa63067 NN |
30200 | .PHONY: maybe-TAGS-libtermcap TAGS-libtermcap |
30201 | maybe-TAGS-libtermcap: | |
6bd3dfaa PB |
30202 | @if libtermcap |
30203 | maybe-TAGS-libtermcap: TAGS-libtermcap | |
4fa63067 NN |
30204 | |
30205 | TAGS-libtermcap: \ | |
30206 | configure-libtermcap | |
0aed8855 | 30207 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30208 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
30209 | r=`${PWD_COMMAND}`; export r; \ | |
30210 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30211 | $(HOST_EXPORTS) \ |
b813574b | 30212 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30213 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30214 | done; \ | |
30215 | echo "Doing TAGS in libtermcap" ; \ | |
b00612cc | 30216 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
30217 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30218 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30219 | "RANLIB=$${RANLIB}" \ | |
30220 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30221 | TAGS) \ |
4fa63067 NN |
30222 | || exit 1 |
30223 | ||
6bd3dfaa | 30224 | @endif libtermcap |
4fa63067 NN |
30225 | |
30226 | .PHONY: maybe-install-info-libtermcap install-info-libtermcap | |
30227 | maybe-install-info-libtermcap: | |
6bd3dfaa PB |
30228 | @if libtermcap |
30229 | maybe-install-info-libtermcap: install-info-libtermcap | |
4fa63067 NN |
30230 | |
30231 | install-info-libtermcap: \ | |
30232 | configure-libtermcap \ | |
30233 | info-libtermcap | |
0aed8855 | 30234 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30235 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
30236 | r=`${PWD_COMMAND}`; export r; \ | |
30237 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30238 | $(HOST_EXPORTS) \ |
b813574b | 30239 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30240 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30241 | done; \ | |
30242 | echo "Doing install-info in libtermcap" ; \ | |
b00612cc | 30243 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
30244 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30245 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30246 | "RANLIB=$${RANLIB}" \ | |
30247 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30248 | install-info) \ |
4fa63067 NN |
30249 | || exit 1 |
30250 | ||
6bd3dfaa | 30251 | @endif libtermcap |
4fa63067 | 30252 | |
108a6f8e CD |
30253 | .PHONY: maybe-install-html-libtermcap install-html-libtermcap |
30254 | maybe-install-html-libtermcap: | |
30255 | @if libtermcap | |
30256 | maybe-install-html-libtermcap: install-html-libtermcap | |
30257 | ||
30258 | install-html-libtermcap: \ | |
30259 | configure-libtermcap \ | |
30260 | html-libtermcap | |
30261 | @: $(MAKE); $(unstage) | |
30262 | @[ -f ./libtermcap/Makefile ] || exit 0; \ | |
30263 | r=`${PWD_COMMAND}`; export r; \ | |
30264 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30265 | $(HOST_EXPORTS) \ | |
30266 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30267 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30268 | done; \ | |
30269 | echo "Doing install-html in libtermcap" ; \ | |
30270 | (cd $(HOST_SUBDIR)/libtermcap && \ | |
30271 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30272 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30273 | "RANLIB=$${RANLIB}" \ | |
30274 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30275 | install-html) \ | |
30276 | || exit 1 | |
30277 | ||
30278 | @endif libtermcap | |
30279 | ||
4fa63067 NN |
30280 | .PHONY: maybe-installcheck-libtermcap installcheck-libtermcap |
30281 | maybe-installcheck-libtermcap: | |
6bd3dfaa PB |
30282 | @if libtermcap |
30283 | maybe-installcheck-libtermcap: installcheck-libtermcap | |
4fa63067 NN |
30284 | |
30285 | installcheck-libtermcap: \ | |
30286 | configure-libtermcap | |
0aed8855 | 30287 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30288 | @[ -f ./libtermcap/Makefile ] || exit 0; \ |
30289 | r=`${PWD_COMMAND}`; export r; \ | |
30290 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30291 | $(HOST_EXPORTS) \ |
b813574b | 30292 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30293 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30294 | done; \ | |
30295 | echo "Doing installcheck in libtermcap" ; \ | |
b00612cc | 30296 | (cd $(HOST_SUBDIR)/libtermcap && \ |
4fa63067 NN |
30297 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30298 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30299 | "RANLIB=$${RANLIB}" \ | |
30300 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30301 | installcheck) \ |
4fa63067 NN |
30302 | || exit 1 |
30303 | ||
6bd3dfaa | 30304 | @endif libtermcap |
4fa63067 NN |
30305 | |
30306 | .PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap | |
30307 | maybe-mostlyclean-libtermcap: | |
6bd3dfaa PB |
30308 | @if libtermcap |
30309 | maybe-mostlyclean-libtermcap: mostlyclean-libtermcap | |
4fa63067 NN |
30310 | |
30311 | # libtermcap doesn't support mostlyclean. | |
30312 | mostlyclean-libtermcap: | |
30313 | ||
6bd3dfaa | 30314 | @endif libtermcap |
4fa63067 NN |
30315 | |
30316 | .PHONY: maybe-clean-libtermcap clean-libtermcap | |
30317 | maybe-clean-libtermcap: | |
6bd3dfaa PB |
30318 | @if libtermcap |
30319 | maybe-clean-libtermcap: clean-libtermcap | |
4fa63067 NN |
30320 | |
30321 | # libtermcap doesn't support clean. | |
30322 | clean-libtermcap: | |
30323 | ||
6bd3dfaa | 30324 | @endif libtermcap |
4fa63067 NN |
30325 | |
30326 | .PHONY: maybe-distclean-libtermcap distclean-libtermcap | |
30327 | maybe-distclean-libtermcap: | |
6bd3dfaa PB |
30328 | @if libtermcap |
30329 | maybe-distclean-libtermcap: distclean-libtermcap | |
4fa63067 NN |
30330 | |
30331 | # libtermcap doesn't support distclean. | |
30332 | distclean-libtermcap: | |
30333 | ||
6bd3dfaa | 30334 | @endif libtermcap |
4fa63067 NN |
30335 | |
30336 | .PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap | |
30337 | maybe-maintainer-clean-libtermcap: | |
6bd3dfaa PB |
30338 | @if libtermcap |
30339 | maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap | |
4fa63067 NN |
30340 | |
30341 | # libtermcap doesn't support maintainer-clean. | |
30342 | maintainer-clean-libtermcap: | |
30343 | ||
6bd3dfaa | 30344 | @endif libtermcap |
4fa63067 NN |
30345 | |
30346 | ||
a7254363 | 30347 | |
4fa63067 NN |
30348 | .PHONY: configure-utils maybe-configure-utils |
30349 | maybe-configure-utils: | |
6bd3dfaa PB |
30350 | @if utils |
30351 | maybe-configure-utils: configure-utils | |
c52c6897 | 30352 | configure-utils: |
0aed8855 | 30353 | @: $(MAKE); $(unstage) |
c52c6897 | 30354 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 30355 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
30356 | test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \ |
30357 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \ | |
378fce5b | 30358 | $(HOST_EXPORTS) \ |
a7254363 PB |
30359 | echo Configuring in $(HOST_SUBDIR)/utils; \ |
30360 | cd "$(HOST_SUBDIR)/utils" || exit 1; \ | |
e2b9e2dc | 30361 | case $(srcdir) in \ |
b00612cc PB |
30362 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
30363 | *) topdir=`echo $(HOST_SUBDIR)/utils/ | \ | |
30364 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 30365 | esac; \ |
b00612cc PB |
30366 | srcdiroption="--srcdir=$${topdir}/utils"; \ |
30367 | libsrcdir="$$s/utils"; \ | |
e2b9e2dc | 30368 | $(SHELL) $${libsrcdir}/configure \ |
7ffa0b57 | 30369 | $(HOST_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 30370 | || exit 1 |
6bd3dfaa | 30371 | @endif utils |
e2b9e2dc | 30372 | |
a7254363 PB |
30373 | |
30374 | ||
d545f33b PB |
30375 | |
30376 | ||
4fa63067 NN |
30377 | .PHONY: all-utils maybe-all-utils |
30378 | maybe-all-utils: | |
6bd3dfaa | 30379 | @if utils |
d27cc32e | 30380 | TARGET-utils=all |
6bd3dfaa | 30381 | maybe-all-utils: all-utils |
4fa63067 | 30382 | all-utils: configure-utils |
0aed8855 | 30383 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30384 | @r=`${PWD_COMMAND}`; export r; \ |
30385 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30386 | $(HOST_EXPORTS) \ |
b00612cc PB |
30387 | (cd $(HOST_SUBDIR)/utils && \ |
30388 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-utils)) | |
6bd3dfaa | 30389 | @endif utils |
4fa63067 | 30390 | |
a7254363 | 30391 | |
d545f33b PB |
30392 | |
30393 | ||
4fa63067 NN |
30394 | .PHONY: check-utils maybe-check-utils |
30395 | maybe-check-utils: | |
6bd3dfaa PB |
30396 | @if utils |
30397 | maybe-check-utils: check-utils | |
4fa63067 NN |
30398 | |
30399 | check-utils: | |
30400 | ||
6bd3dfaa | 30401 | @endif utils |
4fa63067 NN |
30402 | |
30403 | .PHONY: install-utils maybe-install-utils | |
30404 | maybe-install-utils: | |
6bd3dfaa PB |
30405 | @if utils |
30406 | maybe-install-utils: install-utils | |
4fa63067 NN |
30407 | |
30408 | install-utils: installdirs | |
0aed8855 | 30409 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30410 | @r=`${PWD_COMMAND}`; export r; \ |
30411 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30412 | $(HOST_EXPORTS) \ |
b00612cc | 30413 | (cd $(HOST_SUBDIR)/utils && \ |
2da12f12 | 30414 | $(MAKE) $(FLAGS_TO_PASS) install) |
4fa63067 | 30415 | |
6bd3dfaa | 30416 | @endif utils |
4fa63067 NN |
30417 | |
30418 | # Other targets (info, dvi, etc.) | |
30419 | ||
30420 | .PHONY: maybe-info-utils info-utils | |
30421 | maybe-info-utils: | |
6bd3dfaa PB |
30422 | @if utils |
30423 | maybe-info-utils: info-utils | |
4fa63067 NN |
30424 | |
30425 | info-utils: \ | |
30426 | configure-utils | |
0aed8855 | 30427 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30428 | @[ -f ./utils/Makefile ] || exit 0; \ |
30429 | r=`${PWD_COMMAND}`; export r; \ | |
30430 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30431 | $(HOST_EXPORTS) \ |
b813574b | 30432 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30433 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30434 | done; \ | |
30435 | echo "Doing info in utils" ; \ | |
b00612cc | 30436 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30437 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30438 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30439 | "RANLIB=$${RANLIB}" \ | |
30440 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30441 | info) \ |
4fa63067 NN |
30442 | || exit 1 |
30443 | ||
6bd3dfaa | 30444 | @endif utils |
4fa63067 NN |
30445 | |
30446 | .PHONY: maybe-dvi-utils dvi-utils | |
30447 | maybe-dvi-utils: | |
6bd3dfaa PB |
30448 | @if utils |
30449 | maybe-dvi-utils: dvi-utils | |
4fa63067 NN |
30450 | |
30451 | dvi-utils: \ | |
30452 | configure-utils | |
0aed8855 | 30453 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30454 | @[ -f ./utils/Makefile ] || exit 0; \ |
30455 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30456 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30457 | $(HOST_EXPORTS) \ |
b813574b | 30458 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30459 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30460 | done; \ | |
30461 | echo "Doing dvi in utils" ; \ | |
b00612cc | 30462 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30463 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30464 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30465 | "RANLIB=$${RANLIB}" \ | |
30466 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30467 | dvi) \ |
4fa63067 | 30468 | || exit 1 |
3866be5d | 30469 | |
6bd3dfaa | 30470 | @endif utils |
3866be5d | 30471 | |
6d389afc MS |
30472 | .PHONY: maybe-html-utils html-utils |
30473 | maybe-html-utils: | |
30474 | @if utils | |
30475 | maybe-html-utils: html-utils | |
30476 | ||
30477 | html-utils: \ | |
30478 | configure-utils | |
0aed8855 | 30479 | @: $(MAKE); $(unstage) |
6d389afc MS |
30480 | @[ -f ./utils/Makefile ] || exit 0; \ |
30481 | r=`${PWD_COMMAND}`; export r; \ | |
30482 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
30483 | $(HOST_EXPORTS) \ |
30484 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30485 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30486 | done; \ | |
30487 | echo "Doing html in utils" ; \ | |
b00612cc | 30488 | (cd $(HOST_SUBDIR)/utils && \ |
6d389afc MS |
30489 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30490 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30491 | "RANLIB=$${RANLIB}" \ | |
30492 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30493 | html) \ | |
30494 | || exit 1 | |
30495 | ||
30496 | @endif utils | |
30497 | ||
4fa63067 NN |
30498 | .PHONY: maybe-TAGS-utils TAGS-utils |
30499 | maybe-TAGS-utils: | |
6bd3dfaa PB |
30500 | @if utils |
30501 | maybe-TAGS-utils: TAGS-utils | |
4fa63067 NN |
30502 | |
30503 | TAGS-utils: \ | |
30504 | configure-utils | |
0aed8855 | 30505 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30506 | @[ -f ./utils/Makefile ] || exit 0; \ |
30507 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30508 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30509 | $(HOST_EXPORTS) \ |
b813574b | 30510 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30511 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30512 | done; \ | |
30513 | echo "Doing TAGS in utils" ; \ | |
b00612cc | 30514 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30515 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30516 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30517 | "RANLIB=$${RANLIB}" \ | |
30518 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30519 | TAGS) \ |
4fa63067 | 30520 | || exit 1 |
3866be5d | 30521 | |
6bd3dfaa | 30522 | @endif utils |
3866be5d | 30523 | |
4fa63067 NN |
30524 | .PHONY: maybe-install-info-utils install-info-utils |
30525 | maybe-install-info-utils: | |
6bd3dfaa PB |
30526 | @if utils |
30527 | maybe-install-info-utils: install-info-utils | |
16ae0395 | 30528 | |
4fa63067 NN |
30529 | install-info-utils: \ |
30530 | configure-utils \ | |
30531 | info-utils | |
0aed8855 | 30532 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30533 | @[ -f ./utils/Makefile ] || exit 0; \ |
30534 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30535 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30536 | $(HOST_EXPORTS) \ |
b813574b | 30537 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30538 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30539 | done; \ | |
30540 | echo "Doing install-info in utils" ; \ | |
b00612cc | 30541 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30542 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30543 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30544 | "RANLIB=$${RANLIB}" \ | |
30545 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30546 | install-info) \ |
4fa63067 | 30547 | || exit 1 |
3866be5d | 30548 | |
6bd3dfaa | 30549 | @endif utils |
3866be5d | 30550 | |
108a6f8e CD |
30551 | .PHONY: maybe-install-html-utils install-html-utils |
30552 | maybe-install-html-utils: | |
30553 | @if utils | |
30554 | maybe-install-html-utils: install-html-utils | |
30555 | ||
30556 | install-html-utils: \ | |
30557 | configure-utils \ | |
30558 | html-utils | |
30559 | @: $(MAKE); $(unstage) | |
30560 | @[ -f ./utils/Makefile ] || exit 0; \ | |
30561 | r=`${PWD_COMMAND}`; export r; \ | |
30562 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30563 | $(HOST_EXPORTS) \ | |
30564 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30565 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30566 | done; \ | |
30567 | echo "Doing install-html in utils" ; \ | |
30568 | (cd $(HOST_SUBDIR)/utils && \ | |
30569 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30570 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30571 | "RANLIB=$${RANLIB}" \ | |
30572 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30573 | install-html) \ | |
30574 | || exit 1 | |
30575 | ||
30576 | @endif utils | |
30577 | ||
4fa63067 NN |
30578 | .PHONY: maybe-installcheck-utils installcheck-utils |
30579 | maybe-installcheck-utils: | |
6bd3dfaa PB |
30580 | @if utils |
30581 | maybe-installcheck-utils: installcheck-utils | |
4fa63067 NN |
30582 | |
30583 | installcheck-utils: \ | |
30584 | configure-utils | |
0aed8855 | 30585 | @: $(MAKE); $(unstage) |
4fa63067 | 30586 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30587 | r=`${PWD_COMMAND}`; export r; \ |
30588 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30589 | $(HOST_EXPORTS) \ |
b813574b | 30590 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30591 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30592 | done; \ | |
30593 | echo "Doing installcheck in utils" ; \ | |
b00612cc | 30594 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30595 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30596 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30597 | "RANLIB=$${RANLIB}" \ | |
30598 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30599 | installcheck) \ |
e2b9e2dc NN |
30600 | || exit 1 |
30601 | ||
6bd3dfaa | 30602 | @endif utils |
4fa63067 NN |
30603 | |
30604 | .PHONY: maybe-mostlyclean-utils mostlyclean-utils | |
30605 | maybe-mostlyclean-utils: | |
6bd3dfaa PB |
30606 | @if utils |
30607 | maybe-mostlyclean-utils: mostlyclean-utils | |
4fa63067 NN |
30608 | |
30609 | mostlyclean-utils: | |
0aed8855 | 30610 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30611 | @[ -f ./utils/Makefile ] || exit 0; \ |
30612 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30613 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30614 | $(HOST_EXPORTS) \ |
b813574b | 30615 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30616 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30617 | done; \ | |
30618 | echo "Doing mostlyclean in utils" ; \ | |
b00612cc | 30619 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30620 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30621 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30622 | "RANLIB=$${RANLIB}" \ | |
30623 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30624 | mostlyclean) \ |
4fa63067 | 30625 | || exit 1 |
3866be5d | 30626 | |
6bd3dfaa | 30627 | @endif utils |
3866be5d | 30628 | |
4fa63067 NN |
30629 | .PHONY: maybe-clean-utils clean-utils |
30630 | maybe-clean-utils: | |
6bd3dfaa PB |
30631 | @if utils |
30632 | maybe-clean-utils: clean-utils | |
4fa63067 NN |
30633 | |
30634 | clean-utils: | |
0aed8855 | 30635 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30636 | @[ -f ./utils/Makefile ] || exit 0; \ |
30637 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30638 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30639 | $(HOST_EXPORTS) \ |
b813574b | 30640 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30641 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30642 | done; \ | |
30643 | echo "Doing clean in utils" ; \ | |
b00612cc | 30644 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30645 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30646 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30647 | "RANLIB=$${RANLIB}" \ | |
30648 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30649 | clean) \ |
4fa63067 | 30650 | || exit 1 |
3866be5d | 30651 | |
6bd3dfaa | 30652 | @endif utils |
3866be5d | 30653 | |
4fa63067 NN |
30654 | .PHONY: maybe-distclean-utils distclean-utils |
30655 | maybe-distclean-utils: | |
6bd3dfaa PB |
30656 | @if utils |
30657 | maybe-distclean-utils: distclean-utils | |
16ae0395 | 30658 | |
4fa63067 | 30659 | distclean-utils: |
0aed8855 | 30660 | @: $(MAKE); $(unstage) |
4fa63067 NN |
30661 | @[ -f ./utils/Makefile ] || exit 0; \ |
30662 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 30663 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 30664 | $(HOST_EXPORTS) \ |
b813574b | 30665 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30666 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30667 | done; \ | |
30668 | echo "Doing distclean in utils" ; \ | |
b00612cc | 30669 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30670 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30671 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30672 | "RANLIB=$${RANLIB}" \ | |
30673 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30674 | distclean) \ |
4fa63067 | 30675 | || exit 1 |
3866be5d | 30676 | |
6bd3dfaa | 30677 | @endif utils |
3866be5d | 30678 | |
4fa63067 NN |
30679 | .PHONY: maybe-maintainer-clean-utils maintainer-clean-utils |
30680 | maybe-maintainer-clean-utils: | |
6bd3dfaa PB |
30681 | @if utils |
30682 | maybe-maintainer-clean-utils: maintainer-clean-utils | |
4fa63067 NN |
30683 | |
30684 | maintainer-clean-utils: | |
0aed8855 | 30685 | @: $(MAKE); $(unstage) |
4fa63067 | 30686 | @[ -f ./utils/Makefile ] || exit 0; \ |
b40e3958 L |
30687 | r=`${PWD_COMMAND}`; export r; \ |
30688 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 30689 | $(HOST_EXPORTS) \ |
b813574b | 30690 | for flag in $(EXTRA_HOST_FLAGS) ; do \ |
4fa63067 NN |
30691 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
30692 | done; \ | |
30693 | echo "Doing maintainer-clean in utils" ; \ | |
b00612cc | 30694 | (cd $(HOST_SUBDIR)/utils && \ |
4fa63067 NN |
30695 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
30696 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30697 | "RANLIB=$${RANLIB}" \ | |
30698 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
b813574b | 30699 | maintainer-clean) \ |
e2b9e2dc NN |
30700 | || exit 1 |
30701 | ||
6bd3dfaa | 30702 | @endif utils |
3866be5d | 30703 | |
3866be5d | 30704 | |
a7254363 | 30705 | |
b00612cc PB |
30706 | .PHONY: configure-gnattools maybe-configure-gnattools |
30707 | maybe-configure-gnattools: | |
30708 | @if gnattools | |
30709 | maybe-configure-gnattools: configure-gnattools | |
c52c6897 | 30710 | configure-gnattools: |
0aed8855 | 30711 | @: $(MAKE); $(unstage) |
c52c6897 | 30712 | @r=`${PWD_COMMAND}`; export r; \ |
b00612cc | 30713 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
c52c6897 PB |
30714 | test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \ |
30715 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \ | |
b00612cc | 30716 | $(HOST_EXPORTS) \ |
a7254363 PB |
30717 | echo Configuring in $(HOST_SUBDIR)/gnattools; \ |
30718 | cd "$(HOST_SUBDIR)/gnattools" || exit 1; \ | |
b00612cc PB |
30719 | case $(srcdir) in \ |
30720 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
30721 | *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \ | |
30722 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
30723 | esac; \ | |
30724 | srcdiroption="--srcdir=$${topdir}/gnattools"; \ | |
30725 | libsrcdir="$$s/gnattools"; \ | |
30726 | $(SHELL) $${libsrcdir}/configure \ | |
30727 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
30728 | || exit 1 | |
30729 | @endif gnattools | |
30730 | ||
a7254363 PB |
30731 | |
30732 | ||
d545f33b PB |
30733 | |
30734 | ||
b00612cc PB |
30735 | .PHONY: all-gnattools maybe-all-gnattools |
30736 | maybe-all-gnattools: | |
30737 | @if gnattools | |
30738 | TARGET-gnattools=all | |
30739 | maybe-all-gnattools: all-gnattools | |
30740 | all-gnattools: configure-gnattools | |
0aed8855 | 30741 | @: $(MAKE); $(unstage) |
b00612cc PB |
30742 | @r=`${PWD_COMMAND}`; export r; \ |
30743 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30744 | $(HOST_EXPORTS) \ |
30745 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30746 | $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnattools)) | |
30747 | @endif gnattools | |
30748 | ||
a7254363 | 30749 | |
d545f33b PB |
30750 | |
30751 | ||
b00612cc PB |
30752 | .PHONY: check-gnattools maybe-check-gnattools |
30753 | maybe-check-gnattools: | |
30754 | @if gnattools | |
30755 | maybe-check-gnattools: check-gnattools | |
30756 | ||
30757 | check-gnattools: | |
0aed8855 | 30758 | @: $(MAKE); $(unstage) |
b00612cc PB |
30759 | @r=`${PWD_COMMAND}`; export r; \ |
30760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30761 | $(HOST_EXPORTS) \ |
30762 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30763 | $(MAKE) $(FLAGS_TO_PASS) check) | |
30764 | ||
30765 | @endif gnattools | |
30766 | ||
30767 | .PHONY: install-gnattools maybe-install-gnattools | |
30768 | maybe-install-gnattools: | |
30769 | @if gnattools | |
30770 | maybe-install-gnattools: install-gnattools | |
30771 | ||
30772 | install-gnattools: installdirs | |
0aed8855 | 30773 | @: $(MAKE); $(unstage) |
b00612cc PB |
30774 | @r=`${PWD_COMMAND}`; export r; \ |
30775 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30776 | $(HOST_EXPORTS) \ |
30777 | (cd $(HOST_SUBDIR)/gnattools && \ | |
2da12f12 | 30778 | $(MAKE) $(FLAGS_TO_PASS) install) |
b00612cc PB |
30779 | |
30780 | @endif gnattools | |
30781 | ||
30782 | # Other targets (info, dvi, etc.) | |
30783 | ||
30784 | .PHONY: maybe-info-gnattools info-gnattools | |
30785 | maybe-info-gnattools: | |
30786 | @if gnattools | |
30787 | maybe-info-gnattools: info-gnattools | |
30788 | ||
30789 | info-gnattools: \ | |
30790 | configure-gnattools | |
0aed8855 | 30791 | @: $(MAKE); $(unstage) |
b00612cc PB |
30792 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30793 | r=`${PWD_COMMAND}`; export r; \ | |
30794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30795 | $(HOST_EXPORTS) \ |
30796 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30797 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30798 | done; \ | |
30799 | echo "Doing info in gnattools" ; \ | |
30800 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30801 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30802 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30803 | "RANLIB=$${RANLIB}" \ | |
30804 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30805 | info) \ | |
30806 | || exit 1 | |
30807 | ||
30808 | @endif gnattools | |
30809 | ||
30810 | .PHONY: maybe-dvi-gnattools dvi-gnattools | |
30811 | maybe-dvi-gnattools: | |
30812 | @if gnattools | |
30813 | maybe-dvi-gnattools: dvi-gnattools | |
30814 | ||
30815 | dvi-gnattools: \ | |
30816 | configure-gnattools | |
0aed8855 | 30817 | @: $(MAKE); $(unstage) |
b00612cc PB |
30818 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30819 | r=`${PWD_COMMAND}`; export r; \ | |
30820 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30821 | $(HOST_EXPORTS) \ |
30822 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30823 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30824 | done; \ | |
30825 | echo "Doing dvi in gnattools" ; \ | |
30826 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30827 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30828 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30829 | "RANLIB=$${RANLIB}" \ | |
30830 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30831 | dvi) \ | |
30832 | || exit 1 | |
30833 | ||
30834 | @endif gnattools | |
30835 | ||
30836 | .PHONY: maybe-html-gnattools html-gnattools | |
30837 | maybe-html-gnattools: | |
30838 | @if gnattools | |
30839 | maybe-html-gnattools: html-gnattools | |
30840 | ||
30841 | html-gnattools: \ | |
30842 | configure-gnattools | |
0aed8855 | 30843 | @: $(MAKE); $(unstage) |
b00612cc PB |
30844 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30845 | r=`${PWD_COMMAND}`; export r; \ | |
30846 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30847 | $(HOST_EXPORTS) \ |
30848 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30849 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30850 | done; \ | |
30851 | echo "Doing html in gnattools" ; \ | |
30852 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30853 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30854 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30855 | "RANLIB=$${RANLIB}" \ | |
30856 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30857 | html) \ | |
30858 | || exit 1 | |
30859 | ||
30860 | @endif gnattools | |
30861 | ||
30862 | .PHONY: maybe-TAGS-gnattools TAGS-gnattools | |
30863 | maybe-TAGS-gnattools: | |
30864 | @if gnattools | |
30865 | maybe-TAGS-gnattools: TAGS-gnattools | |
30866 | ||
30867 | TAGS-gnattools: \ | |
30868 | configure-gnattools | |
0aed8855 | 30869 | @: $(MAKE); $(unstage) |
b00612cc PB |
30870 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30871 | r=`${PWD_COMMAND}`; export r; \ | |
30872 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30873 | $(HOST_EXPORTS) \ |
30874 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30875 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30876 | done; \ | |
30877 | echo "Doing TAGS in gnattools" ; \ | |
30878 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30879 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30880 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30881 | "RANLIB=$${RANLIB}" \ | |
30882 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30883 | TAGS) \ | |
30884 | || exit 1 | |
30885 | ||
30886 | @endif gnattools | |
30887 | ||
30888 | .PHONY: maybe-install-info-gnattools install-info-gnattools | |
30889 | maybe-install-info-gnattools: | |
30890 | @if gnattools | |
30891 | maybe-install-info-gnattools: install-info-gnattools | |
30892 | ||
30893 | install-info-gnattools: \ | |
30894 | configure-gnattools \ | |
30895 | info-gnattools | |
0aed8855 | 30896 | @: $(MAKE); $(unstage) |
b00612cc PB |
30897 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30898 | r=`${PWD_COMMAND}`; export r; \ | |
30899 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30900 | $(HOST_EXPORTS) \ |
30901 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30902 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30903 | done; \ | |
30904 | echo "Doing install-info in gnattools" ; \ | |
30905 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30906 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30907 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30908 | "RANLIB=$${RANLIB}" \ | |
30909 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30910 | install-info) \ | |
30911 | || exit 1 | |
30912 | ||
30913 | @endif gnattools | |
30914 | ||
108a6f8e CD |
30915 | .PHONY: maybe-install-html-gnattools install-html-gnattools |
30916 | maybe-install-html-gnattools: | |
30917 | @if gnattools | |
30918 | maybe-install-html-gnattools: install-html-gnattools | |
30919 | ||
30920 | install-html-gnattools: \ | |
30921 | configure-gnattools \ | |
30922 | html-gnattools | |
30923 | @: $(MAKE); $(unstage) | |
30924 | @[ -f ./gnattools/Makefile ] || exit 0; \ | |
30925 | r=`${PWD_COMMAND}`; export r; \ | |
30926 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
30927 | $(HOST_EXPORTS) \ | |
30928 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30929 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30930 | done; \ | |
30931 | echo "Doing install-html in gnattools" ; \ | |
30932 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30933 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30934 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30935 | "RANLIB=$${RANLIB}" \ | |
30936 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30937 | install-html) \ | |
30938 | || exit 1 | |
30939 | ||
30940 | @endif gnattools | |
30941 | ||
b00612cc PB |
30942 | .PHONY: maybe-installcheck-gnattools installcheck-gnattools |
30943 | maybe-installcheck-gnattools: | |
30944 | @if gnattools | |
30945 | maybe-installcheck-gnattools: installcheck-gnattools | |
30946 | ||
30947 | installcheck-gnattools: \ | |
30948 | configure-gnattools | |
0aed8855 | 30949 | @: $(MAKE); $(unstage) |
b00612cc PB |
30950 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30951 | r=`${PWD_COMMAND}`; export r; \ | |
30952 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30953 | $(HOST_EXPORTS) \ |
30954 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30955 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30956 | done; \ | |
30957 | echo "Doing installcheck in gnattools" ; \ | |
30958 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30959 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30960 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30961 | "RANLIB=$${RANLIB}" \ | |
30962 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30963 | installcheck) \ | |
30964 | || exit 1 | |
30965 | ||
30966 | @endif gnattools | |
30967 | ||
30968 | .PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools | |
30969 | maybe-mostlyclean-gnattools: | |
30970 | @if gnattools | |
30971 | maybe-mostlyclean-gnattools: mostlyclean-gnattools | |
30972 | ||
30973 | mostlyclean-gnattools: | |
0aed8855 | 30974 | @: $(MAKE); $(unstage) |
b00612cc PB |
30975 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
30976 | r=`${PWD_COMMAND}`; export r; \ | |
30977 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
30978 | $(HOST_EXPORTS) \ |
30979 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
30980 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
30981 | done; \ | |
30982 | echo "Doing mostlyclean in gnattools" ; \ | |
30983 | (cd $(HOST_SUBDIR)/gnattools && \ | |
30984 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
30985 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
30986 | "RANLIB=$${RANLIB}" \ | |
30987 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
30988 | mostlyclean) \ | |
30989 | || exit 1 | |
30990 | ||
30991 | @endif gnattools | |
30992 | ||
30993 | .PHONY: maybe-clean-gnattools clean-gnattools | |
30994 | maybe-clean-gnattools: | |
30995 | @if gnattools | |
30996 | maybe-clean-gnattools: clean-gnattools | |
30997 | ||
30998 | clean-gnattools: | |
0aed8855 | 30999 | @: $(MAKE); $(unstage) |
b00612cc PB |
31000 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
31001 | r=`${PWD_COMMAND}`; export r; \ | |
31002 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
31003 | $(HOST_EXPORTS) \ |
31004 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
31005 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31006 | done; \ | |
31007 | echo "Doing clean in gnattools" ; \ | |
31008 | (cd $(HOST_SUBDIR)/gnattools && \ | |
31009 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31010 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31011 | "RANLIB=$${RANLIB}" \ | |
31012 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31013 | clean) \ | |
31014 | || exit 1 | |
31015 | ||
31016 | @endif gnattools | |
31017 | ||
31018 | .PHONY: maybe-distclean-gnattools distclean-gnattools | |
31019 | maybe-distclean-gnattools: | |
31020 | @if gnattools | |
31021 | maybe-distclean-gnattools: distclean-gnattools | |
31022 | ||
31023 | distclean-gnattools: | |
0aed8855 | 31024 | @: $(MAKE); $(unstage) |
b00612cc PB |
31025 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
31026 | r=`${PWD_COMMAND}`; export r; \ | |
31027 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
31028 | $(HOST_EXPORTS) \ |
31029 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
31030 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31031 | done; \ | |
31032 | echo "Doing distclean in gnattools" ; \ | |
31033 | (cd $(HOST_SUBDIR)/gnattools && \ | |
31034 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31035 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31036 | "RANLIB=$${RANLIB}" \ | |
31037 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31038 | distclean) \ | |
31039 | || exit 1 | |
31040 | ||
31041 | @endif gnattools | |
31042 | ||
31043 | .PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools | |
31044 | maybe-maintainer-clean-gnattools: | |
31045 | @if gnattools | |
31046 | maybe-maintainer-clean-gnattools: maintainer-clean-gnattools | |
31047 | ||
31048 | maintainer-clean-gnattools: | |
0aed8855 | 31049 | @: $(MAKE); $(unstage) |
b00612cc PB |
31050 | @[ -f ./gnattools/Makefile ] || exit 0; \ |
31051 | r=`${PWD_COMMAND}`; export r; \ | |
31052 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
b00612cc PB |
31053 | $(HOST_EXPORTS) \ |
31054 | for flag in $(EXTRA_HOST_FLAGS) ; do \ | |
31055 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31056 | done; \ | |
31057 | echo "Doing maintainer-clean in gnattools" ; \ | |
31058 | (cd $(HOST_SUBDIR)/gnattools && \ | |
31059 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31060 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31061 | "RANLIB=$${RANLIB}" \ | |
31062 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31063 | maintainer-clean) \ | |
31064 | || exit 1 | |
31065 | ||
31066 | @endif gnattools | |
31067 | ||
31068 | ||
3866be5d | 31069 | |
4fa63067 NN |
31070 | # --------------------------------------- |
31071 | # Modules which run on the target machine | |
31072 | # --------------------------------------- | |
16ae0395 | 31073 | |
3866be5d | 31074 | |
a7254363 PB |
31075 | |
31076 | ||
31077 | .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3 | |
31078 | maybe-configure-target-libstdc++-v3: | |
31079 | @if target-libstdc++-v3 | |
31080 | maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3 | |
c52c6897 | 31081 | configure-target-libstdc++-v3: |
0aed8855 PB |
31082 | @: $(MAKE); $(unstage) |
31083 | @r=`${PWD_COMMAND}`; export r; \ | |
31084 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31085 | echo "Checking multilib configuration for libstdc++-v3..."; \ | |
31086 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \ | |
31087 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \ | |
31088 | if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
31089 | if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \ | |
31090 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \ | |
31091 | else \ | |
31092 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \ | |
31093 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
31094 | fi; \ | |
31095 | else \ | |
31096 | mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \ | |
c52c6897 PB |
31097 | fi; \ |
31098 | test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
4fa63067 | 31099 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \ |
378fce5b | 31100 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31101 | echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \ |
31102 | cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \ | |
e2b9e2dc | 31103 | case $(srcdir) in \ |
b00612cc PB |
31104 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31105 | *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \ | |
31106 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 31107 | esac; \ |
b00612cc PB |
31108 | srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \ |
31109 | libsrcdir="$$s/libstdc++-v3"; \ | |
4fa63067 NN |
31110 | rm -f no-such-file || : ; \ |
31111 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 31112 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 31113 | || exit 1 |
6bd3dfaa | 31114 | @endif target-libstdc++-v3 |
e2b9e2dc | 31115 | |
a7254363 PB |
31116 | |
31117 | ||
d545f33b PB |
31118 | |
31119 | ||
4fa63067 NN |
31120 | .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3 |
31121 | maybe-all-target-libstdc++-v3: | |
6bd3dfaa | 31122 | @if target-libstdc++-v3 |
72b2455a | 31123 | TARGET-target-libstdc++-v3=all |
6bd3dfaa | 31124 | maybe-all-target-libstdc++-v3: all-target-libstdc++-v3 |
4fa63067 | 31125 | all-target-libstdc++-v3: configure-target-libstdc++-v3 |
0aed8855 | 31126 | @: $(MAKE); $(unstage) |
b40e3958 L |
31127 | @r=`${PWD_COMMAND}`; export r; \ |
31128 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31129 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 31130 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
a7254363 | 31131 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3)) |
6bd3dfaa | 31132 | @endif target-libstdc++-v3 |
3866be5d | 31133 | |
a7254363 PB |
31134 | |
31135 | ||
d545f33b PB |
31136 | |
31137 | ||
4fa63067 NN |
31138 | .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3 |
31139 | maybe-check-target-libstdc++-v3: | |
6bd3dfaa PB |
31140 | @if target-libstdc++-v3 |
31141 | maybe-check-target-libstdc++-v3: check-target-libstdc++-v3 | |
3866be5d | 31142 | |
4fa63067 | 31143 | check-target-libstdc++-v3: |
0aed8855 | 31144 | @: $(MAKE); $(unstage) |
b40e3958 L |
31145 | @r=`${PWD_COMMAND}`; export r; \ |
31146 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31147 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 31148 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
7ffa0b57 | 31149 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
3866be5d | 31150 | |
6bd3dfaa | 31151 | @endif target-libstdc++-v3 |
3866be5d | 31152 | |
4fa63067 NN |
31153 | .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3 |
31154 | maybe-install-target-libstdc++-v3: | |
6bd3dfaa PB |
31155 | @if target-libstdc++-v3 |
31156 | maybe-install-target-libstdc++-v3: install-target-libstdc++-v3 | |
16ae0395 | 31157 | |
4fa63067 | 31158 | install-target-libstdc++-v3: installdirs |
0aed8855 | 31159 | @: $(MAKE); $(unstage) |
b40e3958 L |
31160 | @r=`${PWD_COMMAND}`; export r; \ |
31161 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31162 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 31163 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
7ffa0b57 | 31164 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 31165 | |
6bd3dfaa | 31166 | @endif target-libstdc++-v3 |
e2b9e2dc | 31167 | |
4fa63067 | 31168 | # Other targets (info, dvi, etc.) |
3866be5d | 31169 | |
4fa63067 NN |
31170 | .PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3 |
31171 | maybe-info-target-libstdc++-v3: | |
6bd3dfaa PB |
31172 | @if target-libstdc++-v3 |
31173 | maybe-info-target-libstdc++-v3: info-target-libstdc++-v3 | |
3866be5d | 31174 | |
4fa63067 NN |
31175 | info-target-libstdc++-v3: \ |
31176 | configure-target-libstdc++-v3 | |
0aed8855 | 31177 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31178 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31179 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31180 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31181 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31182 | echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31183 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31184 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31185 | done; \ | |
31186 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31187 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31188 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31189 | "RANLIB=$${RANLIB}" \ | |
31190 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31191 | info) \ |
4fa63067 | 31192 | || exit 1 |
3866be5d | 31193 | |
6bd3dfaa | 31194 | @endif target-libstdc++-v3 |
3866be5d | 31195 | |
4fa63067 NN |
31196 | .PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3 |
31197 | maybe-dvi-target-libstdc++-v3: | |
6bd3dfaa PB |
31198 | @if target-libstdc++-v3 |
31199 | maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3 | |
16ae0395 | 31200 | |
4fa63067 NN |
31201 | dvi-target-libstdc++-v3: \ |
31202 | configure-target-libstdc++-v3 | |
0aed8855 | 31203 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31204 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31205 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31206 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31207 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31208 | echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31209 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31210 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31211 | done; \ | |
31212 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31213 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31214 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31215 | "RANLIB=$${RANLIB}" \ | |
31216 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31217 | dvi) \ |
4fa63067 | 31218 | || exit 1 |
3866be5d | 31219 | |
6bd3dfaa | 31220 | @endif target-libstdc++-v3 |
3866be5d | 31221 | |
6d389afc MS |
31222 | .PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3 |
31223 | maybe-html-target-libstdc++-v3: | |
31224 | @if target-libstdc++-v3 | |
31225 | maybe-html-target-libstdc++-v3: html-target-libstdc++-v3 | |
31226 | ||
31227 | html-target-libstdc++-v3: \ | |
31228 | configure-target-libstdc++-v3 | |
0aed8855 | 31229 | @: $(MAKE); $(unstage) |
6d389afc MS |
31230 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31231 | r=`${PWD_COMMAND}`; export r; \ | |
31232 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
31233 | $(RAW_CXX_TARGET_EXPORTS) \ |
31234 | echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \ | |
31235 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31236 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31237 | done; \ | |
31238 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31239 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31240 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31241 | "RANLIB=$${RANLIB}" \ | |
31242 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31243 | html) \ | |
31244 | || exit 1 | |
31245 | ||
31246 | @endif target-libstdc++-v3 | |
31247 | ||
4fa63067 NN |
31248 | .PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3 |
31249 | maybe-TAGS-target-libstdc++-v3: | |
6bd3dfaa PB |
31250 | @if target-libstdc++-v3 |
31251 | maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3 | |
4fa63067 NN |
31252 | |
31253 | TAGS-target-libstdc++-v3: \ | |
31254 | configure-target-libstdc++-v3 | |
0aed8855 | 31255 | @: $(MAKE); $(unstage) |
4fa63067 | 31256 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
b40e3958 L |
31257 | r=`${PWD_COMMAND}`; export r; \ |
31258 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31259 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31260 | echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31261 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31262 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31263 | done; \ | |
31264 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31265 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31266 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31267 | "RANLIB=$${RANLIB}" \ | |
31268 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31269 | TAGS) \ |
e2b9e2dc NN |
31270 | || exit 1 |
31271 | ||
6bd3dfaa | 31272 | @endif target-libstdc++-v3 |
3866be5d | 31273 | |
4fa63067 NN |
31274 | .PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3 |
31275 | maybe-install-info-target-libstdc++-v3: | |
6bd3dfaa PB |
31276 | @if target-libstdc++-v3 |
31277 | maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3 | |
3866be5d | 31278 | |
4fa63067 NN |
31279 | install-info-target-libstdc++-v3: \ |
31280 | configure-target-libstdc++-v3 \ | |
31281 | info-target-libstdc++-v3 | |
0aed8855 | 31282 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31283 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31284 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31285 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31286 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31287 | echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31288 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31289 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31290 | done; \ | |
31291 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31292 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31293 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31294 | "RANLIB=$${RANLIB}" \ | |
31295 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31296 | install-info) \ |
4fa63067 | 31297 | || exit 1 |
3866be5d | 31298 | |
6bd3dfaa | 31299 | @endif target-libstdc++-v3 |
3866be5d | 31300 | |
108a6f8e CD |
31301 | .PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3 |
31302 | maybe-install-html-target-libstdc++-v3: | |
31303 | @if target-libstdc++-v3 | |
31304 | maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3 | |
31305 | ||
31306 | install-html-target-libstdc++-v3: \ | |
31307 | configure-target-libstdc++-v3 \ | |
31308 | html-target-libstdc++-v3 | |
31309 | @: $(MAKE); $(unstage) | |
31310 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ | |
31311 | r=`${PWD_COMMAND}`; export r; \ | |
31312 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31313 | $(RAW_CXX_TARGET_EXPORTS) \ | |
31314 | echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \ | |
31315 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31316 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31317 | done; \ | |
31318 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31319 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31320 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31321 | "RANLIB=$${RANLIB}" \ | |
31322 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31323 | install-html) \ | |
31324 | || exit 1 | |
31325 | ||
31326 | @endif target-libstdc++-v3 | |
31327 | ||
4fa63067 NN |
31328 | .PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3 |
31329 | maybe-installcheck-target-libstdc++-v3: | |
6bd3dfaa PB |
31330 | @if target-libstdc++-v3 |
31331 | maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3 | |
16ae0395 | 31332 | |
4fa63067 NN |
31333 | installcheck-target-libstdc++-v3: \ |
31334 | configure-target-libstdc++-v3 | |
0aed8855 | 31335 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31336 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31337 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31339 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31340 | echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31341 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31342 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31343 | done; \ | |
31344 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31345 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31346 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31347 | "RANLIB=$${RANLIB}" \ | |
31348 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31349 | installcheck) \ |
4fa63067 | 31350 | || exit 1 |
3866be5d | 31351 | |
6bd3dfaa | 31352 | @endif target-libstdc++-v3 |
3866be5d | 31353 | |
4fa63067 NN |
31354 | .PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3 |
31355 | maybe-mostlyclean-target-libstdc++-v3: | |
6bd3dfaa PB |
31356 | @if target-libstdc++-v3 |
31357 | maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3 | |
4fa63067 NN |
31358 | |
31359 | mostlyclean-target-libstdc++-v3: | |
0aed8855 | 31360 | @: $(MAKE); $(unstage) |
4fa63067 | 31361 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
b40e3958 L |
31362 | r=`${PWD_COMMAND}`; export r; \ |
31363 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31364 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31365 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31366 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31367 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31368 | done; \ | |
31369 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31370 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31371 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31372 | "RANLIB=$${RANLIB}" \ | |
31373 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31374 | mostlyclean) \ |
e2b9e2dc NN |
31375 | || exit 1 |
31376 | ||
6bd3dfaa | 31377 | @endif target-libstdc++-v3 |
4fa63067 NN |
31378 | |
31379 | .PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3 | |
31380 | maybe-clean-target-libstdc++-v3: | |
6bd3dfaa PB |
31381 | @if target-libstdc++-v3 |
31382 | maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3 | |
4fa63067 NN |
31383 | |
31384 | clean-target-libstdc++-v3: | |
0aed8855 | 31385 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31386 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31387 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31388 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31389 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31390 | echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31391 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31392 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31393 | done; \ | |
31394 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31395 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31396 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31397 | "RANLIB=$${RANLIB}" \ | |
31398 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31399 | clean) \ |
4fa63067 | 31400 | || exit 1 |
3866be5d | 31401 | |
6bd3dfaa | 31402 | @endif target-libstdc++-v3 |
3866be5d | 31403 | |
4fa63067 NN |
31404 | .PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3 |
31405 | maybe-distclean-target-libstdc++-v3: | |
6bd3dfaa PB |
31406 | @if target-libstdc++-v3 |
31407 | maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3 | |
4fa63067 NN |
31408 | |
31409 | distclean-target-libstdc++-v3: | |
0aed8855 | 31410 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31411 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31412 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31413 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31414 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31415 | echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31416 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31417 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31418 | done; \ | |
31419 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31420 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31421 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31422 | "RANLIB=$${RANLIB}" \ | |
31423 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31424 | distclean) \ |
4fa63067 | 31425 | || exit 1 |
3866be5d | 31426 | |
6bd3dfaa | 31427 | @endif target-libstdc++-v3 |
3866be5d | 31428 | |
4fa63067 NN |
31429 | .PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3 |
31430 | maybe-maintainer-clean-target-libstdc++-v3: | |
6bd3dfaa PB |
31431 | @if target-libstdc++-v3 |
31432 | maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3 | |
16ae0395 | 31433 | |
4fa63067 | 31434 | maintainer-clean-target-libstdc++-v3: |
0aed8855 | 31435 | @: $(MAKE); $(unstage) |
4fa63067 NN |
31436 | @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \ |
31437 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 31438 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 31439 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
31440 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \ |
31441 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31442 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31443 | done; \ | |
31444 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
31445 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31446 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31447 | "RANLIB=$${RANLIB}" \ | |
31448 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31449 | maintainer-clean) \ |
4fa63067 | 31450 | || exit 1 |
3866be5d | 31451 | |
6bd3dfaa | 31452 | @endif target-libstdc++-v3 |
3866be5d | 31453 | |
4fa63067 | 31454 | |
4fa63067 | 31455 | |
a7254363 PB |
31456 | |
31457 | ||
31458 | .PHONY: configure-target-libmudflap maybe-configure-target-libmudflap | |
31459 | maybe-configure-target-libmudflap: | |
31460 | @if target-libmudflap | |
31461 | maybe-configure-target-libmudflap: configure-target-libmudflap | |
c52c6897 | 31462 | configure-target-libmudflap: |
0aed8855 PB |
31463 | @: $(MAKE); $(unstage) |
31464 | @r=`${PWD_COMMAND}`; export r; \ | |
31465 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31466 | echo "Checking multilib configuration for libmudflap..."; \ | |
31467 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \ | |
31468 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \ | |
31469 | if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \ | |
31470 | if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \ | |
31471 | rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \ | |
31472 | else \ | |
31473 | rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \ | |
31474 | mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \ | |
31475 | fi; \ | |
31476 | else \ | |
31477 | mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \ | |
c52c6897 PB |
31478 | fi; \ |
31479 | test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \ | |
4b1cb4fe | 31480 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \ |
378fce5b | 31481 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31482 | echo Configuring in $(TARGET_SUBDIR)/libmudflap; \ |
31483 | cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \ | |
e2b9e2dc | 31484 | case $(srcdir) in \ |
b00612cc PB |
31485 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
31486 | *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \ | |
31487 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 31488 | esac; \ |
b00612cc PB |
31489 | srcdiroption="--srcdir=$${topdir}/libmudflap"; \ |
31490 | libsrcdir="$$s/libmudflap"; \ | |
4fa63067 NN |
31491 | rm -f no-such-file || : ; \ |
31492 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 31493 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 31494 | || exit 1 |
6bd3dfaa | 31495 | @endif target-libmudflap |
e2b9e2dc | 31496 | |
a7254363 PB |
31497 | |
31498 | ||
d545f33b PB |
31499 | |
31500 | ||
4b1cb4fe DD |
31501 | .PHONY: all-target-libmudflap maybe-all-target-libmudflap |
31502 | maybe-all-target-libmudflap: | |
6bd3dfaa | 31503 | @if target-libmudflap |
72b2455a | 31504 | TARGET-target-libmudflap=all |
6bd3dfaa | 31505 | maybe-all-target-libmudflap: all-target-libmudflap |
4b1cb4fe | 31506 | all-target-libmudflap: configure-target-libmudflap |
0aed8855 | 31507 | @: $(MAKE); $(unstage) |
b40e3958 L |
31508 | @r=`${PWD_COMMAND}`; export r; \ |
31509 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31510 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 31511 | (cd $(TARGET_SUBDIR)/libmudflap && \ |
a7254363 | 31512 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap)) |
6bd3dfaa | 31513 | @endif target-libmudflap |
3866be5d | 31514 | |
a7254363 PB |
31515 | |
31516 | ||
d545f33b PB |
31517 | |
31518 | ||
4b1cb4fe DD |
31519 | .PHONY: check-target-libmudflap maybe-check-target-libmudflap |
31520 | maybe-check-target-libmudflap: | |
6bd3dfaa PB |
31521 | @if target-libmudflap |
31522 | maybe-check-target-libmudflap: check-target-libmudflap | |
16ae0395 | 31523 | |
4b1cb4fe | 31524 | check-target-libmudflap: |
0aed8855 | 31525 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31526 | @r=`${PWD_COMMAND}`; export r; \ |
31527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31528 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 31529 | (cd $(TARGET_SUBDIR)/libmudflap && \ |
7ffa0b57 | 31530 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4b1cb4fe | 31531 | |
6bd3dfaa | 31532 | @endif target-libmudflap |
4b1cb4fe DD |
31533 | |
31534 | .PHONY: install-target-libmudflap maybe-install-target-libmudflap | |
31535 | maybe-install-target-libmudflap: | |
6bd3dfaa PB |
31536 | @if target-libmudflap |
31537 | maybe-install-target-libmudflap: install-target-libmudflap | |
4b1cb4fe DD |
31538 | |
31539 | install-target-libmudflap: installdirs | |
0aed8855 | 31540 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31541 | @r=`${PWD_COMMAND}`; export r; \ |
31542 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31543 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 31544 | (cd $(TARGET_SUBDIR)/libmudflap && \ |
7ffa0b57 | 31545 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4b1cb4fe | 31546 | |
6bd3dfaa | 31547 | @endif target-libmudflap |
4b1cb4fe DD |
31548 | |
31549 | # Other targets (info, dvi, etc.) | |
31550 | ||
31551 | .PHONY: maybe-info-target-libmudflap info-target-libmudflap | |
31552 | maybe-info-target-libmudflap: | |
6bd3dfaa PB |
31553 | @if target-libmudflap |
31554 | maybe-info-target-libmudflap: info-target-libmudflap | |
4b1cb4fe DD |
31555 | |
31556 | info-target-libmudflap: \ | |
31557 | configure-target-libmudflap | |
0aed8855 | 31558 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31559 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31560 | r=`${PWD_COMMAND}`; export r; \ | |
31561 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31562 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31563 | echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \ |
31564 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31565 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31566 | done; \ | |
31567 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31568 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31569 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31570 | "RANLIB=$${RANLIB}" \ | |
31571 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31572 | info) \ |
4b1cb4fe DD |
31573 | || exit 1 |
31574 | ||
6bd3dfaa | 31575 | @endif target-libmudflap |
4b1cb4fe DD |
31576 | |
31577 | .PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap | |
31578 | maybe-dvi-target-libmudflap: | |
6bd3dfaa PB |
31579 | @if target-libmudflap |
31580 | maybe-dvi-target-libmudflap: dvi-target-libmudflap | |
4b1cb4fe DD |
31581 | |
31582 | dvi-target-libmudflap: \ | |
31583 | configure-target-libmudflap | |
0aed8855 | 31584 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31585 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31586 | r=`${PWD_COMMAND}`; export r; \ | |
31587 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31588 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31589 | echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \ |
31590 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31591 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31592 | done; \ | |
31593 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31594 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31595 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31596 | "RANLIB=$${RANLIB}" \ | |
31597 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31598 | dvi) \ |
4b1cb4fe DD |
31599 | || exit 1 |
31600 | ||
6bd3dfaa | 31601 | @endif target-libmudflap |
4b1cb4fe | 31602 | |
6d389afc MS |
31603 | .PHONY: maybe-html-target-libmudflap html-target-libmudflap |
31604 | maybe-html-target-libmudflap: | |
31605 | @if target-libmudflap | |
31606 | maybe-html-target-libmudflap: html-target-libmudflap | |
31607 | ||
31608 | html-target-libmudflap: \ | |
31609 | configure-target-libmudflap | |
0aed8855 | 31610 | @: $(MAKE); $(unstage) |
6d389afc MS |
31611 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31612 | r=`${PWD_COMMAND}`; export r; \ | |
31613 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
31614 | $(NORMAL_TARGET_EXPORTS) \ |
31615 | echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \ | |
31616 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31617 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31618 | done; \ | |
31619 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31620 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31621 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31622 | "RANLIB=$${RANLIB}" \ | |
31623 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31624 | html) \ | |
31625 | || exit 1 | |
31626 | ||
31627 | @endif target-libmudflap | |
31628 | ||
4b1cb4fe DD |
31629 | .PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap |
31630 | maybe-TAGS-target-libmudflap: | |
6bd3dfaa PB |
31631 | @if target-libmudflap |
31632 | maybe-TAGS-target-libmudflap: TAGS-target-libmudflap | |
4b1cb4fe DD |
31633 | |
31634 | TAGS-target-libmudflap: \ | |
31635 | configure-target-libmudflap | |
0aed8855 | 31636 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31637 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31638 | r=`${PWD_COMMAND}`; export r; \ | |
31639 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31640 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31641 | echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \ |
31642 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31643 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31644 | done; \ | |
31645 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31646 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31647 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31648 | "RANLIB=$${RANLIB}" \ | |
31649 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31650 | TAGS) \ |
4b1cb4fe DD |
31651 | || exit 1 |
31652 | ||
6bd3dfaa | 31653 | @endif target-libmudflap |
4b1cb4fe DD |
31654 | |
31655 | .PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap | |
31656 | maybe-install-info-target-libmudflap: | |
6bd3dfaa PB |
31657 | @if target-libmudflap |
31658 | maybe-install-info-target-libmudflap: install-info-target-libmudflap | |
4b1cb4fe DD |
31659 | |
31660 | install-info-target-libmudflap: \ | |
31661 | configure-target-libmudflap \ | |
31662 | info-target-libmudflap | |
0aed8855 | 31663 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31664 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31665 | r=`${PWD_COMMAND}`; export r; \ | |
31666 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31667 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31668 | echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \ |
31669 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31670 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31671 | done; \ | |
31672 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31673 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31674 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31675 | "RANLIB=$${RANLIB}" \ | |
31676 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31677 | install-info) \ |
4b1cb4fe DD |
31678 | || exit 1 |
31679 | ||
6bd3dfaa | 31680 | @endif target-libmudflap |
4b1cb4fe | 31681 | |
108a6f8e CD |
31682 | .PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap |
31683 | maybe-install-html-target-libmudflap: | |
31684 | @if target-libmudflap | |
31685 | maybe-install-html-target-libmudflap: install-html-target-libmudflap | |
31686 | ||
31687 | install-html-target-libmudflap: \ | |
31688 | configure-target-libmudflap \ | |
31689 | html-target-libmudflap | |
31690 | @: $(MAKE); $(unstage) | |
31691 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ | |
31692 | r=`${PWD_COMMAND}`; export r; \ | |
31693 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31694 | $(NORMAL_TARGET_EXPORTS) \ | |
31695 | echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \ | |
31696 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31697 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31698 | done; \ | |
31699 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31700 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31701 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31702 | "RANLIB=$${RANLIB}" \ | |
31703 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31704 | install-html) \ | |
31705 | || exit 1 | |
31706 | ||
31707 | @endif target-libmudflap | |
31708 | ||
4b1cb4fe DD |
31709 | .PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap |
31710 | maybe-installcheck-target-libmudflap: | |
6bd3dfaa PB |
31711 | @if target-libmudflap |
31712 | maybe-installcheck-target-libmudflap: installcheck-target-libmudflap | |
4b1cb4fe DD |
31713 | |
31714 | installcheck-target-libmudflap: \ | |
31715 | configure-target-libmudflap | |
0aed8855 | 31716 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31717 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31718 | r=`${PWD_COMMAND}`; export r; \ | |
31719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31720 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31721 | echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \ |
31722 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31723 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31724 | done; \ | |
31725 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31726 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31727 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31728 | "RANLIB=$${RANLIB}" \ | |
31729 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31730 | installcheck) \ |
4b1cb4fe DD |
31731 | || exit 1 |
31732 | ||
6bd3dfaa | 31733 | @endif target-libmudflap |
4b1cb4fe DD |
31734 | |
31735 | .PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap | |
31736 | maybe-mostlyclean-target-libmudflap: | |
6bd3dfaa PB |
31737 | @if target-libmudflap |
31738 | maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap | |
4b1cb4fe DD |
31739 | |
31740 | mostlyclean-target-libmudflap: | |
0aed8855 | 31741 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31742 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31743 | r=`${PWD_COMMAND}`; export r; \ | |
31744 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31745 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31746 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \ |
31747 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31748 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31749 | done; \ | |
31750 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31751 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31752 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31753 | "RANLIB=$${RANLIB}" \ | |
31754 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31755 | mostlyclean) \ |
4b1cb4fe DD |
31756 | || exit 1 |
31757 | ||
6bd3dfaa | 31758 | @endif target-libmudflap |
4b1cb4fe DD |
31759 | |
31760 | .PHONY: maybe-clean-target-libmudflap clean-target-libmudflap | |
31761 | maybe-clean-target-libmudflap: | |
6bd3dfaa PB |
31762 | @if target-libmudflap |
31763 | maybe-clean-target-libmudflap: clean-target-libmudflap | |
4b1cb4fe DD |
31764 | |
31765 | clean-target-libmudflap: | |
0aed8855 | 31766 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31767 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31768 | r=`${PWD_COMMAND}`; export r; \ | |
31769 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31770 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31771 | echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \ |
31772 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31773 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31774 | done; \ | |
31775 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31776 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31777 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31778 | "RANLIB=$${RANLIB}" \ | |
31779 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31780 | clean) \ |
4b1cb4fe DD |
31781 | || exit 1 |
31782 | ||
6bd3dfaa | 31783 | @endif target-libmudflap |
4b1cb4fe DD |
31784 | |
31785 | .PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap | |
31786 | maybe-distclean-target-libmudflap: | |
6bd3dfaa PB |
31787 | @if target-libmudflap |
31788 | maybe-distclean-target-libmudflap: distclean-target-libmudflap | |
4b1cb4fe DD |
31789 | |
31790 | distclean-target-libmudflap: | |
0aed8855 | 31791 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31792 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31793 | r=`${PWD_COMMAND}`; export r; \ | |
31794 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31795 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31796 | echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \ |
31797 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31798 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31799 | done; \ | |
31800 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31801 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31802 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31803 | "RANLIB=$${RANLIB}" \ | |
31804 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31805 | distclean) \ |
4b1cb4fe DD |
31806 | || exit 1 |
31807 | ||
6bd3dfaa | 31808 | @endif target-libmudflap |
4b1cb4fe DD |
31809 | |
31810 | .PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap | |
31811 | maybe-maintainer-clean-target-libmudflap: | |
6bd3dfaa PB |
31812 | @if target-libmudflap |
31813 | maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap | |
4b1cb4fe DD |
31814 | |
31815 | maintainer-clean-target-libmudflap: | |
0aed8855 | 31816 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
31817 | @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \ |
31818 | r=`${PWD_COMMAND}`; export r; \ | |
31819 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 31820 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
31821 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \ |
31822 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31823 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31824 | done; \ | |
31825 | (cd $(TARGET_SUBDIR)/libmudflap && \ | |
31826 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31827 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31828 | "RANLIB=$${RANLIB}" \ | |
31829 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 31830 | maintainer-clean) \ |
4b1cb4fe DD |
31831 | || exit 1 |
31832 | ||
6bd3dfaa | 31833 | @endif target-libmudflap |
4b1cb4fe DD |
31834 | |
31835 | ||
4b1cb4fe | 31836 | |
064d0a7c PB |
31837 | |
31838 | ||
31839 | .PHONY: configure-target-libssp maybe-configure-target-libssp | |
31840 | maybe-configure-target-libssp: | |
31841 | @if target-libssp | |
31842 | maybe-configure-target-libssp: configure-target-libssp | |
c52c6897 | 31843 | configure-target-libssp: |
0aed8855 PB |
31844 | @: $(MAKE); $(unstage) |
31845 | @r=`${PWD_COMMAND}`; export r; \ | |
31846 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31847 | echo "Checking multilib configuration for libssp..."; \ | |
31848 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \ | |
31849 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \ | |
31850 | if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \ | |
31851 | if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \ | |
31852 | rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \ | |
31853 | else \ | |
31854 | rm -f $(TARGET_SUBDIR)/libssp/Makefile; \ | |
31855 | mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \ | |
31856 | fi; \ | |
31857 | else \ | |
31858 | mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \ | |
c52c6897 PB |
31859 | fi; \ |
31860 | test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \ | |
064d0a7c | 31861 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \ |
064d0a7c PB |
31862 | $(NORMAL_TARGET_EXPORTS) \ |
31863 | echo Configuring in $(TARGET_SUBDIR)/libssp; \ | |
31864 | cd "$(TARGET_SUBDIR)/libssp" || exit 1; \ | |
31865 | case $(srcdir) in \ | |
31866 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
31867 | *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \ | |
31868 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
31869 | esac; \ | |
31870 | srcdiroption="--srcdir=$${topdir}/libssp"; \ | |
31871 | libsrcdir="$$s/libssp"; \ | |
31872 | rm -f no-such-file || : ; \ | |
31873 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
31874 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
31875 | || exit 1 | |
31876 | @endif target-libssp | |
31877 | ||
31878 | ||
31879 | ||
31880 | ||
31881 | ||
31882 | .PHONY: all-target-libssp maybe-all-target-libssp | |
31883 | maybe-all-target-libssp: | |
31884 | @if target-libssp | |
31885 | TARGET-target-libssp=all | |
31886 | maybe-all-target-libssp: all-target-libssp | |
31887 | all-target-libssp: configure-target-libssp | |
0aed8855 | 31888 | @: $(MAKE); $(unstage) |
064d0a7c PB |
31889 | @r=`${PWD_COMMAND}`; export r; \ |
31890 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31891 | $(NORMAL_TARGET_EXPORTS) \ | |
31892 | (cd $(TARGET_SUBDIR)/libssp && \ | |
31893 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libssp)) | |
31894 | @endif target-libssp | |
31895 | ||
31896 | ||
31897 | ||
31898 | ||
31899 | ||
31900 | .PHONY: check-target-libssp maybe-check-target-libssp | |
31901 | maybe-check-target-libssp: | |
31902 | @if target-libssp | |
31903 | maybe-check-target-libssp: check-target-libssp | |
31904 | ||
31905 | check-target-libssp: | |
0aed8855 | 31906 | @: $(MAKE); $(unstage) |
064d0a7c PB |
31907 | @r=`${PWD_COMMAND}`; export r; \ |
31908 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31909 | $(NORMAL_TARGET_EXPORTS) \ | |
31910 | (cd $(TARGET_SUBDIR)/libssp && \ | |
31911 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
31912 | ||
31913 | @endif target-libssp | |
31914 | ||
31915 | .PHONY: install-target-libssp maybe-install-target-libssp | |
31916 | maybe-install-target-libssp: | |
31917 | @if target-libssp | |
31918 | maybe-install-target-libssp: install-target-libssp | |
31919 | ||
31920 | install-target-libssp: installdirs | |
0aed8855 | 31921 | @: $(MAKE); $(unstage) |
064d0a7c PB |
31922 | @r=`${PWD_COMMAND}`; export r; \ |
31923 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31924 | $(NORMAL_TARGET_EXPORTS) \ | |
31925 | (cd $(TARGET_SUBDIR)/libssp && \ | |
31926 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
31927 | ||
31928 | @endif target-libssp | |
31929 | ||
31930 | # Other targets (info, dvi, etc.) | |
31931 | ||
31932 | .PHONY: maybe-info-target-libssp info-target-libssp | |
31933 | maybe-info-target-libssp: | |
31934 | @if target-libssp | |
31935 | maybe-info-target-libssp: info-target-libssp | |
31936 | ||
31937 | info-target-libssp: \ | |
31938 | configure-target-libssp | |
0aed8855 | 31939 | @: $(MAKE); $(unstage) |
064d0a7c PB |
31940 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
31941 | r=`${PWD_COMMAND}`; export r; \ | |
31942 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31943 | $(NORMAL_TARGET_EXPORTS) \ | |
31944 | echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \ | |
31945 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31946 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31947 | done; \ | |
31948 | (cd $(TARGET_SUBDIR)/libssp && \ | |
31949 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31950 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31951 | "RANLIB=$${RANLIB}" \ | |
31952 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31953 | info) \ | |
31954 | || exit 1 | |
31955 | ||
31956 | @endif target-libssp | |
31957 | ||
31958 | .PHONY: maybe-dvi-target-libssp dvi-target-libssp | |
31959 | maybe-dvi-target-libssp: | |
31960 | @if target-libssp | |
31961 | maybe-dvi-target-libssp: dvi-target-libssp | |
31962 | ||
31963 | dvi-target-libssp: \ | |
31964 | configure-target-libssp | |
0aed8855 | 31965 | @: $(MAKE); $(unstage) |
064d0a7c PB |
31966 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
31967 | r=`${PWD_COMMAND}`; export r; \ | |
31968 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31969 | $(NORMAL_TARGET_EXPORTS) \ | |
31970 | echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \ | |
31971 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31972 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31973 | done; \ | |
31974 | (cd $(TARGET_SUBDIR)/libssp && \ | |
31975 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
31976 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
31977 | "RANLIB=$${RANLIB}" \ | |
31978 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
31979 | dvi) \ | |
31980 | || exit 1 | |
31981 | ||
31982 | @endif target-libssp | |
31983 | ||
31984 | .PHONY: maybe-html-target-libssp html-target-libssp | |
31985 | maybe-html-target-libssp: | |
31986 | @if target-libssp | |
31987 | maybe-html-target-libssp: html-target-libssp | |
31988 | ||
31989 | html-target-libssp: \ | |
31990 | configure-target-libssp | |
0aed8855 | 31991 | @: $(MAKE); $(unstage) |
064d0a7c PB |
31992 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
31993 | r=`${PWD_COMMAND}`; export r; \ | |
31994 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
31995 | $(NORMAL_TARGET_EXPORTS) \ | |
31996 | echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \ | |
31997 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
31998 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
31999 | done; \ | |
32000 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32001 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32002 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32003 | "RANLIB=$${RANLIB}" \ | |
32004 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32005 | html) \ | |
32006 | || exit 1 | |
32007 | ||
32008 | @endif target-libssp | |
32009 | ||
32010 | .PHONY: maybe-TAGS-target-libssp TAGS-target-libssp | |
32011 | maybe-TAGS-target-libssp: | |
32012 | @if target-libssp | |
32013 | maybe-TAGS-target-libssp: TAGS-target-libssp | |
32014 | ||
32015 | TAGS-target-libssp: \ | |
32016 | configure-target-libssp | |
0aed8855 | 32017 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32018 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32019 | r=`${PWD_COMMAND}`; export r; \ | |
32020 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32021 | $(NORMAL_TARGET_EXPORTS) \ | |
32022 | echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \ | |
32023 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32024 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32025 | done; \ | |
32026 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32027 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32028 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32029 | "RANLIB=$${RANLIB}" \ | |
32030 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32031 | TAGS) \ | |
32032 | || exit 1 | |
32033 | ||
32034 | @endif target-libssp | |
32035 | ||
32036 | .PHONY: maybe-install-info-target-libssp install-info-target-libssp | |
32037 | maybe-install-info-target-libssp: | |
32038 | @if target-libssp | |
32039 | maybe-install-info-target-libssp: install-info-target-libssp | |
32040 | ||
32041 | install-info-target-libssp: \ | |
32042 | configure-target-libssp \ | |
32043 | info-target-libssp | |
0aed8855 | 32044 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32045 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32046 | r=`${PWD_COMMAND}`; export r; \ | |
32047 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32048 | $(NORMAL_TARGET_EXPORTS) \ | |
32049 | echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \ | |
32050 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32051 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32052 | done; \ | |
32053 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32054 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32055 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32056 | "RANLIB=$${RANLIB}" \ | |
32057 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32058 | install-info) \ | |
32059 | || exit 1 | |
32060 | ||
32061 | @endif target-libssp | |
32062 | ||
108a6f8e CD |
32063 | .PHONY: maybe-install-html-target-libssp install-html-target-libssp |
32064 | maybe-install-html-target-libssp: | |
32065 | @if target-libssp | |
32066 | maybe-install-html-target-libssp: install-html-target-libssp | |
32067 | ||
32068 | install-html-target-libssp: \ | |
32069 | configure-target-libssp \ | |
32070 | html-target-libssp | |
32071 | @: $(MAKE); $(unstage) | |
32072 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ | |
32073 | r=`${PWD_COMMAND}`; export r; \ | |
32074 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32075 | $(NORMAL_TARGET_EXPORTS) \ | |
32076 | echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \ | |
32077 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32078 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32079 | done; \ | |
32080 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32081 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32082 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32083 | "RANLIB=$${RANLIB}" \ | |
32084 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32085 | install-html) \ | |
32086 | || exit 1 | |
32087 | ||
32088 | @endif target-libssp | |
32089 | ||
064d0a7c PB |
32090 | .PHONY: maybe-installcheck-target-libssp installcheck-target-libssp |
32091 | maybe-installcheck-target-libssp: | |
32092 | @if target-libssp | |
32093 | maybe-installcheck-target-libssp: installcheck-target-libssp | |
32094 | ||
32095 | installcheck-target-libssp: \ | |
32096 | configure-target-libssp | |
0aed8855 | 32097 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32098 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32099 | r=`${PWD_COMMAND}`; export r; \ | |
32100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32101 | $(NORMAL_TARGET_EXPORTS) \ | |
32102 | echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \ | |
32103 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32104 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32105 | done; \ | |
32106 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32107 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32108 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32109 | "RANLIB=$${RANLIB}" \ | |
32110 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32111 | installcheck) \ | |
32112 | || exit 1 | |
32113 | ||
32114 | @endif target-libssp | |
32115 | ||
32116 | .PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp | |
32117 | maybe-mostlyclean-target-libssp: | |
32118 | @if target-libssp | |
32119 | maybe-mostlyclean-target-libssp: mostlyclean-target-libssp | |
32120 | ||
32121 | mostlyclean-target-libssp: | |
0aed8855 | 32122 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32123 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32124 | r=`${PWD_COMMAND}`; export r; \ | |
32125 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32126 | $(NORMAL_TARGET_EXPORTS) \ | |
32127 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \ | |
32128 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32129 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32130 | done; \ | |
32131 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32132 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32133 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32134 | "RANLIB=$${RANLIB}" \ | |
32135 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32136 | mostlyclean) \ | |
32137 | || exit 1 | |
32138 | ||
32139 | @endif target-libssp | |
32140 | ||
32141 | .PHONY: maybe-clean-target-libssp clean-target-libssp | |
32142 | maybe-clean-target-libssp: | |
32143 | @if target-libssp | |
32144 | maybe-clean-target-libssp: clean-target-libssp | |
32145 | ||
32146 | clean-target-libssp: | |
0aed8855 | 32147 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32148 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32149 | r=`${PWD_COMMAND}`; export r; \ | |
32150 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32151 | $(NORMAL_TARGET_EXPORTS) \ | |
32152 | echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \ | |
32153 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32154 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32155 | done; \ | |
32156 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32157 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32158 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32159 | "RANLIB=$${RANLIB}" \ | |
32160 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32161 | clean) \ | |
32162 | || exit 1 | |
32163 | ||
32164 | @endif target-libssp | |
32165 | ||
32166 | .PHONY: maybe-distclean-target-libssp distclean-target-libssp | |
32167 | maybe-distclean-target-libssp: | |
32168 | @if target-libssp | |
32169 | maybe-distclean-target-libssp: distclean-target-libssp | |
32170 | ||
32171 | distclean-target-libssp: | |
0aed8855 | 32172 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32173 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32174 | r=`${PWD_COMMAND}`; export r; \ | |
32175 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32176 | $(NORMAL_TARGET_EXPORTS) \ | |
32177 | echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \ | |
32178 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32179 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32180 | done; \ | |
32181 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32182 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32183 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32184 | "RANLIB=$${RANLIB}" \ | |
32185 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32186 | distclean) \ | |
32187 | || exit 1 | |
32188 | ||
32189 | @endif target-libssp | |
32190 | ||
32191 | .PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp | |
32192 | maybe-maintainer-clean-target-libssp: | |
32193 | @if target-libssp | |
32194 | maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp | |
32195 | ||
32196 | maintainer-clean-target-libssp: | |
0aed8855 | 32197 | @: $(MAKE); $(unstage) |
064d0a7c PB |
32198 | @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \ |
32199 | r=`${PWD_COMMAND}`; export r; \ | |
32200 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32201 | $(NORMAL_TARGET_EXPORTS) \ | |
32202 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \ | |
32203 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32204 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32205 | done; \ | |
32206 | (cd $(TARGET_SUBDIR)/libssp && \ | |
32207 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32208 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32209 | "RANLIB=$${RANLIB}" \ | |
32210 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32211 | maintainer-clean) \ | |
32212 | || exit 1 | |
32213 | ||
32214 | @endif target-libssp | |
32215 | ||
32216 | ||
32217 | ||
a7254363 | 32218 | |
e90269c8 | 32219 | |
b3ded179 PB |
32220 | .PHONY: configure-target-libgcc-math maybe-configure-target-libgcc-math |
32221 | maybe-configure-target-libgcc-math: | |
32222 | @if target-libgcc-math | |
32223 | maybe-configure-target-libgcc-math: configure-target-libgcc-math | |
c52c6897 | 32224 | configure-target-libgcc-math: |
b3ded179 PB |
32225 | @: $(MAKE); $(unstage) |
32226 | @r=`${PWD_COMMAND}`; export r; \ | |
32227 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32228 | echo "Checking multilib configuration for libgcc-math..."; \ | |
32229 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc-math ; \ | |
32230 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc-math/multilib.tmp 2> /dev/null ; \ | |
32231 | if test -r $(TARGET_SUBDIR)/libgcc-math/multilib.out; then \ | |
32232 | if cmp -s $(TARGET_SUBDIR)/libgcc-math/multilib.tmp $(TARGET_SUBDIR)/libgcc-math/multilib.out; then \ | |
32233 | rm -f $(TARGET_SUBDIR)/libgcc-math/multilib.tmp; \ | |
32234 | else \ | |
32235 | rm -f $(TARGET_SUBDIR)/libgcc-math/Makefile; \ | |
32236 | mv $(TARGET_SUBDIR)/libgcc-math/multilib.tmp $(TARGET_SUBDIR)/libgcc-math/multilib.out; \ | |
32237 | fi; \ | |
32238 | else \ | |
32239 | mv $(TARGET_SUBDIR)/libgcc-math/multilib.tmp $(TARGET_SUBDIR)/libgcc-math/multilib.out; \ | |
c52c6897 PB |
32240 | fi; \ |
32241 | test ! -f $(TARGET_SUBDIR)/libgcc-math/Makefile || exit 0; \ | |
b3ded179 | 32242 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc-math ; \ |
b3ded179 PB |
32243 | $(NORMAL_TARGET_EXPORTS) \ |
32244 | echo Configuring in $(TARGET_SUBDIR)/libgcc-math; \ | |
32245 | cd "$(TARGET_SUBDIR)/libgcc-math" || exit 1; \ | |
32246 | case $(srcdir) in \ | |
32247 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
32248 | *) topdir=`echo $(TARGET_SUBDIR)/libgcc-math/ | \ | |
32249 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
32250 | esac; \ | |
32251 | srcdiroption="--srcdir=$${topdir}/libgcc-math"; \ | |
32252 | libsrcdir="$$s/libgcc-math"; \ | |
32253 | rm -f no-such-file || : ; \ | |
32254 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
32255 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
32256 | || exit 1 | |
32257 | @endif target-libgcc-math | |
32258 | ||
32259 | ||
32260 | ||
32261 | ||
32262 | ||
32263 | .PHONY: all-target-libgcc-math maybe-all-target-libgcc-math | |
32264 | maybe-all-target-libgcc-math: | |
32265 | @if target-libgcc-math | |
32266 | TARGET-target-libgcc-math=all | |
32267 | maybe-all-target-libgcc-math: all-target-libgcc-math | |
32268 | all-target-libgcc-math: configure-target-libgcc-math | |
32269 | @: $(MAKE); $(unstage) | |
32270 | @r=`${PWD_COMMAND}`; export r; \ | |
32271 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32272 | $(NORMAL_TARGET_EXPORTS) \ | |
32273 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32274 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgcc-math)) | |
32275 | @endif target-libgcc-math | |
32276 | ||
32277 | ||
32278 | ||
32279 | ||
32280 | ||
32281 | .PHONY: check-target-libgcc-math maybe-check-target-libgcc-math | |
32282 | maybe-check-target-libgcc-math: | |
32283 | @if target-libgcc-math | |
32284 | maybe-check-target-libgcc-math: check-target-libgcc-math | |
32285 | ||
32286 | check-target-libgcc-math: | |
32287 | @: $(MAKE); $(unstage) | |
32288 | @r=`${PWD_COMMAND}`; export r; \ | |
32289 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32290 | $(NORMAL_TARGET_EXPORTS) \ | |
32291 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32292 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
32293 | ||
32294 | @endif target-libgcc-math | |
32295 | ||
32296 | .PHONY: install-target-libgcc-math maybe-install-target-libgcc-math | |
32297 | maybe-install-target-libgcc-math: | |
32298 | @if target-libgcc-math | |
32299 | maybe-install-target-libgcc-math: install-target-libgcc-math | |
32300 | ||
32301 | install-target-libgcc-math: installdirs | |
32302 | @: $(MAKE); $(unstage) | |
32303 | @r=`${PWD_COMMAND}`; export r; \ | |
32304 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32305 | $(NORMAL_TARGET_EXPORTS) \ | |
32306 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32307 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
32308 | ||
32309 | @endif target-libgcc-math | |
32310 | ||
32311 | # Other targets (info, dvi, etc.) | |
32312 | ||
32313 | .PHONY: maybe-info-target-libgcc-math info-target-libgcc-math | |
32314 | maybe-info-target-libgcc-math: | |
32315 | @if target-libgcc-math | |
32316 | maybe-info-target-libgcc-math: info-target-libgcc-math | |
32317 | ||
32318 | info-target-libgcc-math: \ | |
32319 | configure-target-libgcc-math | |
32320 | @: $(MAKE); $(unstage) | |
32321 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32322 | r=`${PWD_COMMAND}`; export r; \ | |
32323 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32324 | $(NORMAL_TARGET_EXPORTS) \ | |
32325 | echo "Doing info in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32326 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32327 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32328 | done; \ | |
32329 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32330 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32331 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32332 | "RANLIB=$${RANLIB}" \ | |
32333 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32334 | info) \ | |
32335 | || exit 1 | |
32336 | ||
32337 | @endif target-libgcc-math | |
32338 | ||
32339 | .PHONY: maybe-dvi-target-libgcc-math dvi-target-libgcc-math | |
32340 | maybe-dvi-target-libgcc-math: | |
32341 | @if target-libgcc-math | |
32342 | maybe-dvi-target-libgcc-math: dvi-target-libgcc-math | |
32343 | ||
32344 | dvi-target-libgcc-math: \ | |
32345 | configure-target-libgcc-math | |
32346 | @: $(MAKE); $(unstage) | |
32347 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32348 | r=`${PWD_COMMAND}`; export r; \ | |
32349 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32350 | $(NORMAL_TARGET_EXPORTS) \ | |
32351 | echo "Doing dvi in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32352 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32353 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32354 | done; \ | |
32355 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32356 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32357 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32358 | "RANLIB=$${RANLIB}" \ | |
32359 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32360 | dvi) \ | |
32361 | || exit 1 | |
32362 | ||
32363 | @endif target-libgcc-math | |
32364 | ||
32365 | .PHONY: maybe-html-target-libgcc-math html-target-libgcc-math | |
32366 | maybe-html-target-libgcc-math: | |
32367 | @if target-libgcc-math | |
32368 | maybe-html-target-libgcc-math: html-target-libgcc-math | |
32369 | ||
32370 | html-target-libgcc-math: \ | |
32371 | configure-target-libgcc-math | |
32372 | @: $(MAKE); $(unstage) | |
32373 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32374 | r=`${PWD_COMMAND}`; export r; \ | |
32375 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32376 | $(NORMAL_TARGET_EXPORTS) \ | |
32377 | echo "Doing html in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32378 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32379 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32380 | done; \ | |
32381 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32382 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32383 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32384 | "RANLIB=$${RANLIB}" \ | |
32385 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32386 | html) \ | |
32387 | || exit 1 | |
32388 | ||
32389 | @endif target-libgcc-math | |
32390 | ||
32391 | .PHONY: maybe-TAGS-target-libgcc-math TAGS-target-libgcc-math | |
32392 | maybe-TAGS-target-libgcc-math: | |
32393 | @if target-libgcc-math | |
32394 | maybe-TAGS-target-libgcc-math: TAGS-target-libgcc-math | |
32395 | ||
32396 | TAGS-target-libgcc-math: \ | |
32397 | configure-target-libgcc-math | |
32398 | @: $(MAKE); $(unstage) | |
32399 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32400 | r=`${PWD_COMMAND}`; export r; \ | |
32401 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32402 | $(NORMAL_TARGET_EXPORTS) \ | |
32403 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32404 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32405 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32406 | done; \ | |
32407 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32408 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32409 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32410 | "RANLIB=$${RANLIB}" \ | |
32411 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32412 | TAGS) \ | |
32413 | || exit 1 | |
32414 | ||
32415 | @endif target-libgcc-math | |
32416 | ||
32417 | .PHONY: maybe-install-info-target-libgcc-math install-info-target-libgcc-math | |
32418 | maybe-install-info-target-libgcc-math: | |
32419 | @if target-libgcc-math | |
32420 | maybe-install-info-target-libgcc-math: install-info-target-libgcc-math | |
32421 | ||
32422 | install-info-target-libgcc-math: \ | |
32423 | configure-target-libgcc-math \ | |
32424 | info-target-libgcc-math | |
32425 | @: $(MAKE); $(unstage) | |
32426 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32427 | r=`${PWD_COMMAND}`; export r; \ | |
32428 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32429 | $(NORMAL_TARGET_EXPORTS) \ | |
32430 | echo "Doing install-info in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32431 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32432 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32433 | done; \ | |
32434 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32435 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32436 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32437 | "RANLIB=$${RANLIB}" \ | |
32438 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32439 | install-info) \ | |
32440 | || exit 1 | |
32441 | ||
32442 | @endif target-libgcc-math | |
32443 | ||
108a6f8e CD |
32444 | .PHONY: maybe-install-html-target-libgcc-math install-html-target-libgcc-math |
32445 | maybe-install-html-target-libgcc-math: | |
32446 | @if target-libgcc-math | |
32447 | maybe-install-html-target-libgcc-math: install-html-target-libgcc-math | |
32448 | ||
32449 | install-html-target-libgcc-math: \ | |
32450 | configure-target-libgcc-math \ | |
32451 | html-target-libgcc-math | |
32452 | @: $(MAKE); $(unstage) | |
32453 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32454 | r=`${PWD_COMMAND}`; export r; \ | |
32455 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32456 | $(NORMAL_TARGET_EXPORTS) \ | |
32457 | echo "Doing install-html in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32458 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32459 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32460 | done; \ | |
32461 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32462 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32463 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32464 | "RANLIB=$${RANLIB}" \ | |
32465 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32466 | install-html) \ | |
32467 | || exit 1 | |
32468 | ||
32469 | @endif target-libgcc-math | |
32470 | ||
b3ded179 PB |
32471 | .PHONY: maybe-installcheck-target-libgcc-math installcheck-target-libgcc-math |
32472 | maybe-installcheck-target-libgcc-math: | |
32473 | @if target-libgcc-math | |
32474 | maybe-installcheck-target-libgcc-math: installcheck-target-libgcc-math | |
32475 | ||
32476 | installcheck-target-libgcc-math: \ | |
32477 | configure-target-libgcc-math | |
32478 | @: $(MAKE); $(unstage) | |
32479 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32480 | r=`${PWD_COMMAND}`; export r; \ | |
32481 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32482 | $(NORMAL_TARGET_EXPORTS) \ | |
32483 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32484 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32485 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32486 | done; \ | |
32487 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32488 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32489 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32490 | "RANLIB=$${RANLIB}" \ | |
32491 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32492 | installcheck) \ | |
32493 | || exit 1 | |
32494 | ||
32495 | @endif target-libgcc-math | |
32496 | ||
32497 | .PHONY: maybe-mostlyclean-target-libgcc-math mostlyclean-target-libgcc-math | |
32498 | maybe-mostlyclean-target-libgcc-math: | |
32499 | @if target-libgcc-math | |
32500 | maybe-mostlyclean-target-libgcc-math: mostlyclean-target-libgcc-math | |
32501 | ||
32502 | mostlyclean-target-libgcc-math: | |
32503 | @: $(MAKE); $(unstage) | |
32504 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32505 | r=`${PWD_COMMAND}`; export r; \ | |
32506 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32507 | $(NORMAL_TARGET_EXPORTS) \ | |
32508 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32509 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32510 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32511 | done; \ | |
32512 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32513 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32514 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32515 | "RANLIB=$${RANLIB}" \ | |
32516 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32517 | mostlyclean) \ | |
32518 | || exit 1 | |
32519 | ||
32520 | @endif target-libgcc-math | |
32521 | ||
32522 | .PHONY: maybe-clean-target-libgcc-math clean-target-libgcc-math | |
32523 | maybe-clean-target-libgcc-math: | |
32524 | @if target-libgcc-math | |
32525 | maybe-clean-target-libgcc-math: clean-target-libgcc-math | |
32526 | ||
32527 | clean-target-libgcc-math: | |
32528 | @: $(MAKE); $(unstage) | |
32529 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32530 | r=`${PWD_COMMAND}`; export r; \ | |
32531 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32532 | $(NORMAL_TARGET_EXPORTS) \ | |
32533 | echo "Doing clean in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32534 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32535 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32536 | done; \ | |
32537 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32538 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32539 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32540 | "RANLIB=$${RANLIB}" \ | |
32541 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32542 | clean) \ | |
32543 | || exit 1 | |
32544 | ||
32545 | @endif target-libgcc-math | |
32546 | ||
32547 | .PHONY: maybe-distclean-target-libgcc-math distclean-target-libgcc-math | |
32548 | maybe-distclean-target-libgcc-math: | |
32549 | @if target-libgcc-math | |
32550 | maybe-distclean-target-libgcc-math: distclean-target-libgcc-math | |
32551 | ||
32552 | distclean-target-libgcc-math: | |
32553 | @: $(MAKE); $(unstage) | |
32554 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32555 | r=`${PWD_COMMAND}`; export r; \ | |
32556 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32557 | $(NORMAL_TARGET_EXPORTS) \ | |
32558 | echo "Doing distclean in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32559 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32560 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32561 | done; \ | |
32562 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32563 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32564 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32565 | "RANLIB=$${RANLIB}" \ | |
32566 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32567 | distclean) \ | |
32568 | || exit 1 | |
32569 | ||
32570 | @endif target-libgcc-math | |
32571 | ||
32572 | .PHONY: maybe-maintainer-clean-target-libgcc-math maintainer-clean-target-libgcc-math | |
32573 | maybe-maintainer-clean-target-libgcc-math: | |
32574 | @if target-libgcc-math | |
32575 | maybe-maintainer-clean-target-libgcc-math: maintainer-clean-target-libgcc-math | |
32576 | ||
32577 | maintainer-clean-target-libgcc-math: | |
32578 | @: $(MAKE); $(unstage) | |
32579 | @[ -f $(TARGET_SUBDIR)/libgcc-math/Makefile ] || exit 0 ; \ | |
32580 | r=`${PWD_COMMAND}`; export r; \ | |
32581 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32582 | $(NORMAL_TARGET_EXPORTS) \ | |
32583 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc-math" ; \ | |
32584 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32585 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32586 | done; \ | |
32587 | (cd $(TARGET_SUBDIR)/libgcc-math && \ | |
32588 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32589 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32590 | "RANLIB=$${RANLIB}" \ | |
32591 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32592 | maintainer-clean) \ | |
32593 | || exit 1 | |
32594 | ||
32595 | @endif target-libgcc-math | |
32596 | ||
32597 | ||
32598 | ||
32599 | ||
32600 | ||
a7254363 PB |
32601 | .PHONY: configure-target-newlib maybe-configure-target-newlib |
32602 | maybe-configure-target-newlib: | |
32603 | @if target-newlib | |
32604 | maybe-configure-target-newlib: configure-target-newlib | |
c52c6897 | 32605 | configure-target-newlib: |
0aed8855 PB |
32606 | @: $(MAKE); $(unstage) |
32607 | @r=`${PWD_COMMAND}`; export r; \ | |
32608 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32609 | echo "Checking multilib configuration for newlib..."; \ | |
32610 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \ | |
32611 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \ | |
32612 | if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \ | |
32613 | if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \ | |
32614 | rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \ | |
32615 | else \ | |
32616 | rm -f $(TARGET_SUBDIR)/newlib/Makefile; \ | |
32617 | mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \ | |
32618 | fi; \ | |
32619 | else \ | |
32620 | mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \ | |
c52c6897 PB |
32621 | fi; \ |
32622 | test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \ | |
4b1cb4fe | 32623 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \ |
378fce5b | 32624 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
32625 | echo Configuring in $(TARGET_SUBDIR)/newlib; \ |
32626 | cd "$(TARGET_SUBDIR)/newlib" || exit 1; \ | |
32627 | case $(srcdir) in \ | |
b00612cc PB |
32628 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
32629 | *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \ | |
32630 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4b1cb4fe | 32631 | esac; \ |
b00612cc PB |
32632 | srcdiroption="--srcdir=$${topdir}/newlib"; \ |
32633 | libsrcdir="$$s/newlib"; \ | |
4b1cb4fe DD |
32634 | rm -f no-such-file || : ; \ |
32635 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 32636 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
4b1cb4fe | 32637 | || exit 1 |
6bd3dfaa | 32638 | @endif target-newlib |
4b1cb4fe | 32639 | |
a7254363 PB |
32640 | |
32641 | ||
d545f33b PB |
32642 | |
32643 | ||
4b1cb4fe DD |
32644 | .PHONY: all-target-newlib maybe-all-target-newlib |
32645 | maybe-all-target-newlib: | |
6bd3dfaa | 32646 | @if target-newlib |
72b2455a | 32647 | TARGET-target-newlib=all |
6bd3dfaa | 32648 | maybe-all-target-newlib: all-target-newlib |
4b1cb4fe | 32649 | all-target-newlib: configure-target-newlib |
0aed8855 | 32650 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
32651 | @r=`${PWD_COMMAND}`; export r; \ |
32652 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32653 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 32654 | (cd $(TARGET_SUBDIR)/newlib && \ |
a7254363 | 32655 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib)) |
6bd3dfaa | 32656 | @endif target-newlib |
4b1cb4fe | 32657 | |
a7254363 PB |
32658 | |
32659 | ||
d545f33b PB |
32660 | |
32661 | ||
4b1cb4fe DD |
32662 | .PHONY: check-target-newlib maybe-check-target-newlib |
32663 | maybe-check-target-newlib: | |
6bd3dfaa PB |
32664 | @if target-newlib |
32665 | maybe-check-target-newlib: check-target-newlib | |
4b1cb4fe DD |
32666 | |
32667 | check-target-newlib: | |
0aed8855 | 32668 | @: $(MAKE); $(unstage) |
b40e3958 L |
32669 | @r=`${PWD_COMMAND}`; export r; \ |
32670 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32671 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 32672 | (cd $(TARGET_SUBDIR)/newlib && \ |
7ffa0b57 | 32673 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 32674 | |
6bd3dfaa | 32675 | @endif target-newlib |
3866be5d | 32676 | |
4fa63067 NN |
32677 | .PHONY: install-target-newlib maybe-install-target-newlib |
32678 | maybe-install-target-newlib: | |
6bd3dfaa PB |
32679 | @if target-newlib |
32680 | maybe-install-target-newlib: install-target-newlib | |
e2b9e2dc | 32681 | |
4fa63067 | 32682 | install-target-newlib: installdirs |
0aed8855 | 32683 | @: $(MAKE); $(unstage) |
b40e3958 L |
32684 | @r=`${PWD_COMMAND}`; export r; \ |
32685 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32686 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 32687 | (cd $(TARGET_SUBDIR)/newlib && \ |
7ffa0b57 | 32688 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 32689 | |
6bd3dfaa | 32690 | @endif target-newlib |
3866be5d | 32691 | |
4fa63067 | 32692 | # Other targets (info, dvi, etc.) |
3866be5d | 32693 | |
4fa63067 NN |
32694 | .PHONY: maybe-info-target-newlib info-target-newlib |
32695 | maybe-info-target-newlib: | |
6bd3dfaa PB |
32696 | @if target-newlib |
32697 | maybe-info-target-newlib: info-target-newlib | |
3866be5d | 32698 | |
4fa63067 NN |
32699 | info-target-newlib: \ |
32700 | configure-target-newlib | |
0aed8855 | 32701 | @: $(MAKE); $(unstage) |
4fa63067 NN |
32702 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32703 | r=`${PWD_COMMAND}`; export r; \ | |
32704 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32705 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32706 | echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \ |
32707 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32708 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32709 | done; \ | |
32710 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32711 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32712 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32713 | "RANLIB=$${RANLIB}" \ | |
32714 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32715 | info) \ |
4fa63067 | 32716 | || exit 1 |
16ae0395 | 32717 | |
6bd3dfaa | 32718 | @endif target-newlib |
3866be5d | 32719 | |
4fa63067 NN |
32720 | .PHONY: maybe-dvi-target-newlib dvi-target-newlib |
32721 | maybe-dvi-target-newlib: | |
6bd3dfaa PB |
32722 | @if target-newlib |
32723 | maybe-dvi-target-newlib: dvi-target-newlib | |
3866be5d | 32724 | |
4fa63067 NN |
32725 | dvi-target-newlib: \ |
32726 | configure-target-newlib | |
0aed8855 | 32727 | @: $(MAKE); $(unstage) |
4fa63067 | 32728 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
b40e3958 L |
32729 | r=`${PWD_COMMAND}`; export r; \ |
32730 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32731 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32732 | echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \ |
32733 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32734 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32735 | done; \ | |
32736 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32737 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32738 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32739 | "RANLIB=$${RANLIB}" \ | |
32740 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32741 | dvi) \ |
e2b9e2dc NN |
32742 | || exit 1 |
32743 | ||
6bd3dfaa | 32744 | @endif target-newlib |
3866be5d | 32745 | |
6d389afc MS |
32746 | .PHONY: maybe-html-target-newlib html-target-newlib |
32747 | maybe-html-target-newlib: | |
32748 | @if target-newlib | |
32749 | maybe-html-target-newlib: html-target-newlib | |
32750 | ||
32751 | html-target-newlib: \ | |
32752 | configure-target-newlib | |
0aed8855 | 32753 | @: $(MAKE); $(unstage) |
6d389afc MS |
32754 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32755 | r=`${PWD_COMMAND}`; export r; \ | |
32756 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
32757 | $(NORMAL_TARGET_EXPORTS) \ |
32758 | echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \ | |
32759 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32760 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32761 | done; \ | |
32762 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32763 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32764 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32765 | "RANLIB=$${RANLIB}" \ | |
32766 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32767 | html) \ | |
32768 | || exit 1 | |
32769 | ||
32770 | @endif target-newlib | |
32771 | ||
4fa63067 NN |
32772 | .PHONY: maybe-TAGS-target-newlib TAGS-target-newlib |
32773 | maybe-TAGS-target-newlib: | |
6bd3dfaa PB |
32774 | @if target-newlib |
32775 | maybe-TAGS-target-newlib: TAGS-target-newlib | |
3866be5d | 32776 | |
4fa63067 NN |
32777 | TAGS-target-newlib: \ |
32778 | configure-target-newlib | |
0aed8855 | 32779 | @: $(MAKE); $(unstage) |
4fa63067 NN |
32780 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32781 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 32782 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 32783 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32784 | echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \ |
32785 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32786 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32787 | done; \ | |
32788 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32789 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32790 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32791 | "RANLIB=$${RANLIB}" \ | |
32792 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32793 | TAGS) \ |
4fa63067 | 32794 | || exit 1 |
3866be5d | 32795 | |
6bd3dfaa | 32796 | @endif target-newlib |
3866be5d | 32797 | |
4fa63067 NN |
32798 | .PHONY: maybe-install-info-target-newlib install-info-target-newlib |
32799 | maybe-install-info-target-newlib: | |
6bd3dfaa PB |
32800 | @if target-newlib |
32801 | maybe-install-info-target-newlib: install-info-target-newlib | |
16ae0395 | 32802 | |
4fa63067 NN |
32803 | install-info-target-newlib: \ |
32804 | configure-target-newlib \ | |
32805 | info-target-newlib | |
0aed8855 | 32806 | @: $(MAKE); $(unstage) |
4fa63067 NN |
32807 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32808 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 32809 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 32810 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32811 | echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \ |
32812 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32813 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32814 | done; \ | |
32815 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32816 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32817 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32818 | "RANLIB=$${RANLIB}" \ | |
32819 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32820 | install-info) \ |
4fa63067 | 32821 | || exit 1 |
3866be5d | 32822 | |
6bd3dfaa | 32823 | @endif target-newlib |
3866be5d | 32824 | |
108a6f8e CD |
32825 | .PHONY: maybe-install-html-target-newlib install-html-target-newlib |
32826 | maybe-install-html-target-newlib: | |
32827 | @if target-newlib | |
32828 | maybe-install-html-target-newlib: install-html-target-newlib | |
32829 | ||
32830 | install-html-target-newlib: \ | |
32831 | configure-target-newlib \ | |
32832 | html-target-newlib | |
32833 | @: $(MAKE); $(unstage) | |
32834 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ | |
32835 | r=`${PWD_COMMAND}`; export r; \ | |
32836 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32837 | $(NORMAL_TARGET_EXPORTS) \ | |
32838 | echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \ | |
32839 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32840 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32841 | done; \ | |
32842 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32843 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32844 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32845 | "RANLIB=$${RANLIB}" \ | |
32846 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
32847 | install-html) \ | |
32848 | || exit 1 | |
32849 | ||
32850 | @endif target-newlib | |
32851 | ||
4fa63067 NN |
32852 | .PHONY: maybe-installcheck-target-newlib installcheck-target-newlib |
32853 | maybe-installcheck-target-newlib: | |
6bd3dfaa PB |
32854 | @if target-newlib |
32855 | maybe-installcheck-target-newlib: installcheck-target-newlib | |
4fa63067 NN |
32856 | |
32857 | installcheck-target-newlib: \ | |
32858 | configure-target-newlib | |
0aed8855 | 32859 | @: $(MAKE); $(unstage) |
4fa63067 | 32860 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
b40e3958 L |
32861 | r=`${PWD_COMMAND}`; export r; \ |
32862 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32863 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32864 | echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \ |
32865 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32866 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32867 | done; \ | |
32868 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32869 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32870 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32871 | "RANLIB=$${RANLIB}" \ | |
32872 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32873 | installcheck) \ |
e2b9e2dc NN |
32874 | || exit 1 |
32875 | ||
6bd3dfaa | 32876 | @endif target-newlib |
3866be5d | 32877 | |
4fa63067 NN |
32878 | .PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib |
32879 | maybe-mostlyclean-target-newlib: | |
6bd3dfaa PB |
32880 | @if target-newlib |
32881 | maybe-mostlyclean-target-newlib: mostlyclean-target-newlib | |
3866be5d | 32882 | |
4fa63067 | 32883 | mostlyclean-target-newlib: |
0aed8855 | 32884 | @: $(MAKE); $(unstage) |
4fa63067 NN |
32885 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32886 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 32887 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 32888 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32889 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \ |
32890 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32891 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32892 | done; \ | |
32893 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32894 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32895 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32896 | "RANLIB=$${RANLIB}" \ | |
32897 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32898 | mostlyclean) \ |
4fa63067 | 32899 | || exit 1 |
3866be5d | 32900 | |
6bd3dfaa | 32901 | @endif target-newlib |
3866be5d | 32902 | |
4fa63067 NN |
32903 | .PHONY: maybe-clean-target-newlib clean-target-newlib |
32904 | maybe-clean-target-newlib: | |
6bd3dfaa PB |
32905 | @if target-newlib |
32906 | maybe-clean-target-newlib: clean-target-newlib | |
16ae0395 | 32907 | |
4fa63067 | 32908 | clean-target-newlib: |
0aed8855 | 32909 | @: $(MAKE); $(unstage) |
4fa63067 NN |
32910 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32911 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 32912 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 32913 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32914 | echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \ |
32915 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32916 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32917 | done; \ | |
32918 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32919 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32920 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32921 | "RANLIB=$${RANLIB}" \ | |
32922 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32923 | clean) \ |
4fa63067 | 32924 | || exit 1 |
3866be5d | 32925 | |
6bd3dfaa | 32926 | @endif target-newlib |
3866be5d | 32927 | |
4fa63067 NN |
32928 | .PHONY: maybe-distclean-target-newlib distclean-target-newlib |
32929 | maybe-distclean-target-newlib: | |
6bd3dfaa PB |
32930 | @if target-newlib |
32931 | maybe-distclean-target-newlib: distclean-target-newlib | |
4fa63067 NN |
32932 | |
32933 | distclean-target-newlib: | |
0aed8855 | 32934 | @: $(MAKE); $(unstage) |
4fa63067 | 32935 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
b40e3958 L |
32936 | r=`${PWD_COMMAND}`; export r; \ |
32937 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 32938 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32939 | echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \ |
32940 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32941 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32942 | done; \ | |
32943 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32944 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32945 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32946 | "RANLIB=$${RANLIB}" \ | |
32947 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32948 | distclean) \ |
e2b9e2dc NN |
32949 | || exit 1 |
32950 | ||
6bd3dfaa | 32951 | @endif target-newlib |
3866be5d | 32952 | |
4fa63067 NN |
32953 | .PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib |
32954 | maybe-maintainer-clean-target-newlib: | |
6bd3dfaa PB |
32955 | @if target-newlib |
32956 | maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib | |
3866be5d | 32957 | |
4fa63067 | 32958 | maintainer-clean-target-newlib: |
0aed8855 | 32959 | @: $(MAKE); $(unstage) |
4fa63067 NN |
32960 | @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \ |
32961 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 32962 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 32963 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
32964 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \ |
32965 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
32966 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
32967 | done; \ | |
32968 | (cd $(TARGET_SUBDIR)/newlib && \ | |
32969 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
32970 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
32971 | "RANLIB=$${RANLIB}" \ | |
32972 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 32973 | maintainer-clean) \ |
4fa63067 | 32974 | || exit 1 |
3866be5d | 32975 | |
6bd3dfaa | 32976 | @endif target-newlib |
3866be5d | 32977 | |
16ae0395 | 32978 | |
4b1cb4fe | 32979 | |
a7254363 | 32980 | |
4b1cb4fe | 32981 | |
a7254363 PB |
32982 | .PHONY: configure-target-libgfortran maybe-configure-target-libgfortran |
32983 | maybe-configure-target-libgfortran: | |
32984 | @if target-libgfortran | |
32985 | maybe-configure-target-libgfortran: configure-target-libgfortran | |
c52c6897 | 32986 | configure-target-libgfortran: |
0aed8855 PB |
32987 | @: $(MAKE); $(unstage) |
32988 | @r=`${PWD_COMMAND}`; export r; \ | |
32989 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
32990 | echo "Checking multilib configuration for libgfortran..."; \ | |
32991 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \ | |
32992 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \ | |
32993 | if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \ | |
32994 | if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \ | |
32995 | rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \ | |
32996 | else \ | |
32997 | rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \ | |
32998 | mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \ | |
32999 | fi; \ | |
33000 | else \ | |
33001 | mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \ | |
c52c6897 PB |
33002 | fi; \ |
33003 | test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \ | |
4b1cb4fe | 33004 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \ |
378fce5b | 33005 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33006 | echo Configuring in $(TARGET_SUBDIR)/libgfortran; \ |
33007 | cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \ | |
33008 | case $(srcdir) in \ | |
b00612cc PB |
33009 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33010 | *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \ | |
33011 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
4b1cb4fe | 33012 | esac; \ |
b00612cc PB |
33013 | srcdiroption="--srcdir=$${topdir}/libgfortran"; \ |
33014 | libsrcdir="$$s/libgfortran"; \ | |
4b1cb4fe DD |
33015 | rm -f no-such-file || : ; \ |
33016 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 33017 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
4b1cb4fe | 33018 | || exit 1 |
6bd3dfaa | 33019 | @endif target-libgfortran |
4b1cb4fe | 33020 | |
a7254363 PB |
33021 | |
33022 | ||
d545f33b PB |
33023 | |
33024 | ||
4b1cb4fe DD |
33025 | .PHONY: all-target-libgfortran maybe-all-target-libgfortran |
33026 | maybe-all-target-libgfortran: | |
6bd3dfaa | 33027 | @if target-libgfortran |
72b2455a | 33028 | TARGET-target-libgfortran=all |
6bd3dfaa | 33029 | maybe-all-target-libgfortran: all-target-libgfortran |
4b1cb4fe | 33030 | all-target-libgfortran: configure-target-libgfortran |
0aed8855 | 33031 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33032 | @r=`${PWD_COMMAND}`; export r; \ |
33033 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33034 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 33035 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
a7254363 | 33036 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran)) |
6bd3dfaa | 33037 | @endif target-libgfortran |
4b1cb4fe | 33038 | |
a7254363 PB |
33039 | |
33040 | ||
d545f33b PB |
33041 | |
33042 | ||
4b1cb4fe DD |
33043 | .PHONY: check-target-libgfortran maybe-check-target-libgfortran |
33044 | maybe-check-target-libgfortran: | |
6bd3dfaa PB |
33045 | @if target-libgfortran |
33046 | maybe-check-target-libgfortran: check-target-libgfortran | |
4b1cb4fe DD |
33047 | |
33048 | check-target-libgfortran: | |
0aed8855 | 33049 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33050 | @r=`${PWD_COMMAND}`; export r; \ |
33051 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33052 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 33053 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
7ffa0b57 | 33054 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4b1cb4fe | 33055 | |
6bd3dfaa | 33056 | @endif target-libgfortran |
4b1cb4fe DD |
33057 | |
33058 | .PHONY: install-target-libgfortran maybe-install-target-libgfortran | |
33059 | maybe-install-target-libgfortran: | |
6bd3dfaa PB |
33060 | @if target-libgfortran |
33061 | maybe-install-target-libgfortran: install-target-libgfortran | |
4b1cb4fe DD |
33062 | |
33063 | install-target-libgfortran: installdirs | |
0aed8855 | 33064 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33065 | @r=`${PWD_COMMAND}`; export r; \ |
33066 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33067 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe | 33068 | (cd $(TARGET_SUBDIR)/libgfortran && \ |
7ffa0b57 | 33069 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4b1cb4fe | 33070 | |
6bd3dfaa | 33071 | @endif target-libgfortran |
4b1cb4fe DD |
33072 | |
33073 | # Other targets (info, dvi, etc.) | |
33074 | ||
33075 | .PHONY: maybe-info-target-libgfortran info-target-libgfortran | |
33076 | maybe-info-target-libgfortran: | |
6bd3dfaa PB |
33077 | @if target-libgfortran |
33078 | maybe-info-target-libgfortran: info-target-libgfortran | |
4b1cb4fe DD |
33079 | |
33080 | info-target-libgfortran: \ | |
33081 | configure-target-libgfortran | |
0aed8855 | 33082 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33083 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33084 | r=`${PWD_COMMAND}`; export r; \ | |
33085 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33086 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33087 | echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \ |
33088 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33089 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33090 | done; \ | |
33091 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33092 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33093 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33094 | "RANLIB=$${RANLIB}" \ | |
33095 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33096 | info) \ |
4b1cb4fe DD |
33097 | || exit 1 |
33098 | ||
6bd3dfaa | 33099 | @endif target-libgfortran |
4b1cb4fe DD |
33100 | |
33101 | .PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran | |
33102 | maybe-dvi-target-libgfortran: | |
6bd3dfaa PB |
33103 | @if target-libgfortran |
33104 | maybe-dvi-target-libgfortran: dvi-target-libgfortran | |
4b1cb4fe DD |
33105 | |
33106 | dvi-target-libgfortran: \ | |
33107 | configure-target-libgfortran | |
0aed8855 | 33108 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33109 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33110 | r=`${PWD_COMMAND}`; export r; \ | |
33111 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33112 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33113 | echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \ |
33114 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33115 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33116 | done; \ | |
33117 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33118 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33119 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33120 | "RANLIB=$${RANLIB}" \ | |
33121 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33122 | dvi) \ |
4b1cb4fe DD |
33123 | || exit 1 |
33124 | ||
6bd3dfaa | 33125 | @endif target-libgfortran |
4b1cb4fe | 33126 | |
6d389afc MS |
33127 | .PHONY: maybe-html-target-libgfortran html-target-libgfortran |
33128 | maybe-html-target-libgfortran: | |
33129 | @if target-libgfortran | |
33130 | maybe-html-target-libgfortran: html-target-libgfortran | |
33131 | ||
33132 | html-target-libgfortran: \ | |
33133 | configure-target-libgfortran | |
0aed8855 | 33134 | @: $(MAKE); $(unstage) |
6d389afc MS |
33135 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33136 | r=`${PWD_COMMAND}`; export r; \ | |
33137 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
33138 | $(NORMAL_TARGET_EXPORTS) \ |
33139 | echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \ | |
33140 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33141 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33142 | done; \ | |
33143 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33144 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33145 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33146 | "RANLIB=$${RANLIB}" \ | |
33147 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
33148 | html) \ | |
33149 | || exit 1 | |
33150 | ||
33151 | @endif target-libgfortran | |
33152 | ||
4b1cb4fe DD |
33153 | .PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran |
33154 | maybe-TAGS-target-libgfortran: | |
6bd3dfaa PB |
33155 | @if target-libgfortran |
33156 | maybe-TAGS-target-libgfortran: TAGS-target-libgfortran | |
4b1cb4fe DD |
33157 | |
33158 | TAGS-target-libgfortran: \ | |
33159 | configure-target-libgfortran | |
0aed8855 | 33160 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33161 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33162 | r=`${PWD_COMMAND}`; export r; \ | |
33163 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33164 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33165 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \ |
33166 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33167 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33168 | done; \ | |
33169 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33170 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33171 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33172 | "RANLIB=$${RANLIB}" \ | |
33173 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33174 | TAGS) \ |
4b1cb4fe DD |
33175 | || exit 1 |
33176 | ||
6bd3dfaa | 33177 | @endif target-libgfortran |
4b1cb4fe DD |
33178 | |
33179 | .PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran | |
33180 | maybe-install-info-target-libgfortran: | |
6bd3dfaa PB |
33181 | @if target-libgfortran |
33182 | maybe-install-info-target-libgfortran: install-info-target-libgfortran | |
4b1cb4fe DD |
33183 | |
33184 | install-info-target-libgfortran: \ | |
33185 | configure-target-libgfortran \ | |
33186 | info-target-libgfortran | |
0aed8855 | 33187 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33188 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33189 | r=`${PWD_COMMAND}`; export r; \ | |
33190 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33191 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33192 | echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \ |
33193 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33194 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33195 | done; \ | |
33196 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33197 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33198 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33199 | "RANLIB=$${RANLIB}" \ | |
33200 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33201 | install-info) \ |
4b1cb4fe DD |
33202 | || exit 1 |
33203 | ||
6bd3dfaa | 33204 | @endif target-libgfortran |
4b1cb4fe | 33205 | |
108a6f8e CD |
33206 | .PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran |
33207 | maybe-install-html-target-libgfortran: | |
33208 | @if target-libgfortran | |
33209 | maybe-install-html-target-libgfortran: install-html-target-libgfortran | |
33210 | ||
33211 | install-html-target-libgfortran: \ | |
33212 | configure-target-libgfortran \ | |
33213 | html-target-libgfortran | |
33214 | @: $(MAKE); $(unstage) | |
33215 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ | |
33216 | r=`${PWD_COMMAND}`; export r; \ | |
33217 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33218 | $(NORMAL_TARGET_EXPORTS) \ | |
33219 | echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \ | |
33220 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33221 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33222 | done; \ | |
33223 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33224 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33225 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33226 | "RANLIB=$${RANLIB}" \ | |
33227 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
33228 | install-html) \ | |
33229 | || exit 1 | |
33230 | ||
33231 | @endif target-libgfortran | |
33232 | ||
4b1cb4fe DD |
33233 | .PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran |
33234 | maybe-installcheck-target-libgfortran: | |
6bd3dfaa PB |
33235 | @if target-libgfortran |
33236 | maybe-installcheck-target-libgfortran: installcheck-target-libgfortran | |
4b1cb4fe DD |
33237 | |
33238 | installcheck-target-libgfortran: \ | |
33239 | configure-target-libgfortran | |
0aed8855 | 33240 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33241 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33242 | r=`${PWD_COMMAND}`; export r; \ | |
33243 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33244 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33245 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \ |
33246 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33247 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33248 | done; \ | |
33249 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33250 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33251 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33252 | "RANLIB=$${RANLIB}" \ | |
33253 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33254 | installcheck) \ |
4b1cb4fe DD |
33255 | || exit 1 |
33256 | ||
6bd3dfaa | 33257 | @endif target-libgfortran |
4b1cb4fe DD |
33258 | |
33259 | .PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran | |
33260 | maybe-mostlyclean-target-libgfortran: | |
6bd3dfaa PB |
33261 | @if target-libgfortran |
33262 | maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran | |
4b1cb4fe DD |
33263 | |
33264 | mostlyclean-target-libgfortran: | |
0aed8855 | 33265 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33266 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33267 | r=`${PWD_COMMAND}`; export r; \ | |
33268 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33269 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33270 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \ |
33271 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33272 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33273 | done; \ | |
33274 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33275 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33276 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33277 | "RANLIB=$${RANLIB}" \ | |
33278 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33279 | mostlyclean) \ |
4b1cb4fe DD |
33280 | || exit 1 |
33281 | ||
6bd3dfaa | 33282 | @endif target-libgfortran |
4b1cb4fe DD |
33283 | |
33284 | .PHONY: maybe-clean-target-libgfortran clean-target-libgfortran | |
33285 | maybe-clean-target-libgfortran: | |
6bd3dfaa PB |
33286 | @if target-libgfortran |
33287 | maybe-clean-target-libgfortran: clean-target-libgfortran | |
4b1cb4fe DD |
33288 | |
33289 | clean-target-libgfortran: | |
0aed8855 | 33290 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33291 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33292 | r=`${PWD_COMMAND}`; export r; \ | |
33293 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33294 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33295 | echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \ |
33296 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33297 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33298 | done; \ | |
33299 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33300 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33301 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33302 | "RANLIB=$${RANLIB}" \ | |
33303 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33304 | clean) \ |
4b1cb4fe DD |
33305 | || exit 1 |
33306 | ||
6bd3dfaa | 33307 | @endif target-libgfortran |
4b1cb4fe DD |
33308 | |
33309 | .PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran | |
33310 | maybe-distclean-target-libgfortran: | |
6bd3dfaa PB |
33311 | @if target-libgfortran |
33312 | maybe-distclean-target-libgfortran: distclean-target-libgfortran | |
4b1cb4fe DD |
33313 | |
33314 | distclean-target-libgfortran: | |
0aed8855 | 33315 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33316 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33317 | r=`${PWD_COMMAND}`; export r; \ | |
33318 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33319 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33320 | echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \ |
33321 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33322 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33323 | done; \ | |
33324 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33325 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33326 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33327 | "RANLIB=$${RANLIB}" \ | |
33328 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33329 | distclean) \ |
4b1cb4fe DD |
33330 | || exit 1 |
33331 | ||
6bd3dfaa | 33332 | @endif target-libgfortran |
4b1cb4fe DD |
33333 | |
33334 | .PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran | |
33335 | maybe-maintainer-clean-target-libgfortran: | |
6bd3dfaa PB |
33336 | @if target-libgfortran |
33337 | maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran | |
4b1cb4fe DD |
33338 | |
33339 | maintainer-clean-target-libgfortran: | |
0aed8855 | 33340 | @: $(MAKE); $(unstage) |
4b1cb4fe DD |
33341 | @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \ |
33342 | r=`${PWD_COMMAND}`; export r; \ | |
33343 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33344 | $(NORMAL_TARGET_EXPORTS) \ |
4b1cb4fe DD |
33345 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \ |
33346 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33347 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33348 | done; \ | |
33349 | (cd $(TARGET_SUBDIR)/libgfortran && \ | |
33350 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33351 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33352 | "RANLIB=$${RANLIB}" \ | |
33353 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33354 | maintainer-clean) \ |
4b1cb4fe DD |
33355 | || exit 1 |
33356 | ||
6bd3dfaa | 33357 | @endif target-libgfortran |
4b1cb4fe DD |
33358 | |
33359 | ||
3866be5d | 33360 | |
a7254363 | 33361 | |
e90269c8 | 33362 | |
a7254363 PB |
33363 | .PHONY: configure-target-libobjc maybe-configure-target-libobjc |
33364 | maybe-configure-target-libobjc: | |
33365 | @if target-libobjc | |
33366 | maybe-configure-target-libobjc: configure-target-libobjc | |
c52c6897 | 33367 | configure-target-libobjc: |
0aed8855 PB |
33368 | @: $(MAKE); $(unstage) |
33369 | @r=`${PWD_COMMAND}`; export r; \ | |
33370 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33371 | echo "Checking multilib configuration for libobjc..."; \ | |
33372 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \ | |
33373 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \ | |
33374 | if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \ | |
33375 | if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \ | |
33376 | rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \ | |
33377 | else \ | |
33378 | rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \ | |
33379 | mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \ | |
33380 | fi; \ | |
33381 | else \ | |
33382 | mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \ | |
c52c6897 PB |
33383 | fi; \ |
33384 | test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \ | |
4fa63067 | 33385 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \ |
378fce5b | 33386 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33387 | echo Configuring in $(TARGET_SUBDIR)/libobjc; \ |
33388 | cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \ | |
e2b9e2dc | 33389 | case $(srcdir) in \ |
b00612cc PB |
33390 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33391 | *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \ | |
33392 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 33393 | esac; \ |
b00612cc PB |
33394 | srcdiroption="--srcdir=$${topdir}/libobjc"; \ |
33395 | libsrcdir="$$s/libobjc"; \ | |
4fa63067 NN |
33396 | rm -f no-such-file || : ; \ |
33397 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 33398 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 33399 | || exit 1 |
6bd3dfaa | 33400 | @endif target-libobjc |
e2b9e2dc | 33401 | |
a7254363 PB |
33402 | |
33403 | ||
d545f33b PB |
33404 | |
33405 | ||
4fa63067 NN |
33406 | .PHONY: all-target-libobjc maybe-all-target-libobjc |
33407 | maybe-all-target-libobjc: | |
6bd3dfaa | 33408 | @if target-libobjc |
72b2455a | 33409 | TARGET-target-libobjc=all |
6bd3dfaa | 33410 | maybe-all-target-libobjc: all-target-libobjc |
4fa63067 | 33411 | all-target-libobjc: configure-target-libobjc |
0aed8855 | 33412 | @: $(MAKE); $(unstage) |
b40e3958 L |
33413 | @r=`${PWD_COMMAND}`; export r; \ |
33414 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33415 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 33416 | (cd $(TARGET_SUBDIR)/libobjc && \ |
a7254363 | 33417 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc)) |
6bd3dfaa | 33418 | @endif target-libobjc |
3866be5d | 33419 | |
a7254363 PB |
33420 | |
33421 | ||
d545f33b PB |
33422 | |
33423 | ||
4fa63067 NN |
33424 | .PHONY: check-target-libobjc maybe-check-target-libobjc |
33425 | maybe-check-target-libobjc: | |
6bd3dfaa PB |
33426 | @if target-libobjc |
33427 | maybe-check-target-libobjc: check-target-libobjc | |
3866be5d | 33428 | |
4fa63067 | 33429 | check-target-libobjc: |
0aed8855 | 33430 | @: $(MAKE); $(unstage) |
b40e3958 L |
33431 | @r=`${PWD_COMMAND}`; export r; \ |
33432 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33433 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 33434 | (cd $(TARGET_SUBDIR)/libobjc && \ |
7ffa0b57 | 33435 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 33436 | |
6bd3dfaa | 33437 | @endif target-libobjc |
3866be5d | 33438 | |
4fa63067 NN |
33439 | .PHONY: install-target-libobjc maybe-install-target-libobjc |
33440 | maybe-install-target-libobjc: | |
6bd3dfaa PB |
33441 | @if target-libobjc |
33442 | maybe-install-target-libobjc: install-target-libobjc | |
e2b9e2dc | 33443 | |
4fa63067 | 33444 | install-target-libobjc: installdirs |
0aed8855 | 33445 | @: $(MAKE); $(unstage) |
b40e3958 L |
33446 | @r=`${PWD_COMMAND}`; export r; \ |
33447 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33448 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 33449 | (cd $(TARGET_SUBDIR)/libobjc && \ |
7ffa0b57 | 33450 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 33451 | |
6bd3dfaa | 33452 | @endif target-libobjc |
3866be5d | 33453 | |
4fa63067 NN |
33454 | # Other targets (info, dvi, etc.) |
33455 | ||
33456 | .PHONY: maybe-info-target-libobjc info-target-libobjc | |
33457 | maybe-info-target-libobjc: | |
6bd3dfaa PB |
33458 | @if target-libobjc |
33459 | maybe-info-target-libobjc: info-target-libobjc | |
4fa63067 NN |
33460 | |
33461 | info-target-libobjc: \ | |
33462 | configure-target-libobjc | |
0aed8855 | 33463 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33464 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33465 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33466 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33467 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33468 | echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \ |
33469 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33470 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33471 | done; \ | |
33472 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33473 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33474 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33475 | "RANLIB=$${RANLIB}" \ | |
33476 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33477 | info) \ |
4fa63067 | 33478 | || exit 1 |
3866be5d | 33479 | |
6bd3dfaa | 33480 | @endif target-libobjc |
3866be5d | 33481 | |
4fa63067 NN |
33482 | .PHONY: maybe-dvi-target-libobjc dvi-target-libobjc |
33483 | maybe-dvi-target-libobjc: | |
6bd3dfaa PB |
33484 | @if target-libobjc |
33485 | maybe-dvi-target-libobjc: dvi-target-libobjc | |
16ae0395 | 33486 | |
4fa63067 NN |
33487 | dvi-target-libobjc: \ |
33488 | configure-target-libobjc | |
0aed8855 | 33489 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33490 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33491 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33492 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33493 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33494 | echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \ |
33495 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33496 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33497 | done; \ | |
33498 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33499 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33500 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33501 | "RANLIB=$${RANLIB}" \ | |
33502 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33503 | dvi) \ |
4fa63067 | 33504 | || exit 1 |
3866be5d | 33505 | |
6bd3dfaa | 33506 | @endif target-libobjc |
3866be5d | 33507 | |
6d389afc MS |
33508 | .PHONY: maybe-html-target-libobjc html-target-libobjc |
33509 | maybe-html-target-libobjc: | |
33510 | @if target-libobjc | |
33511 | maybe-html-target-libobjc: html-target-libobjc | |
33512 | ||
33513 | html-target-libobjc: \ | |
33514 | configure-target-libobjc | |
0aed8855 | 33515 | @: $(MAKE); $(unstage) |
6d389afc MS |
33516 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33517 | r=`${PWD_COMMAND}`; export r; \ | |
33518 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
33519 | $(NORMAL_TARGET_EXPORTS) \ |
33520 | echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \ | |
33521 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33522 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33523 | done; \ | |
33524 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33525 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33526 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33527 | "RANLIB=$${RANLIB}" \ | |
33528 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
33529 | html) \ | |
33530 | || exit 1 | |
33531 | ||
33532 | @endif target-libobjc | |
33533 | ||
4fa63067 NN |
33534 | .PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc |
33535 | maybe-TAGS-target-libobjc: | |
6bd3dfaa PB |
33536 | @if target-libobjc |
33537 | maybe-TAGS-target-libobjc: TAGS-target-libobjc | |
4fa63067 NN |
33538 | |
33539 | TAGS-target-libobjc: \ | |
33540 | configure-target-libobjc | |
0aed8855 | 33541 | @: $(MAKE); $(unstage) |
4fa63067 | 33542 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
b40e3958 L |
33543 | r=`${PWD_COMMAND}`; export r; \ |
33544 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33545 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33546 | echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \ |
33547 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33548 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33549 | done; \ | |
33550 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33551 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33552 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33553 | "RANLIB=$${RANLIB}" \ | |
33554 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33555 | TAGS) \ |
e2b9e2dc NN |
33556 | || exit 1 |
33557 | ||
6bd3dfaa | 33558 | @endif target-libobjc |
4fa63067 NN |
33559 | |
33560 | .PHONY: maybe-install-info-target-libobjc install-info-target-libobjc | |
33561 | maybe-install-info-target-libobjc: | |
6bd3dfaa PB |
33562 | @if target-libobjc |
33563 | maybe-install-info-target-libobjc: install-info-target-libobjc | |
4fa63067 NN |
33564 | |
33565 | install-info-target-libobjc: \ | |
33566 | configure-target-libobjc \ | |
33567 | info-target-libobjc | |
0aed8855 | 33568 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33569 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33570 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33571 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33572 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33573 | echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \ |
33574 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33575 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33576 | done; \ | |
33577 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33578 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33579 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33580 | "RANLIB=$${RANLIB}" \ | |
33581 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33582 | install-info) \ |
4fa63067 | 33583 | || exit 1 |
3866be5d | 33584 | |
6bd3dfaa | 33585 | @endif target-libobjc |
3866be5d | 33586 | |
108a6f8e CD |
33587 | .PHONY: maybe-install-html-target-libobjc install-html-target-libobjc |
33588 | maybe-install-html-target-libobjc: | |
33589 | @if target-libobjc | |
33590 | maybe-install-html-target-libobjc: install-html-target-libobjc | |
33591 | ||
33592 | install-html-target-libobjc: \ | |
33593 | configure-target-libobjc \ | |
33594 | html-target-libobjc | |
33595 | @: $(MAKE); $(unstage) | |
33596 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ | |
33597 | r=`${PWD_COMMAND}`; export r; \ | |
33598 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33599 | $(NORMAL_TARGET_EXPORTS) \ | |
33600 | echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \ | |
33601 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33602 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33603 | done; \ | |
33604 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33605 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33606 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33607 | "RANLIB=$${RANLIB}" \ | |
33608 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
33609 | install-html) \ | |
33610 | || exit 1 | |
33611 | ||
33612 | @endif target-libobjc | |
33613 | ||
4fa63067 NN |
33614 | .PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc |
33615 | maybe-installcheck-target-libobjc: | |
6bd3dfaa PB |
33616 | @if target-libobjc |
33617 | maybe-installcheck-target-libobjc: installcheck-target-libobjc | |
4fa63067 NN |
33618 | |
33619 | installcheck-target-libobjc: \ | |
33620 | configure-target-libobjc | |
0aed8855 | 33621 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33622 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33623 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33624 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33625 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33626 | echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \ |
33627 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33628 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33629 | done; \ | |
33630 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33631 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33632 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33633 | "RANLIB=$${RANLIB}" \ | |
33634 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33635 | installcheck) \ |
4fa63067 | 33636 | || exit 1 |
3866be5d | 33637 | |
6bd3dfaa | 33638 | @endif target-libobjc |
3866be5d | 33639 | |
4fa63067 NN |
33640 | .PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc |
33641 | maybe-mostlyclean-target-libobjc: | |
6bd3dfaa PB |
33642 | @if target-libobjc |
33643 | maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc | |
16ae0395 | 33644 | |
4fa63067 | 33645 | mostlyclean-target-libobjc: |
0aed8855 | 33646 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33647 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33648 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33649 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33650 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33651 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \ |
33652 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33653 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33654 | done; \ | |
33655 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33656 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33657 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33658 | "RANLIB=$${RANLIB}" \ | |
33659 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33660 | mostlyclean) \ |
4fa63067 | 33661 | || exit 1 |
3866be5d | 33662 | |
6bd3dfaa | 33663 | @endif target-libobjc |
3866be5d | 33664 | |
4fa63067 NN |
33665 | .PHONY: maybe-clean-target-libobjc clean-target-libobjc |
33666 | maybe-clean-target-libobjc: | |
6bd3dfaa PB |
33667 | @if target-libobjc |
33668 | maybe-clean-target-libobjc: clean-target-libobjc | |
4fa63067 NN |
33669 | |
33670 | clean-target-libobjc: | |
0aed8855 | 33671 | @: $(MAKE); $(unstage) |
4fa63067 | 33672 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
b40e3958 L |
33673 | r=`${PWD_COMMAND}`; export r; \ |
33674 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33675 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33676 | echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \ |
33677 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33678 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33679 | done; \ | |
33680 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33681 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33682 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33683 | "RANLIB=$${RANLIB}" \ | |
33684 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33685 | clean) \ |
e2b9e2dc NN |
33686 | || exit 1 |
33687 | ||
6bd3dfaa | 33688 | @endif target-libobjc |
3866be5d | 33689 | |
4fa63067 NN |
33690 | .PHONY: maybe-distclean-target-libobjc distclean-target-libobjc |
33691 | maybe-distclean-target-libobjc: | |
6bd3dfaa PB |
33692 | @if target-libobjc |
33693 | maybe-distclean-target-libobjc: distclean-target-libobjc | |
3866be5d | 33694 | |
4fa63067 | 33695 | distclean-target-libobjc: |
0aed8855 | 33696 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33697 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33698 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33699 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33700 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33701 | echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \ |
33702 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33703 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33704 | done; \ | |
33705 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33706 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33707 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33708 | "RANLIB=$${RANLIB}" \ | |
33709 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33710 | distclean) \ |
4fa63067 | 33711 | || exit 1 |
3866be5d | 33712 | |
6bd3dfaa | 33713 | @endif target-libobjc |
3866be5d | 33714 | |
4fa63067 NN |
33715 | .PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc |
33716 | maybe-maintainer-clean-target-libobjc: | |
6bd3dfaa PB |
33717 | @if target-libobjc |
33718 | maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc | |
16ae0395 | 33719 | |
4fa63067 | 33720 | maintainer-clean-target-libobjc: |
0aed8855 | 33721 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33722 | @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \ |
33723 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33724 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33725 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33726 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \ |
33727 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33728 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33729 | done; \ | |
33730 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
33731 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33732 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33733 | "RANLIB=$${RANLIB}" \ | |
33734 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33735 | maintainer-clean) \ |
4fa63067 | 33736 | || exit 1 |
3866be5d | 33737 | |
6bd3dfaa | 33738 | @endif target-libobjc |
3866be5d | 33739 | |
4fa63067 | 33740 | |
4fa63067 | 33741 | |
a7254363 | 33742 | |
e90269c8 | 33743 | |
a7254363 PB |
33744 | .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap |
33745 | maybe-configure-target-libtermcap: | |
33746 | @if target-libtermcap | |
33747 | maybe-configure-target-libtermcap: configure-target-libtermcap | |
c52c6897 | 33748 | configure-target-libtermcap: |
0aed8855 PB |
33749 | @: $(MAKE); $(unstage) |
33750 | @r=`${PWD_COMMAND}`; export r; \ | |
33751 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33752 | echo "Checking multilib configuration for libtermcap..."; \ | |
33753 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \ | |
33754 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \ | |
33755 | if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \ | |
33756 | if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \ | |
33757 | rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \ | |
33758 | else \ | |
33759 | rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \ | |
33760 | mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \ | |
33761 | fi; \ | |
33762 | else \ | |
33763 | mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \ | |
c52c6897 PB |
33764 | fi; \ |
33765 | test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \ | |
4fa63067 | 33766 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \ |
378fce5b | 33767 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33768 | echo Configuring in $(TARGET_SUBDIR)/libtermcap; \ |
33769 | cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \ | |
e2b9e2dc | 33770 | case $(srcdir) in \ |
b00612cc PB |
33771 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
33772 | *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \ | |
33773 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 33774 | esac; \ |
b00612cc PB |
33775 | srcdiroption="--srcdir=$${topdir}/libtermcap"; \ |
33776 | libsrcdir="$$s/libtermcap"; \ | |
4fa63067 NN |
33777 | rm -f no-such-file || : ; \ |
33778 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 33779 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 33780 | || exit 1 |
6bd3dfaa | 33781 | @endif target-libtermcap |
e2b9e2dc | 33782 | |
a7254363 PB |
33783 | |
33784 | ||
d545f33b PB |
33785 | |
33786 | ||
4fa63067 NN |
33787 | .PHONY: all-target-libtermcap maybe-all-target-libtermcap |
33788 | maybe-all-target-libtermcap: | |
6bd3dfaa | 33789 | @if target-libtermcap |
72b2455a | 33790 | TARGET-target-libtermcap=all |
6bd3dfaa | 33791 | maybe-all-target-libtermcap: all-target-libtermcap |
4fa63067 | 33792 | all-target-libtermcap: configure-target-libtermcap |
0aed8855 | 33793 | @: $(MAKE); $(unstage) |
b40e3958 L |
33794 | @r=`${PWD_COMMAND}`; export r; \ |
33795 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33796 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 33797 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
a7254363 | 33798 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap)) |
6bd3dfaa | 33799 | @endif target-libtermcap |
3866be5d | 33800 | |
a7254363 PB |
33801 | |
33802 | ||
d545f33b PB |
33803 | |
33804 | ||
4fa63067 NN |
33805 | .PHONY: check-target-libtermcap maybe-check-target-libtermcap |
33806 | maybe-check-target-libtermcap: | |
6bd3dfaa PB |
33807 | @if target-libtermcap |
33808 | maybe-check-target-libtermcap: check-target-libtermcap | |
3866be5d | 33809 | |
4fa63067 NN |
33810 | # Dummy target for uncheckable module. |
33811 | check-target-libtermcap: | |
33812 | ||
6bd3dfaa | 33813 | @endif target-libtermcap |
4fa63067 NN |
33814 | |
33815 | .PHONY: install-target-libtermcap maybe-install-target-libtermcap | |
33816 | maybe-install-target-libtermcap: | |
6bd3dfaa PB |
33817 | @if target-libtermcap |
33818 | maybe-install-target-libtermcap: install-target-libtermcap | |
4fa63067 NN |
33819 | |
33820 | install-target-libtermcap: installdirs | |
0aed8855 | 33821 | @: $(MAKE); $(unstage) |
b40e3958 L |
33822 | @r=`${PWD_COMMAND}`; export r; \ |
33823 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33824 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 33825 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
7ffa0b57 | 33826 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 33827 | |
6bd3dfaa | 33828 | @endif target-libtermcap |
3866be5d | 33829 | |
4fa63067 | 33830 | # Other targets (info, dvi, etc.) |
16ae0395 | 33831 | |
4fa63067 NN |
33832 | .PHONY: maybe-info-target-libtermcap info-target-libtermcap |
33833 | maybe-info-target-libtermcap: | |
6bd3dfaa | 33834 | @if target-libtermcap |
6d389afc MS |
33835 | maybe-info-target-libtermcap: info-target-libtermcap |
33836 | ||
33837 | info-target-libtermcap: \ | |
33838 | configure-target-libtermcap | |
0aed8855 | 33839 | @: $(MAKE); $(unstage) |
6d389afc MS |
33840 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ |
33841 | r=`${PWD_COMMAND}`; export r; \ | |
33842 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
33843 | $(NORMAL_TARGET_EXPORTS) \ |
33844 | echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \ | |
33845 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33846 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33847 | done; \ | |
33848 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
33849 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33850 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33851 | "RANLIB=$${RANLIB}" \ | |
33852 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
33853 | info) \ | |
33854 | || exit 1 | |
33855 | ||
33856 | @endif target-libtermcap | |
33857 | ||
33858 | .PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap | |
33859 | maybe-dvi-target-libtermcap: | |
33860 | @if target-libtermcap | |
33861 | maybe-dvi-target-libtermcap: dvi-target-libtermcap | |
4fa63067 | 33862 | |
6d389afc | 33863 | dvi-target-libtermcap: \ |
4fa63067 | 33864 | configure-target-libtermcap |
0aed8855 | 33865 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33866 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ |
33867 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33869 | $(NORMAL_TARGET_EXPORTS) \ |
6d389afc | 33870 | echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \ |
4fa63067 NN |
33871 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33872 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33873 | done; \ | |
33874 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
33875 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33876 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33877 | "RANLIB=$${RANLIB}" \ | |
33878 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 33879 | dvi) \ |
4fa63067 | 33880 | || exit 1 |
3866be5d | 33881 | |
6bd3dfaa | 33882 | @endif target-libtermcap |
3866be5d | 33883 | |
6d389afc MS |
33884 | .PHONY: maybe-html-target-libtermcap html-target-libtermcap |
33885 | maybe-html-target-libtermcap: | |
6bd3dfaa | 33886 | @if target-libtermcap |
6d389afc | 33887 | maybe-html-target-libtermcap: html-target-libtermcap |
4fa63067 | 33888 | |
6d389afc | 33889 | html-target-libtermcap: \ |
4fa63067 | 33890 | configure-target-libtermcap |
0aed8855 | 33891 | @: $(MAKE); $(unstage) |
4fa63067 | 33892 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ |
b40e3958 L |
33893 | r=`${PWD_COMMAND}`; export r; \ |
33894 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33895 | $(NORMAL_TARGET_EXPORTS) \ |
6d389afc | 33896 | echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \ |
4fa63067 NN |
33897 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
33898 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33899 | done; \ | |
33900 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
33901 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33902 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33903 | "RANLIB=$${RANLIB}" \ | |
33904 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
6d389afc | 33905 | html) \ |
e2b9e2dc NN |
33906 | || exit 1 |
33907 | ||
6bd3dfaa | 33908 | @endif target-libtermcap |
4fa63067 NN |
33909 | |
33910 | .PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap | |
33911 | maybe-TAGS-target-libtermcap: | |
6bd3dfaa PB |
33912 | @if target-libtermcap |
33913 | maybe-TAGS-target-libtermcap: TAGS-target-libtermcap | |
4fa63067 NN |
33914 | |
33915 | TAGS-target-libtermcap: \ | |
33916 | configure-target-libtermcap | |
0aed8855 | 33917 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33918 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ |
33919 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 33920 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 33921 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33922 | echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \ |
33923 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33924 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33925 | done; \ | |
33926 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
33927 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33928 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33929 | "RANLIB=$${RANLIB}" \ | |
33930 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33931 | TAGS) \ |
4fa63067 | 33932 | || exit 1 |
3866be5d | 33933 | |
6bd3dfaa | 33934 | @endif target-libtermcap |
3866be5d | 33935 | |
4fa63067 NN |
33936 | .PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap |
33937 | maybe-install-info-target-libtermcap: | |
6bd3dfaa PB |
33938 | @if target-libtermcap |
33939 | maybe-install-info-target-libtermcap: install-info-target-libtermcap | |
3866be5d | 33940 | |
4fa63067 NN |
33941 | install-info-target-libtermcap: \ |
33942 | configure-target-libtermcap \ | |
33943 | info-target-libtermcap | |
0aed8855 | 33944 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33945 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ |
33946 | r=`${PWD_COMMAND}`; export r; \ | |
33947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 33948 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
33949 | echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \ |
33950 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33952 | done; \ | |
33953 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
33954 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33955 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33956 | "RANLIB=$${RANLIB}" \ | |
33957 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 33958 | install-info) \ |
4fa63067 | 33959 | || exit 1 |
3866be5d | 33960 | |
6bd3dfaa | 33961 | @endif target-libtermcap |
16ae0395 | 33962 | |
108a6f8e CD |
33963 | .PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap |
33964 | maybe-install-html-target-libtermcap: | |
33965 | @if target-libtermcap | |
33966 | maybe-install-html-target-libtermcap: install-html-target-libtermcap | |
33967 | ||
33968 | install-html-target-libtermcap: \ | |
33969 | configure-target-libtermcap \ | |
33970 | html-target-libtermcap | |
33971 | @: $(MAKE); $(unstage) | |
33972 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ | |
33973 | r=`${PWD_COMMAND}`; export r; \ | |
33974 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
33975 | $(NORMAL_TARGET_EXPORTS) \ | |
33976 | echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \ | |
33977 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
33978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
33979 | done; \ | |
33980 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
33981 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
33982 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
33983 | "RANLIB=$${RANLIB}" \ | |
33984 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
33985 | install-html) \ | |
33986 | || exit 1 | |
33987 | ||
33988 | @endif target-libtermcap | |
33989 | ||
4fa63067 NN |
33990 | .PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap |
33991 | maybe-installcheck-target-libtermcap: | |
6bd3dfaa PB |
33992 | @if target-libtermcap |
33993 | maybe-installcheck-target-libtermcap: installcheck-target-libtermcap | |
4fa63067 NN |
33994 | |
33995 | installcheck-target-libtermcap: \ | |
33996 | configure-target-libtermcap | |
0aed8855 | 33997 | @: $(MAKE); $(unstage) |
4fa63067 NN |
33998 | @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \ |
33999 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34000 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34001 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34002 | echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \ |
34003 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34005 | done; \ | |
34006 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
34007 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34008 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34009 | "RANLIB=$${RANLIB}" \ | |
34010 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34011 | installcheck) \ |
4fa63067 | 34012 | || exit 1 |
3866be5d | 34013 | |
6bd3dfaa | 34014 | @endif target-libtermcap |
3866be5d | 34015 | |
4fa63067 NN |
34016 | .PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap |
34017 | maybe-mostlyclean-target-libtermcap: | |
6bd3dfaa PB |
34018 | @if target-libtermcap |
34019 | maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap | |
4fa63067 NN |
34020 | |
34021 | # libtermcap doesn't support mostlyclean. | |
34022 | mostlyclean-target-libtermcap: | |
34023 | ||
6bd3dfaa | 34024 | @endif target-libtermcap |
4fa63067 NN |
34025 | |
34026 | .PHONY: maybe-clean-target-libtermcap clean-target-libtermcap | |
34027 | maybe-clean-target-libtermcap: | |
6bd3dfaa PB |
34028 | @if target-libtermcap |
34029 | maybe-clean-target-libtermcap: clean-target-libtermcap | |
4fa63067 NN |
34030 | |
34031 | # libtermcap doesn't support clean. | |
34032 | clean-target-libtermcap: | |
34033 | ||
6bd3dfaa | 34034 | @endif target-libtermcap |
4fa63067 NN |
34035 | |
34036 | .PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap | |
34037 | maybe-distclean-target-libtermcap: | |
6bd3dfaa PB |
34038 | @if target-libtermcap |
34039 | maybe-distclean-target-libtermcap: distclean-target-libtermcap | |
4fa63067 NN |
34040 | |
34041 | # libtermcap doesn't support distclean. | |
34042 | distclean-target-libtermcap: | |
34043 | ||
6bd3dfaa | 34044 | @endif target-libtermcap |
4fa63067 NN |
34045 | |
34046 | .PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap | |
34047 | maybe-maintainer-clean-target-libtermcap: | |
6bd3dfaa PB |
34048 | @if target-libtermcap |
34049 | maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap | |
4fa63067 NN |
34050 | |
34051 | # libtermcap doesn't support maintainer-clean. | |
34052 | maintainer-clean-target-libtermcap: | |
34053 | ||
6bd3dfaa | 34054 | @endif target-libtermcap |
4fa63067 NN |
34055 | |
34056 | ||
4fa63067 | 34057 | |
4fa63067 | 34058 | |
a7254363 PB |
34059 | |
34060 | .PHONY: configure-target-winsup maybe-configure-target-winsup | |
34061 | maybe-configure-target-winsup: | |
34062 | @if target-winsup | |
34063 | maybe-configure-target-winsup: configure-target-winsup | |
c52c6897 | 34064 | configure-target-winsup: |
0aed8855 PB |
34065 | @: $(MAKE); $(unstage) |
34066 | @r=`${PWD_COMMAND}`; export r; \ | |
34067 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34068 | echo "Checking multilib configuration for winsup..."; \ | |
34069 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \ | |
34070 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \ | |
34071 | if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \ | |
34072 | if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \ | |
34073 | rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \ | |
34074 | else \ | |
34075 | rm -f $(TARGET_SUBDIR)/winsup/Makefile; \ | |
34076 | mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \ | |
34077 | fi; \ | |
34078 | else \ | |
34079 | mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \ | |
c52c6897 PB |
34080 | fi; \ |
34081 | test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \ | |
4fa63067 | 34082 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \ |
378fce5b | 34083 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34084 | echo Configuring in $(TARGET_SUBDIR)/winsup; \ |
34085 | cd "$(TARGET_SUBDIR)/winsup" || exit 1; \ | |
e2b9e2dc | 34086 | case $(srcdir) in \ |
b00612cc PB |
34087 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
34088 | *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \ | |
34089 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 34090 | esac; \ |
b00612cc PB |
34091 | srcdiroption="--srcdir=$${topdir}/winsup"; \ |
34092 | libsrcdir="$$s/winsup"; \ | |
4fa63067 NN |
34093 | rm -f no-such-file || : ; \ |
34094 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 34095 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 34096 | || exit 1 |
6bd3dfaa | 34097 | @endif target-winsup |
e2b9e2dc | 34098 | |
a7254363 PB |
34099 | |
34100 | ||
d545f33b PB |
34101 | |
34102 | ||
4fa63067 NN |
34103 | .PHONY: all-target-winsup maybe-all-target-winsup |
34104 | maybe-all-target-winsup: | |
6bd3dfaa | 34105 | @if target-winsup |
72b2455a | 34106 | TARGET-target-winsup=all |
6bd3dfaa | 34107 | maybe-all-target-winsup: all-target-winsup |
4fa63067 | 34108 | all-target-winsup: configure-target-winsup |
0aed8855 | 34109 | @: $(MAKE); $(unstage) |
b40e3958 L |
34110 | @r=`${PWD_COMMAND}`; export r; \ |
34111 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34112 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34113 | (cd $(TARGET_SUBDIR)/winsup && \ |
a7254363 | 34114 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup)) |
6bd3dfaa | 34115 | @endif target-winsup |
3866be5d | 34116 | |
a7254363 PB |
34117 | |
34118 | ||
d545f33b PB |
34119 | |
34120 | ||
4fa63067 NN |
34121 | .PHONY: check-target-winsup maybe-check-target-winsup |
34122 | maybe-check-target-winsup: | |
6bd3dfaa PB |
34123 | @if target-winsup |
34124 | maybe-check-target-winsup: check-target-winsup | |
3866be5d | 34125 | |
4fa63067 | 34126 | check-target-winsup: |
0aed8855 | 34127 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34128 | @r=`${PWD_COMMAND}`; export r; \ |
34129 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34130 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34131 | (cd $(TARGET_SUBDIR)/winsup && \ |
7ffa0b57 | 34132 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
3866be5d | 34133 | |
6bd3dfaa | 34134 | @endif target-winsup |
3866be5d | 34135 | |
4fa63067 NN |
34136 | .PHONY: install-target-winsup maybe-install-target-winsup |
34137 | maybe-install-target-winsup: | |
6bd3dfaa PB |
34138 | @if target-winsup |
34139 | maybe-install-target-winsup: install-target-winsup | |
16ae0395 | 34140 | |
4fa63067 | 34141 | install-target-winsup: installdirs |
0aed8855 | 34142 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34143 | @r=`${PWD_COMMAND}`; export r; \ |
34144 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34145 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34146 | (cd $(TARGET_SUBDIR)/winsup && \ |
7ffa0b57 | 34147 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
3866be5d | 34148 | |
6bd3dfaa | 34149 | @endif target-winsup |
3866be5d | 34150 | |
4fa63067 NN |
34151 | # Other targets (info, dvi, etc.) |
34152 | ||
34153 | .PHONY: maybe-info-target-winsup info-target-winsup | |
34154 | maybe-info-target-winsup: | |
6bd3dfaa PB |
34155 | @if target-winsup |
34156 | maybe-info-target-winsup: info-target-winsup | |
4fa63067 NN |
34157 | |
34158 | info-target-winsup: \ | |
34159 | configure-target-winsup | |
0aed8855 | 34160 | @: $(MAKE); $(unstage) |
4fa63067 | 34161 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
b40e3958 L |
34162 | r=`${PWD_COMMAND}`; export r; \ |
34163 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34164 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34165 | echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \ |
34166 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34167 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34168 | done; \ | |
34169 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34170 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34171 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34172 | "RANLIB=$${RANLIB}" \ | |
34173 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34174 | info) \ |
e2b9e2dc NN |
34175 | || exit 1 |
34176 | ||
6bd3dfaa | 34177 | @endif target-winsup |
3866be5d | 34178 | |
4fa63067 NN |
34179 | .PHONY: maybe-dvi-target-winsup dvi-target-winsup |
34180 | maybe-dvi-target-winsup: | |
6bd3dfaa PB |
34181 | @if target-winsup |
34182 | maybe-dvi-target-winsup: dvi-target-winsup | |
3866be5d | 34183 | |
4fa63067 NN |
34184 | dvi-target-winsup: \ |
34185 | configure-target-winsup | |
0aed8855 | 34186 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34187 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34188 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34189 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34190 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34191 | echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \ |
34192 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34193 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34194 | done; \ | |
34195 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34196 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34197 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34198 | "RANLIB=$${RANLIB}" \ | |
34199 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34200 | dvi) \ |
4fa63067 | 34201 | || exit 1 |
3866be5d | 34202 | |
6bd3dfaa | 34203 | @endif target-winsup |
3866be5d | 34204 | |
6d389afc MS |
34205 | .PHONY: maybe-html-target-winsup html-target-winsup |
34206 | maybe-html-target-winsup: | |
34207 | @if target-winsup | |
34208 | maybe-html-target-winsup: html-target-winsup | |
34209 | ||
34210 | html-target-winsup: \ | |
34211 | configure-target-winsup | |
0aed8855 | 34212 | @: $(MAKE); $(unstage) |
6d389afc MS |
34213 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34214 | r=`${PWD_COMMAND}`; export r; \ | |
34215 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
34216 | $(NORMAL_TARGET_EXPORTS) \ |
34217 | echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \ | |
34218 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34219 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34220 | done; \ | |
34221 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34222 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34223 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34224 | "RANLIB=$${RANLIB}" \ | |
34225 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
34226 | html) \ | |
34227 | || exit 1 | |
34228 | ||
34229 | @endif target-winsup | |
34230 | ||
4fa63067 NN |
34231 | .PHONY: maybe-TAGS-target-winsup TAGS-target-winsup |
34232 | maybe-TAGS-target-winsup: | |
6bd3dfaa PB |
34233 | @if target-winsup |
34234 | maybe-TAGS-target-winsup: TAGS-target-winsup | |
16ae0395 | 34235 | |
4fa63067 NN |
34236 | TAGS-target-winsup: \ |
34237 | configure-target-winsup | |
0aed8855 | 34238 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34239 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34240 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34241 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34242 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34243 | echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \ |
34244 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34245 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34246 | done; \ | |
34247 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34248 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34249 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34250 | "RANLIB=$${RANLIB}" \ | |
34251 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34252 | TAGS) \ |
4fa63067 | 34253 | || exit 1 |
3866be5d | 34254 | |
6bd3dfaa | 34255 | @endif target-winsup |
3866be5d | 34256 | |
4fa63067 NN |
34257 | .PHONY: maybe-install-info-target-winsup install-info-target-winsup |
34258 | maybe-install-info-target-winsup: | |
6bd3dfaa PB |
34259 | @if target-winsup |
34260 | maybe-install-info-target-winsup: install-info-target-winsup | |
4fa63067 NN |
34261 | |
34262 | install-info-target-winsup: \ | |
34263 | configure-target-winsup \ | |
34264 | info-target-winsup | |
0aed8855 | 34265 | @: $(MAKE); $(unstage) |
4fa63067 | 34266 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
b40e3958 L |
34267 | r=`${PWD_COMMAND}`; export r; \ |
34268 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34269 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34270 | echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \ |
34271 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34272 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34273 | done; \ | |
34274 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34275 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34276 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34277 | "RANLIB=$${RANLIB}" \ | |
34278 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34279 | install-info) \ |
e2b9e2dc NN |
34280 | || exit 1 |
34281 | ||
6bd3dfaa | 34282 | @endif target-winsup |
4fa63067 | 34283 | |
108a6f8e CD |
34284 | .PHONY: maybe-install-html-target-winsup install-html-target-winsup |
34285 | maybe-install-html-target-winsup: | |
34286 | @if target-winsup | |
34287 | maybe-install-html-target-winsup: install-html-target-winsup | |
34288 | ||
34289 | install-html-target-winsup: \ | |
34290 | configure-target-winsup \ | |
34291 | html-target-winsup | |
34292 | @: $(MAKE); $(unstage) | |
34293 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ | |
34294 | r=`${PWD_COMMAND}`; export r; \ | |
34295 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34296 | $(NORMAL_TARGET_EXPORTS) \ | |
34297 | echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \ | |
34298 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34299 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34300 | done; \ | |
34301 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34302 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34303 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34304 | "RANLIB=$${RANLIB}" \ | |
34305 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
34306 | install-html) \ | |
34307 | || exit 1 | |
34308 | ||
34309 | @endif target-winsup | |
34310 | ||
4fa63067 NN |
34311 | .PHONY: maybe-installcheck-target-winsup installcheck-target-winsup |
34312 | maybe-installcheck-target-winsup: | |
6bd3dfaa PB |
34313 | @if target-winsup |
34314 | maybe-installcheck-target-winsup: installcheck-target-winsup | |
4fa63067 NN |
34315 | |
34316 | installcheck-target-winsup: \ | |
34317 | configure-target-winsup | |
0aed8855 | 34318 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34319 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34320 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34321 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34322 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34323 | echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \ |
34324 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34325 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34326 | done; \ | |
34327 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34328 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34329 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34330 | "RANLIB=$${RANLIB}" \ | |
34331 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34332 | installcheck) \ |
4fa63067 | 34333 | || exit 1 |
3866be5d | 34334 | |
6bd3dfaa | 34335 | @endif target-winsup |
3866be5d | 34336 | |
4fa63067 NN |
34337 | .PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup |
34338 | maybe-mostlyclean-target-winsup: | |
6bd3dfaa PB |
34339 | @if target-winsup |
34340 | maybe-mostlyclean-target-winsup: mostlyclean-target-winsup | |
4fa63067 NN |
34341 | |
34342 | mostlyclean-target-winsup: | |
0aed8855 | 34343 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34344 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34345 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34346 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34347 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34348 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \ |
34349 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34350 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34351 | done; \ | |
34352 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34353 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34354 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34355 | "RANLIB=$${RANLIB}" \ | |
34356 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34357 | mostlyclean) \ |
4fa63067 | 34358 | || exit 1 |
3866be5d | 34359 | |
6bd3dfaa | 34360 | @endif target-winsup |
3866be5d | 34361 | |
4fa63067 NN |
34362 | .PHONY: maybe-clean-target-winsup clean-target-winsup |
34363 | maybe-clean-target-winsup: | |
6bd3dfaa PB |
34364 | @if target-winsup |
34365 | maybe-clean-target-winsup: clean-target-winsup | |
16ae0395 | 34366 | |
4fa63067 | 34367 | clean-target-winsup: |
0aed8855 | 34368 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34369 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34370 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34371 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34372 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34373 | echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \ |
34374 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34375 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34376 | done; \ | |
34377 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34378 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34379 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34380 | "RANLIB=$${RANLIB}" \ | |
34381 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34382 | clean) \ |
4fa63067 | 34383 | || exit 1 |
3866be5d | 34384 | |
6bd3dfaa | 34385 | @endif target-winsup |
3866be5d | 34386 | |
4fa63067 NN |
34387 | .PHONY: maybe-distclean-target-winsup distclean-target-winsup |
34388 | maybe-distclean-target-winsup: | |
6bd3dfaa PB |
34389 | @if target-winsup |
34390 | maybe-distclean-target-winsup: distclean-target-winsup | |
4fa63067 NN |
34391 | |
34392 | distclean-target-winsup: | |
0aed8855 | 34393 | @: $(MAKE); $(unstage) |
4fa63067 | 34394 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
b40e3958 L |
34395 | r=`${PWD_COMMAND}`; export r; \ |
34396 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34397 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34398 | echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \ |
34399 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34400 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34401 | done; \ | |
34402 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34403 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34404 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34405 | "RANLIB=$${RANLIB}" \ | |
34406 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34407 | distclean) \ |
e2b9e2dc NN |
34408 | || exit 1 |
34409 | ||
6bd3dfaa | 34410 | @endif target-winsup |
3866be5d | 34411 | |
4fa63067 NN |
34412 | .PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup |
34413 | maybe-maintainer-clean-target-winsup: | |
6bd3dfaa PB |
34414 | @if target-winsup |
34415 | maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup | |
3866be5d | 34416 | |
4fa63067 | 34417 | maintainer-clean-target-winsup: |
0aed8855 | 34418 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34419 | @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \ |
34420 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34421 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34422 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34423 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \ |
34424 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34425 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34426 | done; \ | |
34427 | (cd $(TARGET_SUBDIR)/winsup && \ | |
34428 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34429 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34430 | "RANLIB=$${RANLIB}" \ | |
34431 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34432 | maintainer-clean) \ |
4fa63067 | 34433 | || exit 1 |
3866be5d | 34434 | |
6bd3dfaa | 34435 | @endif target-winsup |
3866be5d | 34436 | |
16ae0395 | 34437 | |
3866be5d | 34438 | |
e90269c8 | 34439 | |
a7254363 PB |
34440 | |
34441 | .PHONY: configure-target-libgloss maybe-configure-target-libgloss | |
34442 | maybe-configure-target-libgloss: | |
34443 | @if target-libgloss | |
34444 | maybe-configure-target-libgloss: configure-target-libgloss | |
c52c6897 | 34445 | configure-target-libgloss: |
0aed8855 PB |
34446 | @: $(MAKE); $(unstage) |
34447 | @r=`${PWD_COMMAND}`; export r; \ | |
34448 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34449 | echo "Checking multilib configuration for libgloss..."; \ | |
34450 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \ | |
34451 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \ | |
34452 | if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \ | |
34453 | if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \ | |
34454 | rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \ | |
34455 | else \ | |
34456 | rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \ | |
34457 | mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \ | |
34458 | fi; \ | |
34459 | else \ | |
34460 | mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \ | |
c52c6897 PB |
34461 | fi; \ |
34462 | test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \ | |
4fa63067 | 34463 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \ |
378fce5b | 34464 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34465 | echo Configuring in $(TARGET_SUBDIR)/libgloss; \ |
34466 | cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \ | |
e2b9e2dc | 34467 | case $(srcdir) in \ |
b00612cc PB |
34468 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
34469 | *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \ | |
34470 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
e2b9e2dc | 34471 | esac; \ |
b00612cc PB |
34472 | srcdiroption="--srcdir=$${topdir}/libgloss"; \ |
34473 | libsrcdir="$$s/libgloss"; \ | |
4fa63067 NN |
34474 | rm -f no-such-file || : ; \ |
34475 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 34476 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
e2b9e2dc | 34477 | || exit 1 |
6bd3dfaa | 34478 | @endif target-libgloss |
e2b9e2dc | 34479 | |
a7254363 PB |
34480 | |
34481 | ||
d545f33b PB |
34482 | |
34483 | ||
4fa63067 NN |
34484 | .PHONY: all-target-libgloss maybe-all-target-libgloss |
34485 | maybe-all-target-libgloss: | |
6bd3dfaa | 34486 | @if target-libgloss |
72b2455a | 34487 | TARGET-target-libgloss=all |
6bd3dfaa | 34488 | maybe-all-target-libgloss: all-target-libgloss |
4fa63067 | 34489 | all-target-libgloss: configure-target-libgloss |
0aed8855 | 34490 | @: $(MAKE); $(unstage) |
b40e3958 L |
34491 | @r=`${PWD_COMMAND}`; export r; \ |
34492 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34493 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34494 | (cd $(TARGET_SUBDIR)/libgloss && \ |
a7254363 | 34495 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss)) |
6bd3dfaa | 34496 | @endif target-libgloss |
e393202e | 34497 | |
a7254363 PB |
34498 | |
34499 | ||
d545f33b PB |
34500 | |
34501 | ||
4fa63067 NN |
34502 | .PHONY: check-target-libgloss maybe-check-target-libgloss |
34503 | maybe-check-target-libgloss: | |
6bd3dfaa PB |
34504 | @if target-libgloss |
34505 | maybe-check-target-libgloss: check-target-libgloss | |
e393202e | 34506 | |
4fa63067 NN |
34507 | # Dummy target for uncheckable module. |
34508 | check-target-libgloss: | |
e393202e | 34509 | |
6bd3dfaa | 34510 | @endif target-libgloss |
e393202e | 34511 | |
4fa63067 NN |
34512 | .PHONY: install-target-libgloss maybe-install-target-libgloss |
34513 | maybe-install-target-libgloss: | |
6bd3dfaa PB |
34514 | @if target-libgloss |
34515 | maybe-install-target-libgloss: install-target-libgloss | |
16ae0395 | 34516 | |
4fa63067 | 34517 | install-target-libgloss: installdirs |
0aed8855 | 34518 | @: $(MAKE); $(unstage) |
b40e3958 L |
34519 | @r=`${PWD_COMMAND}`; export r; \ |
34520 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34521 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34522 | (cd $(TARGET_SUBDIR)/libgloss && \ |
7ffa0b57 | 34523 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 34524 | |
6bd3dfaa | 34525 | @endif target-libgloss |
3866be5d | 34526 | |
4fa63067 NN |
34527 | # Other targets (info, dvi, etc.) |
34528 | ||
34529 | .PHONY: maybe-info-target-libgloss info-target-libgloss | |
34530 | maybe-info-target-libgloss: | |
6bd3dfaa PB |
34531 | @if target-libgloss |
34532 | maybe-info-target-libgloss: info-target-libgloss | |
4fa63067 NN |
34533 | |
34534 | info-target-libgloss: \ | |
34535 | configure-target-libgloss | |
0aed8855 | 34536 | @: $(MAKE); $(unstage) |
4fa63067 | 34537 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
b40e3958 L |
34538 | r=`${PWD_COMMAND}`; export r; \ |
34539 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34540 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34541 | echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \ |
34542 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34543 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34544 | done; \ | |
34545 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34546 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34547 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34548 | "RANLIB=$${RANLIB}" \ | |
34549 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34550 | info) \ |
ce5b542e MC |
34551 | || exit 1 |
34552 | ||
6bd3dfaa | 34553 | @endif target-libgloss |
ce5b542e | 34554 | |
4fa63067 NN |
34555 | .PHONY: maybe-dvi-target-libgloss dvi-target-libgloss |
34556 | maybe-dvi-target-libgloss: | |
6bd3dfaa PB |
34557 | @if target-libgloss |
34558 | maybe-dvi-target-libgloss: dvi-target-libgloss | |
ce5b542e | 34559 | |
4fa63067 NN |
34560 | dvi-target-libgloss: \ |
34561 | configure-target-libgloss | |
0aed8855 | 34562 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34563 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34564 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34565 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34566 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34567 | echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \ |
34568 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34569 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34570 | done; \ | |
34571 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34572 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34573 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34574 | "RANLIB=$${RANLIB}" \ | |
34575 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34576 | dvi) \ |
4fa63067 | 34577 | || exit 1 |
ce5b542e | 34578 | |
6bd3dfaa | 34579 | @endif target-libgloss |
ce5b542e | 34580 | |
6d389afc MS |
34581 | .PHONY: maybe-html-target-libgloss html-target-libgloss |
34582 | maybe-html-target-libgloss: | |
34583 | @if target-libgloss | |
34584 | maybe-html-target-libgloss: html-target-libgloss | |
34585 | ||
34586 | html-target-libgloss: \ | |
34587 | configure-target-libgloss | |
0aed8855 | 34588 | @: $(MAKE); $(unstage) |
6d389afc MS |
34589 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34590 | r=`${PWD_COMMAND}`; export r; \ | |
34591 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
34592 | $(NORMAL_TARGET_EXPORTS) \ |
34593 | echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \ | |
34594 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34595 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34596 | done; \ | |
34597 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34598 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34599 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34600 | "RANLIB=$${RANLIB}" \ | |
34601 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
34602 | html) \ | |
34603 | || exit 1 | |
34604 | ||
34605 | @endif target-libgloss | |
34606 | ||
4fa63067 NN |
34607 | .PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss |
34608 | maybe-TAGS-target-libgloss: | |
6bd3dfaa PB |
34609 | @if target-libgloss |
34610 | maybe-TAGS-target-libgloss: TAGS-target-libgloss | |
16ae0395 | 34611 | |
4fa63067 NN |
34612 | TAGS-target-libgloss: \ |
34613 | configure-target-libgloss | |
0aed8855 | 34614 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34615 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34616 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34617 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34618 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34619 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \ |
34620 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34621 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34622 | done; \ | |
34623 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34624 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34625 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34626 | "RANLIB=$${RANLIB}" \ | |
34627 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34628 | TAGS) \ |
4fa63067 | 34629 | || exit 1 |
ce5b542e | 34630 | |
6bd3dfaa | 34631 | @endif target-libgloss |
ce5b542e | 34632 | |
4fa63067 NN |
34633 | .PHONY: maybe-install-info-target-libgloss install-info-target-libgloss |
34634 | maybe-install-info-target-libgloss: | |
6bd3dfaa PB |
34635 | @if target-libgloss |
34636 | maybe-install-info-target-libgloss: install-info-target-libgloss | |
4fa63067 NN |
34637 | |
34638 | install-info-target-libgloss: \ | |
34639 | configure-target-libgloss \ | |
34640 | info-target-libgloss | |
0aed8855 | 34641 | @: $(MAKE); $(unstage) |
4fa63067 | 34642 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
b40e3958 L |
34643 | r=`${PWD_COMMAND}`; export r; \ |
34644 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34645 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34646 | echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \ |
34647 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34648 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34649 | done; \ | |
34650 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34651 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34652 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34653 | "RANLIB=$${RANLIB}" \ | |
34654 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34655 | install-info) \ |
e2b9e2dc NN |
34656 | || exit 1 |
34657 | ||
6bd3dfaa | 34658 | @endif target-libgloss |
e393202e | 34659 | |
108a6f8e CD |
34660 | .PHONY: maybe-install-html-target-libgloss install-html-target-libgloss |
34661 | maybe-install-html-target-libgloss: | |
34662 | @if target-libgloss | |
34663 | maybe-install-html-target-libgloss: install-html-target-libgloss | |
34664 | ||
34665 | install-html-target-libgloss: \ | |
34666 | configure-target-libgloss \ | |
34667 | html-target-libgloss | |
34668 | @: $(MAKE); $(unstage) | |
34669 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ | |
34670 | r=`${PWD_COMMAND}`; export r; \ | |
34671 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34672 | $(NORMAL_TARGET_EXPORTS) \ | |
34673 | echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \ | |
34674 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34675 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34676 | done; \ | |
34677 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34678 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34679 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34680 | "RANLIB=$${RANLIB}" \ | |
34681 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
34682 | install-html) \ | |
34683 | || exit 1 | |
34684 | ||
34685 | @endif target-libgloss | |
34686 | ||
4fa63067 NN |
34687 | .PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss |
34688 | maybe-installcheck-target-libgloss: | |
6bd3dfaa PB |
34689 | @if target-libgloss |
34690 | maybe-installcheck-target-libgloss: installcheck-target-libgloss | |
e393202e | 34691 | |
4fa63067 NN |
34692 | installcheck-target-libgloss: \ |
34693 | configure-target-libgloss | |
0aed8855 | 34694 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34695 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34696 | r=`${PWD_COMMAND}`; export r; \ | |
34697 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34698 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34699 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \ |
34700 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34701 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34702 | done; \ | |
34703 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34704 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34705 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34706 | "RANLIB=$${RANLIB}" \ | |
34707 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34708 | installcheck) \ |
4fa63067 | 34709 | || exit 1 |
3866be5d | 34710 | |
6bd3dfaa | 34711 | @endif target-libgloss |
3866be5d | 34712 | |
4fa63067 NN |
34713 | .PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss |
34714 | maybe-mostlyclean-target-libgloss: | |
6bd3dfaa PB |
34715 | @if target-libgloss |
34716 | maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss | |
16ae0395 | 34717 | |
4fa63067 | 34718 | mostlyclean-target-libgloss: |
0aed8855 | 34719 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34720 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34721 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34722 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34723 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34724 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \ |
34725 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34726 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34727 | done; \ | |
34728 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34729 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34730 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34731 | "RANLIB=$${RANLIB}" \ | |
34732 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34733 | mostlyclean) \ |
4fa63067 | 34734 | || exit 1 |
e393202e | 34735 | |
6bd3dfaa | 34736 | @endif target-libgloss |
3866be5d | 34737 | |
4fa63067 NN |
34738 | .PHONY: maybe-clean-target-libgloss clean-target-libgloss |
34739 | maybe-clean-target-libgloss: | |
6bd3dfaa PB |
34740 | @if target-libgloss |
34741 | maybe-clean-target-libgloss: clean-target-libgloss | |
4fa63067 NN |
34742 | |
34743 | clean-target-libgloss: | |
0aed8855 | 34744 | @: $(MAKE); $(unstage) |
4fa63067 | 34745 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
b40e3958 L |
34746 | r=`${PWD_COMMAND}`; export r; \ |
34747 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34748 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34749 | echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \ |
34750 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34751 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34752 | done; \ | |
34753 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34754 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34755 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34756 | "RANLIB=$${RANLIB}" \ | |
34757 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34758 | clean) \ |
e2b9e2dc NN |
34759 | || exit 1 |
34760 | ||
6bd3dfaa | 34761 | @endif target-libgloss |
e393202e | 34762 | |
4fa63067 NN |
34763 | .PHONY: maybe-distclean-target-libgloss distclean-target-libgloss |
34764 | maybe-distclean-target-libgloss: | |
6bd3dfaa PB |
34765 | @if target-libgloss |
34766 | maybe-distclean-target-libgloss: distclean-target-libgloss | |
3866be5d | 34767 | |
4fa63067 | 34768 | distclean-target-libgloss: |
0aed8855 | 34769 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34770 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34771 | r=`${PWD_COMMAND}`; export r; \ | |
34772 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34773 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34774 | echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \ |
34775 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34776 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34777 | done; \ | |
34778 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34779 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34780 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34781 | "RANLIB=$${RANLIB}" \ | |
34782 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34783 | distclean) \ |
4fa63067 | 34784 | || exit 1 |
3866be5d | 34785 | |
6bd3dfaa | 34786 | @endif target-libgloss |
3866be5d | 34787 | |
4fa63067 NN |
34788 | .PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss |
34789 | maybe-maintainer-clean-target-libgloss: | |
6bd3dfaa PB |
34790 | @if target-libgloss |
34791 | maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss | |
16ae0395 | 34792 | |
4fa63067 | 34793 | maintainer-clean-target-libgloss: |
0aed8855 | 34794 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34795 | @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \ |
34796 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 34797 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 34798 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34799 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \ |
34800 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34801 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34802 | done; \ | |
34803 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
34804 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34805 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34806 | "RANLIB=$${RANLIB}" \ | |
34807 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34808 | maintainer-clean) \ |
4fa63067 | 34809 | || exit 1 |
3866be5d | 34810 | |
6bd3dfaa | 34811 | @endif target-libgloss |
3866be5d | 34812 | |
e393202e | 34813 | |
15723a45 | 34814 | |
e90269c8 | 34815 | |
a7254363 PB |
34816 | |
34817 | .PHONY: configure-target-libiberty maybe-configure-target-libiberty | |
34818 | maybe-configure-target-libiberty: | |
34819 | @if target-libiberty | |
34820 | maybe-configure-target-libiberty: configure-target-libiberty | |
c52c6897 | 34821 | configure-target-libiberty: |
0aed8855 PB |
34822 | @: $(MAKE); $(unstage) |
34823 | @r=`${PWD_COMMAND}`; export r; \ | |
34824 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
34825 | echo "Checking multilib configuration for libiberty..."; \ | |
34826 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \ | |
34827 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.tmp 2> /dev/null ; \ | |
34828 | if test -r $(TARGET_SUBDIR)/libiberty/multilib.out; then \ | |
34829 | if cmp -s $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; then \ | |
34830 | rm -f $(TARGET_SUBDIR)/libiberty/multilib.tmp; \ | |
34831 | else \ | |
34832 | rm -f $(TARGET_SUBDIR)/libiberty/Makefile; \ | |
34833 | mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \ | |
34834 | fi; \ | |
34835 | else \ | |
34836 | mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \ | |
c52c6897 PB |
34837 | fi; \ |
34838 | test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \ | |
4fa63067 | 34839 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \ |
378fce5b | 34840 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34841 | echo Configuring in $(TARGET_SUBDIR)/libiberty; \ |
34842 | cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \ | |
bba45b8b | 34843 | case $(srcdir) in \ |
b00612cc PB |
34844 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
34845 | *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \ | |
34846 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 34847 | esac; \ |
b00612cc PB |
34848 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ |
34849 | libsrcdir="$$s/libiberty"; \ | |
bba45b8b NN |
34850 | rm -f no-such-file || : ; \ |
34851 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 34852 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 34853 | || exit 1 |
6bd3dfaa | 34854 | @endif target-libiberty |
e393202e | 34855 | |
a7254363 PB |
34856 | |
34857 | ||
d545f33b PB |
34858 | |
34859 | ||
4fa63067 NN |
34860 | .PHONY: all-target-libiberty maybe-all-target-libiberty |
34861 | maybe-all-target-libiberty: | |
6bd3dfaa | 34862 | @if target-libiberty |
72b2455a | 34863 | TARGET-target-libiberty=all |
6bd3dfaa | 34864 | maybe-all-target-libiberty: all-target-libiberty |
4fa63067 | 34865 | all-target-libiberty: configure-target-libiberty |
0aed8855 | 34866 | @: $(MAKE); $(unstage) |
b40e3958 L |
34867 | @r=`${PWD_COMMAND}`; export r; \ |
34868 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34869 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34870 | (cd $(TARGET_SUBDIR)/libiberty && \ |
a7254363 | 34871 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty)) |
6bd3dfaa | 34872 | @endif target-libiberty |
e393202e | 34873 | |
a7254363 PB |
34874 | |
34875 | ||
d545f33b PB |
34876 | |
34877 | ||
4fa63067 NN |
34878 | .PHONY: check-target-libiberty maybe-check-target-libiberty |
34879 | maybe-check-target-libiberty: | |
6bd3dfaa PB |
34880 | @if target-libiberty |
34881 | maybe-check-target-libiberty: check-target-libiberty | |
16ae0395 | 34882 | |
4fa63067 | 34883 | check-target-libiberty: |
0aed8855 | 34884 | @: $(MAKE); $(unstage) |
b40e3958 L |
34885 | @r=`${PWD_COMMAND}`; export r; \ |
34886 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34887 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34888 | (cd $(TARGET_SUBDIR)/libiberty && \ |
7ffa0b57 | 34889 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 34890 | |
6bd3dfaa | 34891 | @endif target-libiberty |
e393202e | 34892 | |
4fa63067 NN |
34893 | .PHONY: install-target-libiberty maybe-install-target-libiberty |
34894 | maybe-install-target-libiberty: | |
6bd3dfaa PB |
34895 | @if target-libiberty |
34896 | maybe-install-target-libiberty: install-target-libiberty | |
4fa63067 NN |
34897 | |
34898 | install-target-libiberty: installdirs | |
0aed8855 | 34899 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34900 | @r=`${PWD_COMMAND}`; export r; \ |
34901 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34902 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 34903 | (cd $(TARGET_SUBDIR)/libiberty && \ |
7ffa0b57 | 34904 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 34905 | |
6bd3dfaa | 34906 | @endif target-libiberty |
4fa63067 NN |
34907 | |
34908 | # Other targets (info, dvi, etc.) | |
34909 | ||
34910 | .PHONY: maybe-info-target-libiberty info-target-libiberty | |
34911 | maybe-info-target-libiberty: | |
6bd3dfaa PB |
34912 | @if target-libiberty |
34913 | maybe-info-target-libiberty: info-target-libiberty | |
4fa63067 NN |
34914 | |
34915 | info-target-libiberty: \ | |
34916 | configure-target-libiberty | |
0aed8855 | 34917 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34918 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
34919 | r=`${PWD_COMMAND}`; export r; \ | |
34920 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34921 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34922 | echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \ |
34923 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34924 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34925 | done; \ | |
34926 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
34927 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34928 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34929 | "RANLIB=$${RANLIB}" \ | |
34930 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34931 | info) \ |
4fa63067 NN |
34932 | || exit 1 |
34933 | ||
6bd3dfaa | 34934 | @endif target-libiberty |
4fa63067 NN |
34935 | |
34936 | .PHONY: maybe-dvi-target-libiberty dvi-target-libiberty | |
34937 | maybe-dvi-target-libiberty: | |
6bd3dfaa PB |
34938 | @if target-libiberty |
34939 | maybe-dvi-target-libiberty: dvi-target-libiberty | |
4fa63067 NN |
34940 | |
34941 | dvi-target-libiberty: \ | |
34942 | configure-target-libiberty | |
0aed8855 | 34943 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34944 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
34945 | r=`${PWD_COMMAND}`; export r; \ | |
34946 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34947 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
34948 | echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \ |
34949 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34950 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34951 | done; \ | |
34952 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
34953 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34954 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34955 | "RANLIB=$${RANLIB}" \ | |
34956 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 34957 | dvi) \ |
4fa63067 NN |
34958 | || exit 1 |
34959 | ||
6bd3dfaa | 34960 | @endif target-libiberty |
4fa63067 | 34961 | |
6d389afc MS |
34962 | .PHONY: maybe-html-target-libiberty html-target-libiberty |
34963 | maybe-html-target-libiberty: | |
34964 | @if target-libiberty | |
34965 | maybe-html-target-libiberty: html-target-libiberty | |
34966 | ||
34967 | html-target-libiberty: \ | |
34968 | configure-target-libiberty | |
0aed8855 | 34969 | @: $(MAKE); $(unstage) |
6d389afc MS |
34970 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
34971 | r=`${PWD_COMMAND}`; export r; \ | |
34972 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
34973 | $(NORMAL_TARGET_EXPORTS) \ |
34974 | echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \ | |
34975 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
34976 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
34977 | done; \ | |
34978 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
34979 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
34980 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
34981 | "RANLIB=$${RANLIB}" \ | |
34982 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
34983 | html) \ | |
34984 | || exit 1 | |
34985 | ||
34986 | @endif target-libiberty | |
34987 | ||
4fa63067 NN |
34988 | .PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty |
34989 | maybe-TAGS-target-libiberty: | |
6bd3dfaa PB |
34990 | @if target-libiberty |
34991 | maybe-TAGS-target-libiberty: TAGS-target-libiberty | |
4fa63067 NN |
34992 | |
34993 | TAGS-target-libiberty: \ | |
34994 | configure-target-libiberty | |
0aed8855 | 34995 | @: $(MAKE); $(unstage) |
4fa63067 NN |
34996 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
34997 | r=`${PWD_COMMAND}`; export r; \ | |
34998 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 34999 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35000 | echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \ |
35001 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35002 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35003 | done; \ | |
35004 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35005 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35006 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35007 | "RANLIB=$${RANLIB}" \ | |
35008 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35009 | TAGS) \ |
4fa63067 NN |
35010 | || exit 1 |
35011 | ||
6bd3dfaa | 35012 | @endif target-libiberty |
4fa63067 NN |
35013 | |
35014 | .PHONY: maybe-install-info-target-libiberty install-info-target-libiberty | |
35015 | maybe-install-info-target-libiberty: | |
6bd3dfaa PB |
35016 | @if target-libiberty |
35017 | maybe-install-info-target-libiberty: install-info-target-libiberty | |
4fa63067 NN |
35018 | |
35019 | install-info-target-libiberty: \ | |
35020 | configure-target-libiberty \ | |
35021 | info-target-libiberty | |
0aed8855 | 35022 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35023 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
35024 | r=`${PWD_COMMAND}`; export r; \ | |
35025 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35026 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35027 | echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \ |
35028 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35029 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35030 | done; \ | |
35031 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35032 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35033 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35034 | "RANLIB=$${RANLIB}" \ | |
35035 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35036 | install-info) \ |
4fa63067 NN |
35037 | || exit 1 |
35038 | ||
6bd3dfaa | 35039 | @endif target-libiberty |
4fa63067 | 35040 | |
108a6f8e CD |
35041 | .PHONY: maybe-install-html-target-libiberty install-html-target-libiberty |
35042 | maybe-install-html-target-libiberty: | |
35043 | @if target-libiberty | |
35044 | maybe-install-html-target-libiberty: install-html-target-libiberty | |
35045 | ||
35046 | install-html-target-libiberty: \ | |
35047 | configure-target-libiberty \ | |
35048 | html-target-libiberty | |
35049 | @: $(MAKE); $(unstage) | |
35050 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ | |
35051 | r=`${PWD_COMMAND}`; export r; \ | |
35052 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35053 | $(NORMAL_TARGET_EXPORTS) \ | |
35054 | echo "Doing install-html in $(TARGET_SUBDIR)/libiberty" ; \ | |
35055 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35056 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35057 | done; \ | |
35058 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35059 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35060 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35061 | "RANLIB=$${RANLIB}" \ | |
35062 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
35063 | install-html) \ | |
35064 | || exit 1 | |
35065 | ||
35066 | @endif target-libiberty | |
35067 | ||
4fa63067 NN |
35068 | .PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty |
35069 | maybe-installcheck-target-libiberty: | |
6bd3dfaa PB |
35070 | @if target-libiberty |
35071 | maybe-installcheck-target-libiberty: installcheck-target-libiberty | |
4fa63067 NN |
35072 | |
35073 | installcheck-target-libiberty: \ | |
35074 | configure-target-libiberty | |
0aed8855 | 35075 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35076 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
35077 | r=`${PWD_COMMAND}`; export r; \ | |
35078 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35079 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35080 | echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \ |
35081 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35082 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35083 | done; \ | |
35084 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35085 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35086 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35087 | "RANLIB=$${RANLIB}" \ | |
35088 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35089 | installcheck) \ |
4fa63067 NN |
35090 | || exit 1 |
35091 | ||
6bd3dfaa | 35092 | @endif target-libiberty |
4fa63067 NN |
35093 | |
35094 | .PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty | |
35095 | maybe-mostlyclean-target-libiberty: | |
6bd3dfaa PB |
35096 | @if target-libiberty |
35097 | maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty | |
4fa63067 NN |
35098 | |
35099 | mostlyclean-target-libiberty: | |
0aed8855 | 35100 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35101 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
35102 | r=`${PWD_COMMAND}`; export r; \ | |
35103 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35104 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35105 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \ |
35106 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35107 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35108 | done; \ | |
35109 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35110 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35111 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35112 | "RANLIB=$${RANLIB}" \ | |
35113 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35114 | mostlyclean) \ |
4fa63067 NN |
35115 | || exit 1 |
35116 | ||
6bd3dfaa | 35117 | @endif target-libiberty |
4fa63067 NN |
35118 | |
35119 | .PHONY: maybe-clean-target-libiberty clean-target-libiberty | |
35120 | maybe-clean-target-libiberty: | |
6bd3dfaa PB |
35121 | @if target-libiberty |
35122 | maybe-clean-target-libiberty: clean-target-libiberty | |
4fa63067 NN |
35123 | |
35124 | clean-target-libiberty: | |
0aed8855 | 35125 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35126 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
35127 | r=`${PWD_COMMAND}`; export r; \ | |
35128 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35129 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35130 | echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \ |
35131 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35132 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35133 | done; \ | |
35134 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35135 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35136 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35137 | "RANLIB=$${RANLIB}" \ | |
35138 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35139 | clean) \ |
4fa63067 NN |
35140 | || exit 1 |
35141 | ||
6bd3dfaa | 35142 | @endif target-libiberty |
4fa63067 NN |
35143 | |
35144 | .PHONY: maybe-distclean-target-libiberty distclean-target-libiberty | |
35145 | maybe-distclean-target-libiberty: | |
6bd3dfaa PB |
35146 | @if target-libiberty |
35147 | maybe-distclean-target-libiberty: distclean-target-libiberty | |
4fa63067 NN |
35148 | |
35149 | distclean-target-libiberty: | |
0aed8855 | 35150 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35151 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
35152 | r=`${PWD_COMMAND}`; export r; \ | |
35153 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35154 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35155 | echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \ |
35156 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35157 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35158 | done; \ | |
35159 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35160 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35161 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35162 | "RANLIB=$${RANLIB}" \ | |
35163 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35164 | distclean) \ |
4fa63067 NN |
35165 | || exit 1 |
35166 | ||
6bd3dfaa | 35167 | @endif target-libiberty |
4fa63067 NN |
35168 | |
35169 | .PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty | |
35170 | maybe-maintainer-clean-target-libiberty: | |
6bd3dfaa PB |
35171 | @if target-libiberty |
35172 | maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty | |
4fa63067 NN |
35173 | |
35174 | maintainer-clean-target-libiberty: | |
0aed8855 | 35175 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35176 | @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \ |
35177 | r=`${PWD_COMMAND}`; export r; \ | |
35178 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35179 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35180 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \ |
35181 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35182 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35183 | done; \ | |
35184 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
35185 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35186 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35187 | "RANLIB=$${RANLIB}" \ | |
35188 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35189 | maintainer-clean) \ |
4fa63067 | 35190 | || exit 1 |
16ae0395 | 35191 | |
6bd3dfaa | 35192 | @endif target-libiberty |
e393202e NN |
35193 | |
35194 | ||
15723a45 | 35195 | |
e90269c8 | 35196 | |
a7254363 PB |
35197 | |
35198 | .PHONY: configure-target-gperf maybe-configure-target-gperf | |
35199 | maybe-configure-target-gperf: | |
35200 | @if target-gperf | |
35201 | maybe-configure-target-gperf: configure-target-gperf | |
c52c6897 | 35202 | configure-target-gperf: |
0aed8855 PB |
35203 | @: $(MAKE); $(unstage) |
35204 | @r=`${PWD_COMMAND}`; export r; \ | |
35205 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35206 | echo "Checking multilib configuration for gperf..."; \ | |
35207 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \ | |
35208 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.tmp 2> /dev/null ; \ | |
35209 | if test -r $(TARGET_SUBDIR)/gperf/multilib.out; then \ | |
35210 | if cmp -s $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; then \ | |
35211 | rm -f $(TARGET_SUBDIR)/gperf/multilib.tmp; \ | |
35212 | else \ | |
35213 | rm -f $(TARGET_SUBDIR)/gperf/Makefile; \ | |
35214 | mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \ | |
35215 | fi; \ | |
35216 | else \ | |
35217 | mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \ | |
c52c6897 PB |
35218 | fi; \ |
35219 | test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \ | |
4fa63067 | 35220 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \ |
378fce5b | 35221 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35222 | echo Configuring in $(TARGET_SUBDIR)/gperf; \ |
35223 | cd "$(TARGET_SUBDIR)/gperf" || exit 1; \ | |
bba45b8b | 35224 | case $(srcdir) in \ |
b00612cc PB |
35225 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
35226 | *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \ | |
35227 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 35228 | esac; \ |
b00612cc PB |
35229 | srcdiroption="--srcdir=$${topdir}/gperf"; \ |
35230 | libsrcdir="$$s/gperf"; \ | |
bba45b8b NN |
35231 | rm -f no-such-file || : ; \ |
35232 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 35233 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 35234 | || exit 1 |
6bd3dfaa | 35235 | @endif target-gperf |
e393202e | 35236 | |
a7254363 PB |
35237 | |
35238 | ||
d545f33b PB |
35239 | |
35240 | ||
4fa63067 NN |
35241 | .PHONY: all-target-gperf maybe-all-target-gperf |
35242 | maybe-all-target-gperf: | |
6bd3dfaa | 35243 | @if target-gperf |
72b2455a | 35244 | TARGET-target-gperf=all |
6bd3dfaa | 35245 | maybe-all-target-gperf: all-target-gperf |
4fa63067 | 35246 | all-target-gperf: configure-target-gperf |
0aed8855 | 35247 | @: $(MAKE); $(unstage) |
b40e3958 L |
35248 | @r=`${PWD_COMMAND}`; export r; \ |
35249 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35250 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 35251 | (cd $(TARGET_SUBDIR)/gperf && \ |
a7254363 | 35252 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf)) |
6bd3dfaa | 35253 | @endif target-gperf |
e393202e | 35254 | |
a7254363 PB |
35255 | |
35256 | ||
d545f33b PB |
35257 | |
35258 | ||
4fa63067 NN |
35259 | .PHONY: check-target-gperf maybe-check-target-gperf |
35260 | maybe-check-target-gperf: | |
6bd3dfaa PB |
35261 | @if target-gperf |
35262 | maybe-check-target-gperf: check-target-gperf | |
16ae0395 | 35263 | |
4fa63067 | 35264 | check-target-gperf: |
0aed8855 | 35265 | @: $(MAKE); $(unstage) |
b40e3958 L |
35266 | @r=`${PWD_COMMAND}`; export r; \ |
35267 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35268 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 35269 | (cd $(TARGET_SUBDIR)/gperf && \ |
7ffa0b57 | 35270 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 35271 | |
6bd3dfaa | 35272 | @endif target-gperf |
e393202e | 35273 | |
4fa63067 NN |
35274 | .PHONY: install-target-gperf maybe-install-target-gperf |
35275 | maybe-install-target-gperf: | |
6bd3dfaa PB |
35276 | @if target-gperf |
35277 | maybe-install-target-gperf: install-target-gperf | |
4fa63067 NN |
35278 | |
35279 | install-target-gperf: installdirs | |
0aed8855 | 35280 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35281 | @r=`${PWD_COMMAND}`; export r; \ |
35282 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35283 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 35284 | (cd $(TARGET_SUBDIR)/gperf && \ |
7ffa0b57 | 35285 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 35286 | |
6bd3dfaa | 35287 | @endif target-gperf |
4fa63067 NN |
35288 | |
35289 | # Other targets (info, dvi, etc.) | |
35290 | ||
35291 | .PHONY: maybe-info-target-gperf info-target-gperf | |
35292 | maybe-info-target-gperf: | |
6bd3dfaa PB |
35293 | @if target-gperf |
35294 | maybe-info-target-gperf: info-target-gperf | |
4fa63067 NN |
35295 | |
35296 | info-target-gperf: \ | |
35297 | configure-target-gperf | |
0aed8855 | 35298 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35299 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35300 | r=`${PWD_COMMAND}`; export r; \ | |
35301 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35302 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35303 | echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \ |
35304 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35305 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35306 | done; \ | |
35307 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35308 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35309 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35310 | "RANLIB=$${RANLIB}" \ | |
35311 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35312 | info) \ |
4fa63067 NN |
35313 | || exit 1 |
35314 | ||
6bd3dfaa | 35315 | @endif target-gperf |
4fa63067 NN |
35316 | |
35317 | .PHONY: maybe-dvi-target-gperf dvi-target-gperf | |
35318 | maybe-dvi-target-gperf: | |
6bd3dfaa PB |
35319 | @if target-gperf |
35320 | maybe-dvi-target-gperf: dvi-target-gperf | |
4fa63067 NN |
35321 | |
35322 | dvi-target-gperf: \ | |
35323 | configure-target-gperf | |
0aed8855 | 35324 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35325 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35326 | r=`${PWD_COMMAND}`; export r; \ | |
35327 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35328 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35329 | echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \ |
35330 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35331 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35332 | done; \ | |
35333 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35334 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35335 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35336 | "RANLIB=$${RANLIB}" \ | |
35337 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35338 | dvi) \ |
4fa63067 NN |
35339 | || exit 1 |
35340 | ||
6bd3dfaa | 35341 | @endif target-gperf |
4fa63067 | 35342 | |
6d389afc MS |
35343 | .PHONY: maybe-html-target-gperf html-target-gperf |
35344 | maybe-html-target-gperf: | |
35345 | @if target-gperf | |
35346 | maybe-html-target-gperf: html-target-gperf | |
35347 | ||
35348 | html-target-gperf: \ | |
35349 | configure-target-gperf | |
0aed8855 | 35350 | @: $(MAKE); $(unstage) |
6d389afc MS |
35351 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35352 | r=`${PWD_COMMAND}`; export r; \ | |
35353 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
35354 | $(NORMAL_TARGET_EXPORTS) \ |
35355 | echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \ | |
35356 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35357 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35358 | done; \ | |
35359 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35360 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35361 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35362 | "RANLIB=$${RANLIB}" \ | |
35363 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
35364 | html) \ | |
35365 | || exit 1 | |
35366 | ||
35367 | @endif target-gperf | |
35368 | ||
4fa63067 NN |
35369 | .PHONY: maybe-TAGS-target-gperf TAGS-target-gperf |
35370 | maybe-TAGS-target-gperf: | |
6bd3dfaa PB |
35371 | @if target-gperf |
35372 | maybe-TAGS-target-gperf: TAGS-target-gperf | |
4fa63067 NN |
35373 | |
35374 | TAGS-target-gperf: \ | |
35375 | configure-target-gperf | |
0aed8855 | 35376 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35377 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35378 | r=`${PWD_COMMAND}`; export r; \ | |
35379 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35380 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35381 | echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \ |
35382 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35383 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35384 | done; \ | |
35385 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35386 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35387 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35388 | "RANLIB=$${RANLIB}" \ | |
35389 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35390 | TAGS) \ |
4fa63067 NN |
35391 | || exit 1 |
35392 | ||
6bd3dfaa | 35393 | @endif target-gperf |
4fa63067 NN |
35394 | |
35395 | .PHONY: maybe-install-info-target-gperf install-info-target-gperf | |
35396 | maybe-install-info-target-gperf: | |
6bd3dfaa PB |
35397 | @if target-gperf |
35398 | maybe-install-info-target-gperf: install-info-target-gperf | |
4fa63067 NN |
35399 | |
35400 | install-info-target-gperf: \ | |
35401 | configure-target-gperf \ | |
35402 | info-target-gperf | |
0aed8855 | 35403 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35404 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35405 | r=`${PWD_COMMAND}`; export r; \ | |
35406 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35407 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35408 | echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \ |
35409 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35410 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35411 | done; \ | |
35412 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35413 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35414 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35415 | "RANLIB=$${RANLIB}" \ | |
35416 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35417 | install-info) \ |
4fa63067 NN |
35418 | || exit 1 |
35419 | ||
6bd3dfaa | 35420 | @endif target-gperf |
4fa63067 | 35421 | |
108a6f8e CD |
35422 | .PHONY: maybe-install-html-target-gperf install-html-target-gperf |
35423 | maybe-install-html-target-gperf: | |
35424 | @if target-gperf | |
35425 | maybe-install-html-target-gperf: install-html-target-gperf | |
35426 | ||
35427 | install-html-target-gperf: \ | |
35428 | configure-target-gperf \ | |
35429 | html-target-gperf | |
35430 | @: $(MAKE); $(unstage) | |
35431 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ | |
35432 | r=`${PWD_COMMAND}`; export r; \ | |
35433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35434 | $(NORMAL_TARGET_EXPORTS) \ | |
35435 | echo "Doing install-html in $(TARGET_SUBDIR)/gperf" ; \ | |
35436 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35437 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35438 | done; \ | |
35439 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35440 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35441 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35442 | "RANLIB=$${RANLIB}" \ | |
35443 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
35444 | install-html) \ | |
35445 | || exit 1 | |
35446 | ||
35447 | @endif target-gperf | |
35448 | ||
4fa63067 NN |
35449 | .PHONY: maybe-installcheck-target-gperf installcheck-target-gperf |
35450 | maybe-installcheck-target-gperf: | |
6bd3dfaa PB |
35451 | @if target-gperf |
35452 | maybe-installcheck-target-gperf: installcheck-target-gperf | |
4fa63067 NN |
35453 | |
35454 | installcheck-target-gperf: \ | |
35455 | configure-target-gperf | |
0aed8855 | 35456 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35457 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35458 | r=`${PWD_COMMAND}`; export r; \ | |
35459 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35460 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35461 | echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \ |
35462 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35463 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35464 | done; \ | |
35465 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35466 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35467 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35468 | "RANLIB=$${RANLIB}" \ | |
35469 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35470 | installcheck) \ |
4fa63067 NN |
35471 | || exit 1 |
35472 | ||
6bd3dfaa | 35473 | @endif target-gperf |
4fa63067 NN |
35474 | |
35475 | .PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf | |
35476 | maybe-mostlyclean-target-gperf: | |
6bd3dfaa PB |
35477 | @if target-gperf |
35478 | maybe-mostlyclean-target-gperf: mostlyclean-target-gperf | |
4fa63067 NN |
35479 | |
35480 | mostlyclean-target-gperf: | |
0aed8855 | 35481 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35482 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35483 | r=`${PWD_COMMAND}`; export r; \ | |
35484 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35485 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35486 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \ |
35487 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35488 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35489 | done; \ | |
35490 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35491 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35492 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35493 | "RANLIB=$${RANLIB}" \ | |
35494 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35495 | mostlyclean) \ |
4fa63067 NN |
35496 | || exit 1 |
35497 | ||
6bd3dfaa | 35498 | @endif target-gperf |
4fa63067 NN |
35499 | |
35500 | .PHONY: maybe-clean-target-gperf clean-target-gperf | |
35501 | maybe-clean-target-gperf: | |
6bd3dfaa PB |
35502 | @if target-gperf |
35503 | maybe-clean-target-gperf: clean-target-gperf | |
4fa63067 NN |
35504 | |
35505 | clean-target-gperf: | |
0aed8855 | 35506 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35507 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35508 | r=`${PWD_COMMAND}`; export r; \ | |
35509 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35510 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35511 | echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \ |
35512 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35513 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35514 | done; \ | |
35515 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35516 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35517 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35518 | "RANLIB=$${RANLIB}" \ | |
35519 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35520 | clean) \ |
4fa63067 NN |
35521 | || exit 1 |
35522 | ||
6bd3dfaa | 35523 | @endif target-gperf |
4fa63067 NN |
35524 | |
35525 | .PHONY: maybe-distclean-target-gperf distclean-target-gperf | |
35526 | maybe-distclean-target-gperf: | |
6bd3dfaa PB |
35527 | @if target-gperf |
35528 | maybe-distclean-target-gperf: distclean-target-gperf | |
4fa63067 NN |
35529 | |
35530 | distclean-target-gperf: | |
0aed8855 | 35531 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35532 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35533 | r=`${PWD_COMMAND}`; export r; \ | |
35534 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35535 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35536 | echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \ |
35537 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35538 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35539 | done; \ | |
35540 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35541 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35542 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35543 | "RANLIB=$${RANLIB}" \ | |
35544 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35545 | distclean) \ |
4fa63067 NN |
35546 | || exit 1 |
35547 | ||
6bd3dfaa | 35548 | @endif target-gperf |
4fa63067 NN |
35549 | |
35550 | .PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf | |
35551 | maybe-maintainer-clean-target-gperf: | |
6bd3dfaa PB |
35552 | @if target-gperf |
35553 | maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf | |
4fa63067 NN |
35554 | |
35555 | maintainer-clean-target-gperf: | |
0aed8855 | 35556 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35557 | @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \ |
35558 | r=`${PWD_COMMAND}`; export r; \ | |
35559 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35560 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35561 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \ |
35562 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35563 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35564 | done; \ | |
35565 | (cd $(TARGET_SUBDIR)/gperf && \ | |
35566 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35567 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35568 | "RANLIB=$${RANLIB}" \ | |
35569 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35570 | maintainer-clean) \ |
4fa63067 | 35571 | || exit 1 |
16ae0395 | 35572 | |
6bd3dfaa | 35573 | @endif target-gperf |
e393202e NN |
35574 | |
35575 | ||
15723a45 | 35576 | |
a7254363 PB |
35577 | |
35578 | ||
35579 | .PHONY: configure-target-examples maybe-configure-target-examples | |
35580 | maybe-configure-target-examples: | |
35581 | @if target-examples | |
35582 | maybe-configure-target-examples: configure-target-examples | |
c52c6897 | 35583 | configure-target-examples: |
0aed8855 PB |
35584 | @: $(MAKE); $(unstage) |
35585 | @r=`${PWD_COMMAND}`; export r; \ | |
35586 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35587 | echo "Checking multilib configuration for examples..."; \ | |
35588 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \ | |
35589 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.tmp 2> /dev/null ; \ | |
35590 | if test -r $(TARGET_SUBDIR)/examples/multilib.out; then \ | |
35591 | if cmp -s $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; then \ | |
35592 | rm -f $(TARGET_SUBDIR)/examples/multilib.tmp; \ | |
35593 | else \ | |
35594 | rm -f $(TARGET_SUBDIR)/examples/Makefile; \ | |
35595 | mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \ | |
35596 | fi; \ | |
35597 | else \ | |
35598 | mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \ | |
c52c6897 PB |
35599 | fi; \ |
35600 | test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \ | |
4fa63067 | 35601 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \ |
378fce5b | 35602 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35603 | echo Configuring in $(TARGET_SUBDIR)/examples; \ |
35604 | cd "$(TARGET_SUBDIR)/examples" || exit 1; \ | |
bba45b8b | 35605 | case $(srcdir) in \ |
b00612cc PB |
35606 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
35607 | *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \ | |
35608 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 35609 | esac; \ |
b00612cc PB |
35610 | srcdiroption="--srcdir=$${topdir}/examples"; \ |
35611 | libsrcdir="$$s/examples"; \ | |
bba45b8b NN |
35612 | rm -f no-such-file || : ; \ |
35613 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 35614 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 35615 | || exit 1 |
6bd3dfaa | 35616 | @endif target-examples |
e393202e | 35617 | |
a7254363 PB |
35618 | |
35619 | ||
d545f33b PB |
35620 | |
35621 | ||
4fa63067 NN |
35622 | .PHONY: all-target-examples maybe-all-target-examples |
35623 | maybe-all-target-examples: | |
6bd3dfaa | 35624 | @if target-examples |
72b2455a | 35625 | TARGET-target-examples=all |
6bd3dfaa | 35626 | maybe-all-target-examples: all-target-examples |
4fa63067 | 35627 | all-target-examples: configure-target-examples |
0aed8855 | 35628 | @: $(MAKE); $(unstage) |
b40e3958 L |
35629 | @r=`${PWD_COMMAND}`; export r; \ |
35630 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35631 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 35632 | (cd $(TARGET_SUBDIR)/examples && \ |
a7254363 | 35633 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples)) |
6bd3dfaa | 35634 | @endif target-examples |
e393202e | 35635 | |
a7254363 PB |
35636 | |
35637 | ||
d545f33b PB |
35638 | |
35639 | ||
4fa63067 NN |
35640 | .PHONY: check-target-examples maybe-check-target-examples |
35641 | maybe-check-target-examples: | |
6bd3dfaa PB |
35642 | @if target-examples |
35643 | maybe-check-target-examples: check-target-examples | |
16ae0395 | 35644 | |
4fa63067 NN |
35645 | # Dummy target for uncheckable module. |
35646 | check-target-examples: | |
35647 | ||
6bd3dfaa | 35648 | @endif target-examples |
4fa63067 NN |
35649 | |
35650 | .PHONY: install-target-examples maybe-install-target-examples | |
35651 | maybe-install-target-examples: | |
6bd3dfaa PB |
35652 | @if target-examples |
35653 | maybe-install-target-examples: install-target-examples | |
4fa63067 NN |
35654 | |
35655 | # Dummy target for uninstallable. | |
35656 | install-target-examples: | |
35657 | ||
6bd3dfaa | 35658 | @endif target-examples |
4fa63067 NN |
35659 | |
35660 | # Other targets (info, dvi, etc.) | |
35661 | ||
35662 | .PHONY: maybe-info-target-examples info-target-examples | |
35663 | maybe-info-target-examples: | |
6bd3dfaa PB |
35664 | @if target-examples |
35665 | maybe-info-target-examples: info-target-examples | |
4fa63067 NN |
35666 | |
35667 | info-target-examples: \ | |
35668 | configure-target-examples | |
0aed8855 | 35669 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35670 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35671 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 35672 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 35673 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35674 | echo "Doing info in $(TARGET_SUBDIR)/examples" ; \ |
35675 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35676 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35677 | done; \ | |
35678 | (cd $(TARGET_SUBDIR)/examples && \ | |
35679 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35680 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35681 | "RANLIB=$${RANLIB}" \ | |
35682 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35683 | info) \ |
4fa63067 | 35684 | || exit 1 |
930314a4 | 35685 | |
6bd3dfaa | 35686 | @endif target-examples |
e393202e | 35687 | |
4fa63067 NN |
35688 | .PHONY: maybe-dvi-target-examples dvi-target-examples |
35689 | maybe-dvi-target-examples: | |
6bd3dfaa PB |
35690 | @if target-examples |
35691 | maybe-dvi-target-examples: dvi-target-examples | |
16ae0395 | 35692 | |
4fa63067 NN |
35693 | dvi-target-examples: \ |
35694 | configure-target-examples | |
0aed8855 | 35695 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35696 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35697 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 35698 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 35699 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35700 | echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \ |
35701 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35702 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35703 | done; \ | |
35704 | (cd $(TARGET_SUBDIR)/examples && \ | |
35705 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35706 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35707 | "RANLIB=$${RANLIB}" \ | |
35708 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35709 | dvi) \ |
4fa63067 NN |
35710 | || exit 1 |
35711 | ||
6bd3dfaa | 35712 | @endif target-examples |
4fa63067 | 35713 | |
6d389afc MS |
35714 | .PHONY: maybe-html-target-examples html-target-examples |
35715 | maybe-html-target-examples: | |
35716 | @if target-examples | |
35717 | maybe-html-target-examples: html-target-examples | |
35718 | ||
35719 | html-target-examples: \ | |
35720 | configure-target-examples | |
0aed8855 | 35721 | @: $(MAKE); $(unstage) |
6d389afc MS |
35722 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35723 | r=`${PWD_COMMAND}`; export r; \ | |
35724 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
35725 | $(NORMAL_TARGET_EXPORTS) \ |
35726 | echo "Doing html in $(TARGET_SUBDIR)/examples" ; \ | |
35727 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35728 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35729 | done; \ | |
35730 | (cd $(TARGET_SUBDIR)/examples && \ | |
35731 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35732 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35733 | "RANLIB=$${RANLIB}" \ | |
35734 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
35735 | html) \ | |
35736 | || exit 1 | |
35737 | ||
35738 | @endif target-examples | |
35739 | ||
4fa63067 NN |
35740 | .PHONY: maybe-TAGS-target-examples TAGS-target-examples |
35741 | maybe-TAGS-target-examples: | |
6bd3dfaa PB |
35742 | @if target-examples |
35743 | maybe-TAGS-target-examples: TAGS-target-examples | |
4fa63067 NN |
35744 | |
35745 | TAGS-target-examples: \ | |
35746 | configure-target-examples | |
0aed8855 | 35747 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35748 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35749 | r=`${PWD_COMMAND}`; export r; \ | |
35750 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35751 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35752 | echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \ |
35753 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35754 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35755 | done; \ | |
35756 | (cd $(TARGET_SUBDIR)/examples && \ | |
35757 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35758 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35759 | "RANLIB=$${RANLIB}" \ | |
35760 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35761 | TAGS) \ |
4fa63067 NN |
35762 | || exit 1 |
35763 | ||
6bd3dfaa | 35764 | @endif target-examples |
4fa63067 NN |
35765 | |
35766 | .PHONY: maybe-install-info-target-examples install-info-target-examples | |
35767 | maybe-install-info-target-examples: | |
6bd3dfaa PB |
35768 | @if target-examples |
35769 | maybe-install-info-target-examples: install-info-target-examples | |
4fa63067 NN |
35770 | |
35771 | install-info-target-examples: \ | |
35772 | configure-target-examples \ | |
35773 | info-target-examples | |
0aed8855 | 35774 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35775 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35776 | r=`${PWD_COMMAND}`; export r; \ | |
35777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35778 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35779 | echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \ |
35780 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35781 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35782 | done; \ | |
35783 | (cd $(TARGET_SUBDIR)/examples && \ | |
35784 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35785 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35786 | "RANLIB=$${RANLIB}" \ | |
35787 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35788 | install-info) \ |
4fa63067 NN |
35789 | || exit 1 |
35790 | ||
6bd3dfaa | 35791 | @endif target-examples |
4fa63067 | 35792 | |
108a6f8e CD |
35793 | .PHONY: maybe-install-html-target-examples install-html-target-examples |
35794 | maybe-install-html-target-examples: | |
35795 | @if target-examples | |
35796 | maybe-install-html-target-examples: install-html-target-examples | |
35797 | ||
35798 | install-html-target-examples: \ | |
35799 | configure-target-examples \ | |
35800 | html-target-examples | |
35801 | @: $(MAKE); $(unstage) | |
35802 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ | |
35803 | r=`${PWD_COMMAND}`; export r; \ | |
35804 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35805 | $(NORMAL_TARGET_EXPORTS) \ | |
35806 | echo "Doing install-html in $(TARGET_SUBDIR)/examples" ; \ | |
35807 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35808 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35809 | done; \ | |
35810 | (cd $(TARGET_SUBDIR)/examples && \ | |
35811 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35812 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35813 | "RANLIB=$${RANLIB}" \ | |
35814 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
35815 | install-html) \ | |
35816 | || exit 1 | |
35817 | ||
35818 | @endif target-examples | |
35819 | ||
4fa63067 NN |
35820 | .PHONY: maybe-installcheck-target-examples installcheck-target-examples |
35821 | maybe-installcheck-target-examples: | |
6bd3dfaa PB |
35822 | @if target-examples |
35823 | maybe-installcheck-target-examples: installcheck-target-examples | |
4fa63067 NN |
35824 | |
35825 | installcheck-target-examples: \ | |
35826 | configure-target-examples | |
0aed8855 | 35827 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35828 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35829 | r=`${PWD_COMMAND}`; export r; \ | |
35830 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35831 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35832 | echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \ |
35833 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35834 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35835 | done; \ | |
35836 | (cd $(TARGET_SUBDIR)/examples && \ | |
35837 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35838 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35839 | "RANLIB=$${RANLIB}" \ | |
35840 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35841 | installcheck) \ |
4fa63067 NN |
35842 | || exit 1 |
35843 | ||
6bd3dfaa | 35844 | @endif target-examples |
4fa63067 NN |
35845 | |
35846 | .PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples | |
35847 | maybe-mostlyclean-target-examples: | |
6bd3dfaa PB |
35848 | @if target-examples |
35849 | maybe-mostlyclean-target-examples: mostlyclean-target-examples | |
4fa63067 NN |
35850 | |
35851 | mostlyclean-target-examples: | |
0aed8855 | 35852 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35853 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35854 | r=`${PWD_COMMAND}`; export r; \ | |
35855 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35856 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35857 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \ |
35858 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35859 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35860 | done; \ | |
35861 | (cd $(TARGET_SUBDIR)/examples && \ | |
35862 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35863 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35864 | "RANLIB=$${RANLIB}" \ | |
35865 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35866 | mostlyclean) \ |
4fa63067 NN |
35867 | || exit 1 |
35868 | ||
6bd3dfaa | 35869 | @endif target-examples |
4fa63067 NN |
35870 | |
35871 | .PHONY: maybe-clean-target-examples clean-target-examples | |
35872 | maybe-clean-target-examples: | |
6bd3dfaa PB |
35873 | @if target-examples |
35874 | maybe-clean-target-examples: clean-target-examples | |
4fa63067 NN |
35875 | |
35876 | clean-target-examples: | |
0aed8855 | 35877 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35878 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35879 | r=`${PWD_COMMAND}`; export r; \ | |
35880 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35881 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35882 | echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \ |
35883 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35884 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35885 | done; \ | |
35886 | (cd $(TARGET_SUBDIR)/examples && \ | |
35887 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35888 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35889 | "RANLIB=$${RANLIB}" \ | |
35890 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35891 | clean) \ |
4fa63067 NN |
35892 | || exit 1 |
35893 | ||
6bd3dfaa | 35894 | @endif target-examples |
4fa63067 NN |
35895 | |
35896 | .PHONY: maybe-distclean-target-examples distclean-target-examples | |
35897 | maybe-distclean-target-examples: | |
6bd3dfaa PB |
35898 | @if target-examples |
35899 | maybe-distclean-target-examples: distclean-target-examples | |
4fa63067 NN |
35900 | |
35901 | distclean-target-examples: | |
0aed8855 | 35902 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35903 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35904 | r=`${PWD_COMMAND}`; export r; \ | |
35905 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35906 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35907 | echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \ |
35908 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35909 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35910 | done; \ | |
35911 | (cd $(TARGET_SUBDIR)/examples && \ | |
35912 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35913 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35914 | "RANLIB=$${RANLIB}" \ | |
35915 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35916 | distclean) \ |
4fa63067 NN |
35917 | || exit 1 |
35918 | ||
6bd3dfaa | 35919 | @endif target-examples |
4fa63067 NN |
35920 | |
35921 | .PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples | |
35922 | maybe-maintainer-clean-target-examples: | |
6bd3dfaa PB |
35923 | @if target-examples |
35924 | maybe-maintainer-clean-target-examples: maintainer-clean-target-examples | |
4fa63067 NN |
35925 | |
35926 | maintainer-clean-target-examples: | |
0aed8855 | 35927 | @: $(MAKE); $(unstage) |
4fa63067 NN |
35928 | @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \ |
35929 | r=`${PWD_COMMAND}`; export r; \ | |
35930 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 35931 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35932 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \ |
35933 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
35934 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
35935 | done; \ | |
35936 | (cd $(TARGET_SUBDIR)/examples && \ | |
35937 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
35938 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
35939 | "RANLIB=$${RANLIB}" \ | |
35940 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 35941 | maintainer-clean) \ |
4fa63067 NN |
35942 | || exit 1 |
35943 | ||
6bd3dfaa | 35944 | @endif target-examples |
e393202e NN |
35945 | |
35946 | ||
15723a45 | 35947 | |
a7254363 | 35948 | |
e90269c8 | 35949 | |
a7254363 PB |
35950 | .PHONY: configure-target-libffi maybe-configure-target-libffi |
35951 | maybe-configure-target-libffi: | |
35952 | @if target-libffi | |
35953 | maybe-configure-target-libffi: configure-target-libffi | |
c52c6897 | 35954 | configure-target-libffi: |
0aed8855 PB |
35955 | @: $(MAKE); $(unstage) |
35956 | @r=`${PWD_COMMAND}`; export r; \ | |
35957 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
35958 | echo "Checking multilib configuration for libffi..."; \ | |
35959 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \ | |
35960 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \ | |
35961 | if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \ | |
35962 | if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \ | |
35963 | rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \ | |
35964 | else \ | |
35965 | rm -f $(TARGET_SUBDIR)/libffi/Makefile; \ | |
35966 | mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \ | |
35967 | fi; \ | |
35968 | else \ | |
35969 | mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \ | |
c52c6897 PB |
35970 | fi; \ |
35971 | test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \ | |
4fa63067 | 35972 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \ |
378fce5b | 35973 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
35974 | echo Configuring in $(TARGET_SUBDIR)/libffi; \ |
35975 | cd "$(TARGET_SUBDIR)/libffi" || exit 1; \ | |
bba45b8b | 35976 | case $(srcdir) in \ |
b00612cc PB |
35977 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
35978 | *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \ | |
35979 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 35980 | esac; \ |
b00612cc PB |
35981 | srcdiroption="--srcdir=$${topdir}/libffi"; \ |
35982 | libsrcdir="$$s/libffi"; \ | |
bba45b8b NN |
35983 | rm -f no-such-file || : ; \ |
35984 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 35985 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 35986 | || exit 1 |
6bd3dfaa | 35987 | @endif target-libffi |
e393202e | 35988 | |
a7254363 PB |
35989 | |
35990 | ||
d545f33b PB |
35991 | |
35992 | ||
4fa63067 NN |
35993 | .PHONY: all-target-libffi maybe-all-target-libffi |
35994 | maybe-all-target-libffi: | |
6bd3dfaa | 35995 | @if target-libffi |
72b2455a | 35996 | TARGET-target-libffi=all |
6bd3dfaa | 35997 | maybe-all-target-libffi: all-target-libffi |
4fa63067 | 35998 | all-target-libffi: configure-target-libffi |
0aed8855 | 35999 | @: $(MAKE); $(unstage) |
b40e3958 L |
36000 | @r=`${PWD_COMMAND}`; export r; \ |
36001 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36002 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 36003 | (cd $(TARGET_SUBDIR)/libffi && \ |
a7254363 | 36004 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi)) |
6bd3dfaa | 36005 | @endif target-libffi |
e393202e | 36006 | |
a7254363 PB |
36007 | |
36008 | ||
d545f33b PB |
36009 | |
36010 | ||
4fa63067 NN |
36011 | .PHONY: check-target-libffi maybe-check-target-libffi |
36012 | maybe-check-target-libffi: | |
6bd3dfaa PB |
36013 | @if target-libffi |
36014 | maybe-check-target-libffi: check-target-libffi | |
16ae0395 | 36015 | |
4fa63067 | 36016 | check-target-libffi: |
0aed8855 | 36017 | @: $(MAKE); $(unstage) |
b40e3958 L |
36018 | @r=`${PWD_COMMAND}`; export r; \ |
36019 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36020 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 36021 | (cd $(TARGET_SUBDIR)/libffi && \ |
7ffa0b57 | 36022 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
930314a4 | 36023 | |
6bd3dfaa | 36024 | @endif target-libffi |
e393202e | 36025 | |
4fa63067 NN |
36026 | .PHONY: install-target-libffi maybe-install-target-libffi |
36027 | maybe-install-target-libffi: | |
6bd3dfaa PB |
36028 | @if target-libffi |
36029 | maybe-install-target-libffi: install-target-libffi | |
16ae0395 | 36030 | |
4fa63067 | 36031 | install-target-libffi: installdirs |
0aed8855 | 36032 | @: $(MAKE); $(unstage) |
b40e3958 L |
36033 | @r=`${PWD_COMMAND}`; export r; \ |
36034 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36035 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 36036 | (cd $(TARGET_SUBDIR)/libffi && \ |
7ffa0b57 | 36037 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 36038 | |
6bd3dfaa | 36039 | @endif target-libffi |
e393202e | 36040 | |
4fa63067 NN |
36041 | # Other targets (info, dvi, etc.) |
36042 | ||
36043 | .PHONY: maybe-info-target-libffi info-target-libffi | |
36044 | maybe-info-target-libffi: | |
6bd3dfaa PB |
36045 | @if target-libffi |
36046 | maybe-info-target-libffi: info-target-libffi | |
4fa63067 NN |
36047 | |
36048 | info-target-libffi: \ | |
36049 | configure-target-libffi | |
0aed8855 | 36050 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36051 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36052 | r=`${PWD_COMMAND}`; export r; \ | |
36053 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36054 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36055 | echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \ |
36056 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36057 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36058 | done; \ | |
36059 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36060 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36061 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36062 | "RANLIB=$${RANLIB}" \ | |
36063 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36064 | info) \ |
4fa63067 NN |
36065 | || exit 1 |
36066 | ||
6bd3dfaa | 36067 | @endif target-libffi |
4fa63067 NN |
36068 | |
36069 | .PHONY: maybe-dvi-target-libffi dvi-target-libffi | |
36070 | maybe-dvi-target-libffi: | |
6bd3dfaa PB |
36071 | @if target-libffi |
36072 | maybe-dvi-target-libffi: dvi-target-libffi | |
4fa63067 NN |
36073 | |
36074 | dvi-target-libffi: \ | |
36075 | configure-target-libffi | |
0aed8855 | 36076 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36077 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36078 | r=`${PWD_COMMAND}`; export r; \ | |
36079 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36080 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36081 | echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \ |
36082 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36083 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36084 | done; \ | |
36085 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36086 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36087 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36088 | "RANLIB=$${RANLIB}" \ | |
36089 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36090 | dvi) \ |
4fa63067 NN |
36091 | || exit 1 |
36092 | ||
6bd3dfaa | 36093 | @endif target-libffi |
4fa63067 | 36094 | |
6d389afc MS |
36095 | .PHONY: maybe-html-target-libffi html-target-libffi |
36096 | maybe-html-target-libffi: | |
36097 | @if target-libffi | |
36098 | maybe-html-target-libffi: html-target-libffi | |
36099 | ||
36100 | html-target-libffi: \ | |
36101 | configure-target-libffi | |
0aed8855 | 36102 | @: $(MAKE); $(unstage) |
6d389afc MS |
36103 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36104 | r=`${PWD_COMMAND}`; export r; \ | |
36105 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
36106 | $(NORMAL_TARGET_EXPORTS) \ |
36107 | echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \ | |
36108 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36109 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36110 | done; \ | |
36111 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36112 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36113 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36114 | "RANLIB=$${RANLIB}" \ | |
36115 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
36116 | html) \ | |
36117 | || exit 1 | |
36118 | ||
36119 | @endif target-libffi | |
36120 | ||
4fa63067 NN |
36121 | .PHONY: maybe-TAGS-target-libffi TAGS-target-libffi |
36122 | maybe-TAGS-target-libffi: | |
6bd3dfaa PB |
36123 | @if target-libffi |
36124 | maybe-TAGS-target-libffi: TAGS-target-libffi | |
4fa63067 NN |
36125 | |
36126 | TAGS-target-libffi: \ | |
36127 | configure-target-libffi | |
0aed8855 | 36128 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36129 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36130 | r=`${PWD_COMMAND}`; export r; \ | |
36131 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36132 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36133 | echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \ |
36134 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36135 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36136 | done; \ | |
36137 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36138 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36139 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36140 | "RANLIB=$${RANLIB}" \ | |
36141 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36142 | TAGS) \ |
4fa63067 NN |
36143 | || exit 1 |
36144 | ||
6bd3dfaa | 36145 | @endif target-libffi |
4fa63067 NN |
36146 | |
36147 | .PHONY: maybe-install-info-target-libffi install-info-target-libffi | |
36148 | maybe-install-info-target-libffi: | |
6bd3dfaa PB |
36149 | @if target-libffi |
36150 | maybe-install-info-target-libffi: install-info-target-libffi | |
4fa63067 NN |
36151 | |
36152 | install-info-target-libffi: \ | |
36153 | configure-target-libffi \ | |
36154 | info-target-libffi | |
0aed8855 | 36155 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36156 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36157 | r=`${PWD_COMMAND}`; export r; \ | |
36158 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36159 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36160 | echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \ |
36161 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36162 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36163 | done; \ | |
36164 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36165 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36166 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36167 | "RANLIB=$${RANLIB}" \ | |
36168 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36169 | install-info) \ |
4fa63067 NN |
36170 | || exit 1 |
36171 | ||
6bd3dfaa | 36172 | @endif target-libffi |
4fa63067 | 36173 | |
108a6f8e CD |
36174 | .PHONY: maybe-install-html-target-libffi install-html-target-libffi |
36175 | maybe-install-html-target-libffi: | |
36176 | @if target-libffi | |
36177 | maybe-install-html-target-libffi: install-html-target-libffi | |
36178 | ||
36179 | install-html-target-libffi: \ | |
36180 | configure-target-libffi \ | |
36181 | html-target-libffi | |
36182 | @: $(MAKE); $(unstage) | |
36183 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ | |
36184 | r=`${PWD_COMMAND}`; export r; \ | |
36185 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36186 | $(NORMAL_TARGET_EXPORTS) \ | |
36187 | echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \ | |
36188 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36189 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36190 | done; \ | |
36191 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36192 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36193 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36194 | "RANLIB=$${RANLIB}" \ | |
36195 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
36196 | install-html) \ | |
36197 | || exit 1 | |
36198 | ||
36199 | @endif target-libffi | |
36200 | ||
4fa63067 NN |
36201 | .PHONY: maybe-installcheck-target-libffi installcheck-target-libffi |
36202 | maybe-installcheck-target-libffi: | |
6bd3dfaa PB |
36203 | @if target-libffi |
36204 | maybe-installcheck-target-libffi: installcheck-target-libffi | |
4fa63067 NN |
36205 | |
36206 | installcheck-target-libffi: \ | |
36207 | configure-target-libffi | |
0aed8855 | 36208 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36209 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36210 | r=`${PWD_COMMAND}`; export r; \ | |
36211 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36212 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36213 | echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \ |
36214 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36215 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36216 | done; \ | |
36217 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36218 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36219 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36220 | "RANLIB=$${RANLIB}" \ | |
36221 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36222 | installcheck) \ |
4fa63067 NN |
36223 | || exit 1 |
36224 | ||
6bd3dfaa | 36225 | @endif target-libffi |
4fa63067 NN |
36226 | |
36227 | .PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi | |
36228 | maybe-mostlyclean-target-libffi: | |
6bd3dfaa PB |
36229 | @if target-libffi |
36230 | maybe-mostlyclean-target-libffi: mostlyclean-target-libffi | |
4fa63067 NN |
36231 | |
36232 | mostlyclean-target-libffi: | |
0aed8855 | 36233 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36234 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36235 | r=`${PWD_COMMAND}`; export r; \ | |
36236 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36237 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36238 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \ |
36239 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36240 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36241 | done; \ | |
36242 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36243 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36244 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36245 | "RANLIB=$${RANLIB}" \ | |
36246 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36247 | mostlyclean) \ |
4fa63067 NN |
36248 | || exit 1 |
36249 | ||
6bd3dfaa | 36250 | @endif target-libffi |
4fa63067 NN |
36251 | |
36252 | .PHONY: maybe-clean-target-libffi clean-target-libffi | |
36253 | maybe-clean-target-libffi: | |
6bd3dfaa PB |
36254 | @if target-libffi |
36255 | maybe-clean-target-libffi: clean-target-libffi | |
4fa63067 NN |
36256 | |
36257 | clean-target-libffi: | |
0aed8855 | 36258 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36259 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36260 | r=`${PWD_COMMAND}`; export r; \ | |
36261 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36262 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36263 | echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \ |
36264 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36265 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36266 | done; \ | |
36267 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36268 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36269 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36270 | "RANLIB=$${RANLIB}" \ | |
36271 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36272 | clean) \ |
4fa63067 NN |
36273 | || exit 1 |
36274 | ||
6bd3dfaa | 36275 | @endif target-libffi |
4fa63067 NN |
36276 | |
36277 | .PHONY: maybe-distclean-target-libffi distclean-target-libffi | |
36278 | maybe-distclean-target-libffi: | |
6bd3dfaa PB |
36279 | @if target-libffi |
36280 | maybe-distclean-target-libffi: distclean-target-libffi | |
4fa63067 NN |
36281 | |
36282 | distclean-target-libffi: | |
0aed8855 | 36283 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36284 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36285 | r=`${PWD_COMMAND}`; export r; \ | |
36286 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36287 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36288 | echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \ |
36289 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36290 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36291 | done; \ | |
36292 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36293 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36294 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36295 | "RANLIB=$${RANLIB}" \ | |
36296 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36297 | distclean) \ |
4fa63067 NN |
36298 | || exit 1 |
36299 | ||
6bd3dfaa | 36300 | @endif target-libffi |
4fa63067 NN |
36301 | |
36302 | .PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi | |
36303 | maybe-maintainer-clean-target-libffi: | |
6bd3dfaa PB |
36304 | @if target-libffi |
36305 | maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi | |
4fa63067 NN |
36306 | |
36307 | maintainer-clean-target-libffi: | |
0aed8855 | 36308 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36309 | @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \ |
36310 | r=`${PWD_COMMAND}`; export r; \ | |
36311 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36312 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36313 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \ |
36314 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36315 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36316 | done; \ | |
36317 | (cd $(TARGET_SUBDIR)/libffi && \ | |
36318 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36319 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36320 | "RANLIB=$${RANLIB}" \ | |
36321 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36322 | maintainer-clean) \ |
4fa63067 NN |
36323 | || exit 1 |
36324 | ||
6bd3dfaa | 36325 | @endif target-libffi |
4fa63067 NN |
36326 | |
36327 | ||
15723a45 | 36328 | |
a7254363 | 36329 | |
15723a45 | 36330 | |
a7254363 PB |
36331 | .PHONY: configure-target-libjava maybe-configure-target-libjava |
36332 | maybe-configure-target-libjava: | |
36333 | @if target-libjava | |
36334 | maybe-configure-target-libjava: configure-target-libjava | |
c52c6897 | 36335 | configure-target-libjava: |
0aed8855 PB |
36336 | @: $(MAKE); $(unstage) |
36337 | @r=`${PWD_COMMAND}`; export r; \ | |
36338 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36339 | echo "Checking multilib configuration for libjava..."; \ | |
36340 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \ | |
36341 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \ | |
36342 | if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \ | |
36343 | if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \ | |
36344 | rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \ | |
36345 | else \ | |
36346 | rm -f $(TARGET_SUBDIR)/libjava/Makefile; \ | |
36347 | mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \ | |
36348 | fi; \ | |
36349 | else \ | |
36350 | mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \ | |
c52c6897 PB |
36351 | fi; \ |
36352 | test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \ | |
4fa63067 | 36353 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \ |
378fce5b | 36354 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36355 | echo Configuring in $(TARGET_SUBDIR)/libjava; \ |
36356 | cd "$(TARGET_SUBDIR)/libjava" || exit 1; \ | |
bba45b8b | 36357 | case $(srcdir) in \ |
b00612cc PB |
36358 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
36359 | *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \ | |
36360 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 36361 | esac; \ |
b00612cc PB |
36362 | srcdiroption="--srcdir=$${topdir}/libjava"; \ |
36363 | libsrcdir="$$s/libjava"; \ | |
bba45b8b NN |
36364 | rm -f no-such-file || : ; \ |
36365 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 36366 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 36367 | || exit 1 |
6bd3dfaa | 36368 | @endif target-libjava |
e393202e | 36369 | |
a7254363 PB |
36370 | |
36371 | ||
d545f33b PB |
36372 | |
36373 | ||
4fa63067 NN |
36374 | .PHONY: all-target-libjava maybe-all-target-libjava |
36375 | maybe-all-target-libjava: | |
6bd3dfaa | 36376 | @if target-libjava |
72b2455a | 36377 | TARGET-target-libjava=all |
6bd3dfaa | 36378 | maybe-all-target-libjava: all-target-libjava |
4fa63067 | 36379 | all-target-libjava: configure-target-libjava |
0aed8855 | 36380 | @: $(MAKE); $(unstage) |
b40e3958 L |
36381 | @r=`${PWD_COMMAND}`; export r; \ |
36382 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36383 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 36384 | (cd $(TARGET_SUBDIR)/libjava && \ |
a7254363 | 36385 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava)) |
6bd3dfaa | 36386 | @endif target-libjava |
e393202e | 36387 | |
a7254363 PB |
36388 | |
36389 | ||
d545f33b PB |
36390 | |
36391 | ||
4fa63067 NN |
36392 | .PHONY: check-target-libjava maybe-check-target-libjava |
36393 | maybe-check-target-libjava: | |
6bd3dfaa PB |
36394 | @if target-libjava |
36395 | maybe-check-target-libjava: check-target-libjava | |
16ae0395 | 36396 | |
4fa63067 | 36397 | check-target-libjava: |
0aed8855 | 36398 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36399 | @r=`${PWD_COMMAND}`; export r; \ |
36400 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36401 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 36402 | (cd $(TARGET_SUBDIR)/libjava && \ |
7ffa0b57 | 36403 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
3866be5d | 36404 | |
6bd3dfaa | 36405 | @endif target-libjava |
930314a4 | 36406 | |
4fa63067 NN |
36407 | .PHONY: install-target-libjava maybe-install-target-libjava |
36408 | maybe-install-target-libjava: | |
6bd3dfaa PB |
36409 | @if target-libjava |
36410 | maybe-install-target-libjava: install-target-libjava | |
16ae0395 | 36411 | |
4fa63067 | 36412 | install-target-libjava: installdirs |
0aed8855 | 36413 | @: $(MAKE); $(unstage) |
b40e3958 L |
36414 | @r=`${PWD_COMMAND}`; export r; \ |
36415 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36416 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 | 36417 | (cd $(TARGET_SUBDIR)/libjava && \ |
7ffa0b57 | 36418 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 36419 | |
6bd3dfaa | 36420 | @endif target-libjava |
e393202e | 36421 | |
4fa63067 | 36422 | # Other targets (info, dvi, etc.) |
15723a45 | 36423 | |
4fa63067 NN |
36424 | .PHONY: maybe-info-target-libjava info-target-libjava |
36425 | maybe-info-target-libjava: | |
6bd3dfaa PB |
36426 | @if target-libjava |
36427 | maybe-info-target-libjava: info-target-libjava | |
15723a45 | 36428 | |
4fa63067 NN |
36429 | info-target-libjava: \ |
36430 | configure-target-libjava | |
0aed8855 | 36431 | @: $(MAKE); $(unstage) |
4fa63067 | 36432 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
b40e3958 L |
36433 | r=`${PWD_COMMAND}`; export r; \ |
36434 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36435 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36436 | echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \ |
36437 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36438 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36439 | done; \ | |
36440 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36441 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36442 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36443 | "RANLIB=$${RANLIB}" \ | |
36444 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36445 | info) \ |
bba45b8b | 36446 | || exit 1 |
e393202e | 36447 | |
6bd3dfaa | 36448 | @endif target-libjava |
4fa63067 NN |
36449 | |
36450 | .PHONY: maybe-dvi-target-libjava dvi-target-libjava | |
36451 | maybe-dvi-target-libjava: | |
6bd3dfaa PB |
36452 | @if target-libjava |
36453 | maybe-dvi-target-libjava: dvi-target-libjava | |
4fa63067 NN |
36454 | |
36455 | dvi-target-libjava: \ | |
36456 | configure-target-libjava | |
0aed8855 | 36457 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36458 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36459 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 36460 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 36461 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36462 | echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \ |
36463 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36464 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36465 | done; \ | |
36466 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36467 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36468 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36469 | "RANLIB=$${RANLIB}" \ | |
36470 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36471 | dvi) \ |
4fa63067 | 36472 | || exit 1 |
e393202e | 36473 | |
6bd3dfaa | 36474 | @endif target-libjava |
16ae0395 | 36475 | |
6d389afc MS |
36476 | .PHONY: maybe-html-target-libjava html-target-libjava |
36477 | maybe-html-target-libjava: | |
36478 | @if target-libjava | |
36479 | maybe-html-target-libjava: html-target-libjava | |
36480 | ||
36481 | html-target-libjava: \ | |
36482 | configure-target-libjava | |
0aed8855 | 36483 | @: $(MAKE); $(unstage) |
6d389afc MS |
36484 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36485 | r=`${PWD_COMMAND}`; export r; \ | |
36486 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
36487 | $(RAW_CXX_TARGET_EXPORTS) \ |
36488 | echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \ | |
36489 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36490 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36491 | done; \ | |
36492 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36493 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36494 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36495 | "RANLIB=$${RANLIB}" \ | |
36496 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
36497 | html) \ | |
36498 | || exit 1 | |
36499 | ||
36500 | @endif target-libjava | |
36501 | ||
4fa63067 NN |
36502 | .PHONY: maybe-TAGS-target-libjava TAGS-target-libjava |
36503 | maybe-TAGS-target-libjava: | |
6bd3dfaa PB |
36504 | @if target-libjava |
36505 | maybe-TAGS-target-libjava: TAGS-target-libjava | |
4fa63067 NN |
36506 | |
36507 | TAGS-target-libjava: \ | |
36508 | configure-target-libjava | |
0aed8855 | 36509 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36510 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36511 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 36512 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 36513 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36514 | echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \ |
36515 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36516 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36517 | done; \ | |
36518 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36519 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36520 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36521 | "RANLIB=$${RANLIB}" \ | |
36522 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36523 | TAGS) \ |
4fa63067 | 36524 | || exit 1 |
e393202e | 36525 | |
6bd3dfaa | 36526 | @endif target-libjava |
930314a4 | 36527 | |
4fa63067 NN |
36528 | .PHONY: maybe-install-info-target-libjava install-info-target-libjava |
36529 | maybe-install-info-target-libjava: | |
6bd3dfaa PB |
36530 | @if target-libjava |
36531 | maybe-install-info-target-libjava: install-info-target-libjava | |
16ae0395 | 36532 | |
4fa63067 NN |
36533 | install-info-target-libjava: \ |
36534 | configure-target-libjava \ | |
36535 | info-target-libjava | |
0aed8855 | 36536 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36537 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36538 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 36539 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 36540 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36541 | echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \ |
36542 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36543 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36544 | done; \ | |
36545 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36546 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36547 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36548 | "RANLIB=$${RANLIB}" \ | |
36549 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36550 | install-info) \ |
4fa63067 | 36551 | || exit 1 |
e393202e | 36552 | |
6bd3dfaa | 36553 | @endif target-libjava |
e393202e | 36554 | |
108a6f8e CD |
36555 | .PHONY: maybe-install-html-target-libjava install-html-target-libjava |
36556 | maybe-install-html-target-libjava: | |
36557 | @if target-libjava | |
36558 | maybe-install-html-target-libjava: install-html-target-libjava | |
36559 | ||
36560 | install-html-target-libjava: \ | |
36561 | configure-target-libjava \ | |
36562 | html-target-libjava | |
36563 | @: $(MAKE); $(unstage) | |
36564 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ | |
36565 | r=`${PWD_COMMAND}`; export r; \ | |
36566 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36567 | $(RAW_CXX_TARGET_EXPORTS) \ | |
36568 | echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \ | |
36569 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36570 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36571 | done; \ | |
36572 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36573 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36574 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36575 | "RANLIB=$${RANLIB}" \ | |
36576 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
36577 | install-html) \ | |
36578 | || exit 1 | |
36579 | ||
36580 | @endif target-libjava | |
36581 | ||
4fa63067 NN |
36582 | .PHONY: maybe-installcheck-target-libjava installcheck-target-libjava |
36583 | maybe-installcheck-target-libjava: | |
6bd3dfaa PB |
36584 | @if target-libjava |
36585 | maybe-installcheck-target-libjava: installcheck-target-libjava | |
15723a45 | 36586 | |
4fa63067 NN |
36587 | installcheck-target-libjava: \ |
36588 | configure-target-libjava | |
0aed8855 | 36589 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36590 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36591 | r=`${PWD_COMMAND}`; export r; \ | |
36592 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36593 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36594 | echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \ |
36595 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36596 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36597 | done; \ | |
36598 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36599 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36600 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36601 | "RANLIB=$${RANLIB}" \ | |
36602 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36603 | installcheck) \ |
4fa63067 | 36604 | || exit 1 |
15723a45 | 36605 | |
6bd3dfaa | 36606 | @endif target-libjava |
4fa63067 NN |
36607 | |
36608 | .PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava | |
36609 | maybe-mostlyclean-target-libjava: | |
6bd3dfaa PB |
36610 | @if target-libjava |
36611 | maybe-mostlyclean-target-libjava: mostlyclean-target-libjava | |
4fa63067 NN |
36612 | |
36613 | mostlyclean-target-libjava: | |
0aed8855 | 36614 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36615 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36616 | r=`${PWD_COMMAND}`; export r; \ | |
36617 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36618 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36619 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \ |
36620 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36621 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36622 | done; \ | |
36623 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36624 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36625 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36626 | "RANLIB=$${RANLIB}" \ | |
36627 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36628 | mostlyclean) \ |
4fa63067 NN |
36629 | || exit 1 |
36630 | ||
6bd3dfaa | 36631 | @endif target-libjava |
4fa63067 NN |
36632 | |
36633 | .PHONY: maybe-clean-target-libjava clean-target-libjava | |
36634 | maybe-clean-target-libjava: | |
6bd3dfaa PB |
36635 | @if target-libjava |
36636 | maybe-clean-target-libjava: clean-target-libjava | |
4fa63067 NN |
36637 | |
36638 | clean-target-libjava: | |
0aed8855 | 36639 | @: $(MAKE); $(unstage) |
4fa63067 | 36640 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
b40e3958 L |
36641 | r=`${PWD_COMMAND}`; export r; \ |
36642 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36643 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36644 | echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \ |
36645 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36646 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36647 | done; \ | |
36648 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36649 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36650 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36651 | "RANLIB=$${RANLIB}" \ | |
36652 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36653 | clean) \ |
bba45b8b | 36654 | || exit 1 |
e393202e | 36655 | |
6bd3dfaa | 36656 | @endif target-libjava |
e393202e | 36657 | |
4fa63067 NN |
36658 | .PHONY: maybe-distclean-target-libjava distclean-target-libjava |
36659 | maybe-distclean-target-libjava: | |
6bd3dfaa PB |
36660 | @if target-libjava |
36661 | maybe-distclean-target-libjava: distclean-target-libjava | |
16ae0395 | 36662 | |
4fa63067 | 36663 | distclean-target-libjava: |
0aed8855 | 36664 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36665 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36666 | r=`${PWD_COMMAND}`; export r; \ | |
36667 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36668 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36669 | echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \ |
36670 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36671 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36672 | done; \ | |
36673 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36674 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36675 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36676 | "RANLIB=$${RANLIB}" \ | |
36677 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36678 | distclean) \ |
4fa63067 | 36679 | || exit 1 |
3866be5d | 36680 | |
6bd3dfaa | 36681 | @endif target-libjava |
930314a4 | 36682 | |
4fa63067 NN |
36683 | .PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava |
36684 | maybe-maintainer-clean-target-libjava: | |
6bd3dfaa PB |
36685 | @if target-libjava |
36686 | maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava | |
16ae0395 | 36687 | |
4fa63067 | 36688 | maintainer-clean-target-libjava: |
0aed8855 | 36689 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36690 | @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \ |
36691 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 36692 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 36693 | $(RAW_CXX_TARGET_EXPORTS) \ |
4fa63067 NN |
36694 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \ |
36695 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36696 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36697 | done; \ | |
36698 | (cd $(TARGET_SUBDIR)/libjava && \ | |
36699 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36700 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36701 | "RANLIB=$${RANLIB}" \ | |
36702 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36703 | maintainer-clean) \ |
4fa63067 | 36704 | || exit 1 |
e393202e | 36705 | |
6bd3dfaa | 36706 | @endif target-libjava |
e393202e | 36707 | |
4fa63067 | 36708 | |
15723a45 | 36709 | |
a7254363 | 36710 | |
e90269c8 | 36711 | |
a7254363 PB |
36712 | .PHONY: configure-target-zlib maybe-configure-target-zlib |
36713 | maybe-configure-target-zlib: | |
36714 | @if target-zlib | |
36715 | maybe-configure-target-zlib: configure-target-zlib | |
c52c6897 | 36716 | configure-target-zlib: |
0aed8855 PB |
36717 | @: $(MAKE); $(unstage) |
36718 | @r=`${PWD_COMMAND}`; export r; \ | |
36719 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36720 | echo "Checking multilib configuration for zlib..."; \ | |
36721 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \ | |
36722 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \ | |
36723 | if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \ | |
36724 | if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \ | |
36725 | rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \ | |
36726 | else \ | |
36727 | rm -f $(TARGET_SUBDIR)/zlib/Makefile; \ | |
36728 | mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \ | |
36729 | fi; \ | |
36730 | else \ | |
36731 | mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \ | |
c52c6897 PB |
36732 | fi; \ |
36733 | test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \ | |
4fa63067 | 36734 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \ |
378fce5b | 36735 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36736 | echo Configuring in $(TARGET_SUBDIR)/zlib; \ |
36737 | cd "$(TARGET_SUBDIR)/zlib" || exit 1; \ | |
bba45b8b | 36738 | case $(srcdir) in \ |
b00612cc PB |
36739 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
36740 | *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \ | |
36741 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 36742 | esac; \ |
b00612cc PB |
36743 | srcdiroption="--srcdir=$${topdir}/zlib"; \ |
36744 | libsrcdir="$$s/zlib"; \ | |
bba45b8b NN |
36745 | rm -f no-such-file || : ; \ |
36746 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 36747 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 36748 | || exit 1 |
6bd3dfaa | 36749 | @endif target-zlib |
e393202e | 36750 | |
a7254363 PB |
36751 | |
36752 | ||
d545f33b PB |
36753 | |
36754 | ||
4fa63067 NN |
36755 | .PHONY: all-target-zlib maybe-all-target-zlib |
36756 | maybe-all-target-zlib: | |
6bd3dfaa | 36757 | @if target-zlib |
72b2455a | 36758 | TARGET-target-zlib=all |
6bd3dfaa | 36759 | maybe-all-target-zlib: all-target-zlib |
4fa63067 | 36760 | all-target-zlib: configure-target-zlib |
0aed8855 | 36761 | @: $(MAKE); $(unstage) |
b40e3958 L |
36762 | @r=`${PWD_COMMAND}`; export r; \ |
36763 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36764 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 36765 | (cd $(TARGET_SUBDIR)/zlib && \ |
a7254363 | 36766 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib)) |
6bd3dfaa | 36767 | @endif target-zlib |
e393202e | 36768 | |
a7254363 PB |
36769 | |
36770 | ||
d545f33b PB |
36771 | |
36772 | ||
4fa63067 NN |
36773 | .PHONY: check-target-zlib maybe-check-target-zlib |
36774 | maybe-check-target-zlib: | |
6bd3dfaa PB |
36775 | @if target-zlib |
36776 | maybe-check-target-zlib: check-target-zlib | |
16ae0395 | 36777 | |
4fa63067 | 36778 | check-target-zlib: |
0aed8855 | 36779 | @: $(MAKE); $(unstage) |
b40e3958 L |
36780 | @r=`${PWD_COMMAND}`; export r; \ |
36781 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36782 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 36783 | (cd $(TARGET_SUBDIR)/zlib && \ |
7ffa0b57 | 36784 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 36785 | |
6bd3dfaa | 36786 | @endif target-zlib |
930314a4 | 36787 | |
4fa63067 NN |
36788 | .PHONY: install-target-zlib maybe-install-target-zlib |
36789 | maybe-install-target-zlib: | |
6bd3dfaa PB |
36790 | @if target-zlib |
36791 | maybe-install-target-zlib: install-target-zlib | |
16ae0395 | 36792 | |
4fa63067 | 36793 | install-target-zlib: installdirs |
0aed8855 | 36794 | @: $(MAKE); $(unstage) |
b40e3958 L |
36795 | @r=`${PWD_COMMAND}`; export r; \ |
36796 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36797 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 36798 | (cd $(TARGET_SUBDIR)/zlib && \ |
7ffa0b57 | 36799 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 36800 | |
6bd3dfaa | 36801 | @endif target-zlib |
e393202e | 36802 | |
4fa63067 | 36803 | # Other targets (info, dvi, etc.) |
15723a45 | 36804 | |
4fa63067 NN |
36805 | .PHONY: maybe-info-target-zlib info-target-zlib |
36806 | maybe-info-target-zlib: | |
6bd3dfaa PB |
36807 | @if target-zlib |
36808 | maybe-info-target-zlib: info-target-zlib | |
15723a45 | 36809 | |
4fa63067 NN |
36810 | info-target-zlib: \ |
36811 | configure-target-zlib | |
0aed8855 | 36812 | @: $(MAKE); $(unstage) |
4fa63067 | 36813 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
b40e3958 L |
36814 | r=`${PWD_COMMAND}`; export r; \ |
36815 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36816 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36817 | echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \ |
36818 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36819 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36820 | done; \ | |
36821 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36822 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36823 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36824 | "RANLIB=$${RANLIB}" \ | |
36825 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36826 | info) \ |
bba45b8b | 36827 | || exit 1 |
e393202e | 36828 | |
6bd3dfaa | 36829 | @endif target-zlib |
e393202e | 36830 | |
4fa63067 NN |
36831 | .PHONY: maybe-dvi-target-zlib dvi-target-zlib |
36832 | maybe-dvi-target-zlib: | |
6bd3dfaa PB |
36833 | @if target-zlib |
36834 | maybe-dvi-target-zlib: dvi-target-zlib | |
16ae0395 | 36835 | |
4fa63067 NN |
36836 | dvi-target-zlib: \ |
36837 | configure-target-zlib | |
0aed8855 | 36838 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36839 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
36840 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 36841 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 36842 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36843 | echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \ |
36844 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36845 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36846 | done; \ | |
36847 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36848 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36849 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36850 | "RANLIB=$${RANLIB}" \ | |
36851 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36852 | dvi) \ |
4fa63067 | 36853 | || exit 1 |
e393202e | 36854 | |
6bd3dfaa | 36855 | @endif target-zlib |
930314a4 | 36856 | |
6d389afc MS |
36857 | .PHONY: maybe-html-target-zlib html-target-zlib |
36858 | maybe-html-target-zlib: | |
36859 | @if target-zlib | |
36860 | maybe-html-target-zlib: html-target-zlib | |
36861 | ||
36862 | html-target-zlib: \ | |
36863 | configure-target-zlib | |
0aed8855 | 36864 | @: $(MAKE); $(unstage) |
6d389afc MS |
36865 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
36866 | r=`${PWD_COMMAND}`; export r; \ | |
36867 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
36868 | $(NORMAL_TARGET_EXPORTS) \ |
36869 | echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \ | |
36870 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36871 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36872 | done; \ | |
36873 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36874 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36875 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36876 | "RANLIB=$${RANLIB}" \ | |
36877 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
36878 | html) \ | |
36879 | || exit 1 | |
36880 | ||
36881 | @endif target-zlib | |
36882 | ||
4fa63067 NN |
36883 | .PHONY: maybe-TAGS-target-zlib TAGS-target-zlib |
36884 | maybe-TAGS-target-zlib: | |
6bd3dfaa PB |
36885 | @if target-zlib |
36886 | maybe-TAGS-target-zlib: TAGS-target-zlib | |
16ae0395 | 36887 | |
4fa63067 NN |
36888 | TAGS-target-zlib: \ |
36889 | configure-target-zlib | |
0aed8855 | 36890 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36891 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
36892 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 36893 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 36894 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36895 | echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \ |
36896 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36897 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36898 | done; \ | |
36899 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36900 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36901 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36902 | "RANLIB=$${RANLIB}" \ | |
36903 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36904 | TAGS) \ |
4fa63067 | 36905 | || exit 1 |
e393202e | 36906 | |
6bd3dfaa | 36907 | @endif target-zlib |
15723a45 | 36908 | |
4fa63067 NN |
36909 | .PHONY: maybe-install-info-target-zlib install-info-target-zlib |
36910 | maybe-install-info-target-zlib: | |
6bd3dfaa PB |
36911 | @if target-zlib |
36912 | maybe-install-info-target-zlib: install-info-target-zlib | |
15723a45 | 36913 | |
4fa63067 NN |
36914 | install-info-target-zlib: \ |
36915 | configure-target-zlib \ | |
36916 | info-target-zlib | |
0aed8855 | 36917 | @: $(MAKE); $(unstage) |
4fa63067 | 36918 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
b40e3958 L |
36919 | r=`${PWD_COMMAND}`; export r; \ |
36920 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36921 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36922 | echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \ |
36923 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36924 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36925 | done; \ | |
36926 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36927 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36928 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36929 | "RANLIB=$${RANLIB}" \ | |
36930 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36931 | install-info) \ |
bba45b8b | 36932 | || exit 1 |
e393202e | 36933 | |
6bd3dfaa | 36934 | @endif target-zlib |
16ae0395 | 36935 | |
108a6f8e CD |
36936 | .PHONY: maybe-install-html-target-zlib install-html-target-zlib |
36937 | maybe-install-html-target-zlib: | |
36938 | @if target-zlib | |
36939 | maybe-install-html-target-zlib: install-html-target-zlib | |
36940 | ||
36941 | install-html-target-zlib: \ | |
36942 | configure-target-zlib \ | |
36943 | html-target-zlib | |
36944 | @: $(MAKE); $(unstage) | |
36945 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ | |
36946 | r=`${PWD_COMMAND}`; export r; \ | |
36947 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
36948 | $(NORMAL_TARGET_EXPORTS) \ | |
36949 | echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \ | |
36950 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36951 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36952 | done; \ | |
36953 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36954 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36955 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36956 | "RANLIB=$${RANLIB}" \ | |
36957 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
36958 | install-html) \ | |
36959 | || exit 1 | |
36960 | ||
36961 | @endif target-zlib | |
36962 | ||
4fa63067 NN |
36963 | .PHONY: maybe-installcheck-target-zlib installcheck-target-zlib |
36964 | maybe-installcheck-target-zlib: | |
6bd3dfaa PB |
36965 | @if target-zlib |
36966 | maybe-installcheck-target-zlib: installcheck-target-zlib | |
3866be5d | 36967 | |
4fa63067 NN |
36968 | installcheck-target-zlib: \ |
36969 | configure-target-zlib | |
0aed8855 | 36970 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36971 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
36972 | r=`${PWD_COMMAND}`; export r; \ | |
36973 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36974 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
36975 | echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \ |
36976 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
36977 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
36978 | done; \ | |
36979 | (cd $(TARGET_SUBDIR)/zlib && \ | |
36980 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
36981 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
36982 | "RANLIB=$${RANLIB}" \ | |
36983 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 36984 | installcheck) \ |
4fa63067 | 36985 | || exit 1 |
e393202e | 36986 | |
6bd3dfaa | 36987 | @endif target-zlib |
16ae0395 | 36988 | |
4fa63067 NN |
36989 | .PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib |
36990 | maybe-mostlyclean-target-zlib: | |
6bd3dfaa PB |
36991 | @if target-zlib |
36992 | maybe-mostlyclean-target-zlib: mostlyclean-target-zlib | |
930314a4 | 36993 | |
4fa63067 | 36994 | mostlyclean-target-zlib: |
0aed8855 | 36995 | @: $(MAKE); $(unstage) |
4fa63067 NN |
36996 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
36997 | r=`${PWD_COMMAND}`; export r; \ | |
36998 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 36999 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37000 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \ |
37001 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37002 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37003 | done; \ | |
37004 | (cd $(TARGET_SUBDIR)/zlib && \ | |
37005 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37006 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37007 | "RANLIB=$${RANLIB}" \ | |
37008 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37009 | mostlyclean) \ |
4fa63067 | 37010 | || exit 1 |
e393202e | 37011 | |
6bd3dfaa | 37012 | @endif target-zlib |
15723a45 | 37013 | |
4fa63067 NN |
37014 | .PHONY: maybe-clean-target-zlib clean-target-zlib |
37015 | maybe-clean-target-zlib: | |
6bd3dfaa PB |
37016 | @if target-zlib |
37017 | maybe-clean-target-zlib: clean-target-zlib | |
15723a45 | 37018 | |
4fa63067 | 37019 | clean-target-zlib: |
0aed8855 | 37020 | @: $(MAKE); $(unstage) |
4fa63067 | 37021 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
b40e3958 L |
37022 | r=`${PWD_COMMAND}`; export r; \ |
37023 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37024 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37025 | echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \ |
37026 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37027 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37028 | done; \ | |
37029 | (cd $(TARGET_SUBDIR)/zlib && \ | |
37030 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37031 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37032 | "RANLIB=$${RANLIB}" \ | |
37033 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37034 | clean) \ |
bba45b8b | 37035 | || exit 1 |
e393202e | 37036 | |
6bd3dfaa | 37037 | @endif target-zlib |
e393202e | 37038 | |
4fa63067 NN |
37039 | .PHONY: maybe-distclean-target-zlib distclean-target-zlib |
37040 | maybe-distclean-target-zlib: | |
6bd3dfaa PB |
37041 | @if target-zlib |
37042 | maybe-distclean-target-zlib: distclean-target-zlib | |
16ae0395 | 37043 | |
4fa63067 | 37044 | distclean-target-zlib: |
0aed8855 | 37045 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37046 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
37047 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 37048 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 37049 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37050 | echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \ |
37051 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37053 | done; \ | |
37054 | (cd $(TARGET_SUBDIR)/zlib && \ | |
37055 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37056 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37057 | "RANLIB=$${RANLIB}" \ | |
37058 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37059 | distclean) \ |
4fa63067 | 37060 | || exit 1 |
e393202e | 37061 | |
6bd3dfaa | 37062 | @endif target-zlib |
e393202e | 37063 | |
4fa63067 NN |
37064 | .PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib |
37065 | maybe-maintainer-clean-target-zlib: | |
6bd3dfaa PB |
37066 | @if target-zlib |
37067 | maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib | |
16ae0395 | 37068 | |
4fa63067 | 37069 | maintainer-clean-target-zlib: |
0aed8855 | 37070 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37071 | @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \ |
37072 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 37073 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 37074 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37075 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \ |
37076 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37077 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37078 | done; \ | |
37079 | (cd $(TARGET_SUBDIR)/zlib && \ | |
37080 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37081 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37082 | "RANLIB=$${RANLIB}" \ | |
37083 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37084 | maintainer-clean) \ |
4fa63067 | 37085 | || exit 1 |
e393202e | 37086 | |
6bd3dfaa | 37087 | @endif target-zlib |
930314a4 | 37088 | |
4fa63067 | 37089 | |
15723a45 | 37090 | |
a7254363 | 37091 | |
e90269c8 | 37092 | |
a7254363 PB |
37093 | .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc |
37094 | maybe-configure-target-boehm-gc: | |
37095 | @if target-boehm-gc | |
37096 | maybe-configure-target-boehm-gc: configure-target-boehm-gc | |
c52c6897 | 37097 | configure-target-boehm-gc: |
0aed8855 PB |
37098 | @: $(MAKE); $(unstage) |
37099 | @r=`${PWD_COMMAND}`; export r; \ | |
37100 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37101 | echo "Checking multilib configuration for boehm-gc..."; \ | |
37102 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \ | |
37103 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \ | |
37104 | if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \ | |
37105 | if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \ | |
37106 | rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \ | |
37107 | else \ | |
37108 | rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \ | |
37109 | mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \ | |
37110 | fi; \ | |
37111 | else \ | |
37112 | mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \ | |
c52c6897 PB |
37113 | fi; \ |
37114 | test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \ | |
4fa63067 | 37115 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \ |
378fce5b | 37116 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37117 | echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \ |
37118 | cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \ | |
bba45b8b | 37119 | case $(srcdir) in \ |
b00612cc PB |
37120 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
37121 | *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \ | |
37122 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 37123 | esac; \ |
b00612cc PB |
37124 | srcdiroption="--srcdir=$${topdir}/boehm-gc"; \ |
37125 | libsrcdir="$$s/boehm-gc"; \ | |
bba45b8b NN |
37126 | rm -f no-such-file || : ; \ |
37127 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 37128 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 37129 | || exit 1 |
6bd3dfaa | 37130 | @endif target-boehm-gc |
e393202e | 37131 | |
a7254363 PB |
37132 | |
37133 | ||
d545f33b PB |
37134 | |
37135 | ||
4fa63067 NN |
37136 | .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc |
37137 | maybe-all-target-boehm-gc: | |
6bd3dfaa | 37138 | @if target-boehm-gc |
72b2455a | 37139 | TARGET-target-boehm-gc=all |
6bd3dfaa | 37140 | maybe-all-target-boehm-gc: all-target-boehm-gc |
4fa63067 | 37141 | all-target-boehm-gc: configure-target-boehm-gc |
0aed8855 | 37142 | @: $(MAKE); $(unstage) |
b40e3958 L |
37143 | @r=`${PWD_COMMAND}`; export r; \ |
37144 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37145 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37146 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
a7254363 | 37147 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc)) |
6bd3dfaa | 37148 | @endif target-boehm-gc |
e393202e | 37149 | |
a7254363 PB |
37150 | |
37151 | ||
d545f33b PB |
37152 | |
37153 | ||
4fa63067 NN |
37154 | .PHONY: check-target-boehm-gc maybe-check-target-boehm-gc |
37155 | maybe-check-target-boehm-gc: | |
6bd3dfaa PB |
37156 | @if target-boehm-gc |
37157 | maybe-check-target-boehm-gc: check-target-boehm-gc | |
16ae0395 | 37158 | |
4fa63067 | 37159 | check-target-boehm-gc: |
0aed8855 | 37160 | @: $(MAKE); $(unstage) |
b40e3958 L |
37161 | @r=`${PWD_COMMAND}`; export r; \ |
37162 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37163 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37164 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
7ffa0b57 | 37165 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 37166 | |
6bd3dfaa | 37167 | @endif target-boehm-gc |
930314a4 | 37168 | |
4fa63067 NN |
37169 | .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc |
37170 | maybe-install-target-boehm-gc: | |
6bd3dfaa PB |
37171 | @if target-boehm-gc |
37172 | maybe-install-target-boehm-gc: install-target-boehm-gc | |
16ae0395 | 37173 | |
4fa63067 | 37174 | install-target-boehm-gc: installdirs |
0aed8855 | 37175 | @: $(MAKE); $(unstage) |
b40e3958 L |
37176 | @r=`${PWD_COMMAND}`; export r; \ |
37177 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37178 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37179 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
7ffa0b57 | 37180 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 37181 | |
6bd3dfaa | 37182 | @endif target-boehm-gc |
e393202e | 37183 | |
4fa63067 NN |
37184 | # Other targets (info, dvi, etc.) |
37185 | ||
37186 | .PHONY: maybe-info-target-boehm-gc info-target-boehm-gc | |
37187 | maybe-info-target-boehm-gc: | |
6bd3dfaa PB |
37188 | @if target-boehm-gc |
37189 | maybe-info-target-boehm-gc: info-target-boehm-gc | |
4fa63067 NN |
37190 | |
37191 | info-target-boehm-gc: \ | |
37192 | configure-target-boehm-gc | |
0aed8855 | 37193 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37194 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37195 | r=`${PWD_COMMAND}`; export r; \ | |
37196 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37197 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37198 | echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37199 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37200 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37201 | done; \ | |
37202 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37203 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37204 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37205 | "RANLIB=$${RANLIB}" \ | |
37206 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37207 | info) \ |
4fa63067 NN |
37208 | || exit 1 |
37209 | ||
6bd3dfaa | 37210 | @endif target-boehm-gc |
4fa63067 NN |
37211 | |
37212 | .PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc | |
37213 | maybe-dvi-target-boehm-gc: | |
6bd3dfaa PB |
37214 | @if target-boehm-gc |
37215 | maybe-dvi-target-boehm-gc: dvi-target-boehm-gc | |
4fa63067 NN |
37216 | |
37217 | dvi-target-boehm-gc: \ | |
37218 | configure-target-boehm-gc | |
0aed8855 | 37219 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37220 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37221 | r=`${PWD_COMMAND}`; export r; \ | |
37222 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37223 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37224 | echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37225 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37226 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37227 | done; \ | |
37228 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37229 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37230 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37231 | "RANLIB=$${RANLIB}" \ | |
37232 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37233 | dvi) \ |
4fa63067 NN |
37234 | || exit 1 |
37235 | ||
6bd3dfaa | 37236 | @endif target-boehm-gc |
4fa63067 | 37237 | |
6d389afc MS |
37238 | .PHONY: maybe-html-target-boehm-gc html-target-boehm-gc |
37239 | maybe-html-target-boehm-gc: | |
37240 | @if target-boehm-gc | |
37241 | maybe-html-target-boehm-gc: html-target-boehm-gc | |
37242 | ||
37243 | html-target-boehm-gc: \ | |
37244 | configure-target-boehm-gc | |
0aed8855 | 37245 | @: $(MAKE); $(unstage) |
6d389afc MS |
37246 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37247 | r=`${PWD_COMMAND}`; export r; \ | |
37248 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
37249 | $(NORMAL_TARGET_EXPORTS) \ |
37250 | echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \ | |
37251 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37252 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37253 | done; \ | |
37254 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37255 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37256 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37257 | "RANLIB=$${RANLIB}" \ | |
37258 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
37259 | html) \ | |
37260 | || exit 1 | |
37261 | ||
37262 | @endif target-boehm-gc | |
37263 | ||
4fa63067 NN |
37264 | .PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc |
37265 | maybe-TAGS-target-boehm-gc: | |
6bd3dfaa PB |
37266 | @if target-boehm-gc |
37267 | maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc | |
4fa63067 NN |
37268 | |
37269 | TAGS-target-boehm-gc: \ | |
37270 | configure-target-boehm-gc | |
0aed8855 | 37271 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37272 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37273 | r=`${PWD_COMMAND}`; export r; \ | |
37274 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37275 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37276 | echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37277 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37278 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37279 | done; \ | |
37280 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37281 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37282 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37283 | "RANLIB=$${RANLIB}" \ | |
37284 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37285 | TAGS) \ |
4fa63067 NN |
37286 | || exit 1 |
37287 | ||
6bd3dfaa | 37288 | @endif target-boehm-gc |
4fa63067 NN |
37289 | |
37290 | .PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc | |
37291 | maybe-install-info-target-boehm-gc: | |
6bd3dfaa PB |
37292 | @if target-boehm-gc |
37293 | maybe-install-info-target-boehm-gc: install-info-target-boehm-gc | |
4fa63067 NN |
37294 | |
37295 | install-info-target-boehm-gc: \ | |
37296 | configure-target-boehm-gc \ | |
37297 | info-target-boehm-gc | |
0aed8855 | 37298 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37299 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37300 | r=`${PWD_COMMAND}`; export r; \ | |
37301 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37302 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37303 | echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37304 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37305 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37306 | done; \ | |
37307 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37308 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37309 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37310 | "RANLIB=$${RANLIB}" \ | |
37311 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37312 | install-info) \ |
4fa63067 NN |
37313 | || exit 1 |
37314 | ||
6bd3dfaa | 37315 | @endif target-boehm-gc |
4fa63067 | 37316 | |
108a6f8e CD |
37317 | .PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc |
37318 | maybe-install-html-target-boehm-gc: | |
37319 | @if target-boehm-gc | |
37320 | maybe-install-html-target-boehm-gc: install-html-target-boehm-gc | |
37321 | ||
37322 | install-html-target-boehm-gc: \ | |
37323 | configure-target-boehm-gc \ | |
37324 | html-target-boehm-gc | |
37325 | @: $(MAKE); $(unstage) | |
37326 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ | |
37327 | r=`${PWD_COMMAND}`; export r; \ | |
37328 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37329 | $(NORMAL_TARGET_EXPORTS) \ | |
37330 | echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \ | |
37331 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37332 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37333 | done; \ | |
37334 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37335 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37336 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37337 | "RANLIB=$${RANLIB}" \ | |
37338 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
37339 | install-html) \ | |
37340 | || exit 1 | |
37341 | ||
37342 | @endif target-boehm-gc | |
37343 | ||
4fa63067 NN |
37344 | .PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc |
37345 | maybe-installcheck-target-boehm-gc: | |
6bd3dfaa PB |
37346 | @if target-boehm-gc |
37347 | maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc | |
4fa63067 NN |
37348 | |
37349 | installcheck-target-boehm-gc: \ | |
37350 | configure-target-boehm-gc | |
0aed8855 | 37351 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37352 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37353 | r=`${PWD_COMMAND}`; export r; \ | |
37354 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37355 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37356 | echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37357 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37358 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37359 | done; \ | |
37360 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37361 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37362 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37363 | "RANLIB=$${RANLIB}" \ | |
37364 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37365 | installcheck) \ |
4fa63067 NN |
37366 | || exit 1 |
37367 | ||
6bd3dfaa | 37368 | @endif target-boehm-gc |
4fa63067 NN |
37369 | |
37370 | .PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc | |
37371 | maybe-mostlyclean-target-boehm-gc: | |
6bd3dfaa PB |
37372 | @if target-boehm-gc |
37373 | maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc | |
4fa63067 NN |
37374 | |
37375 | mostlyclean-target-boehm-gc: | |
0aed8855 | 37376 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37377 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37378 | r=`${PWD_COMMAND}`; export r; \ | |
37379 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37380 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37381 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37382 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37383 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37384 | done; \ | |
37385 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37386 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37387 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37388 | "RANLIB=$${RANLIB}" \ | |
37389 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37390 | mostlyclean) \ |
4fa63067 NN |
37391 | || exit 1 |
37392 | ||
6bd3dfaa | 37393 | @endif target-boehm-gc |
4fa63067 NN |
37394 | |
37395 | .PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc | |
37396 | maybe-clean-target-boehm-gc: | |
6bd3dfaa PB |
37397 | @if target-boehm-gc |
37398 | maybe-clean-target-boehm-gc: clean-target-boehm-gc | |
4fa63067 NN |
37399 | |
37400 | clean-target-boehm-gc: | |
0aed8855 | 37401 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37402 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37403 | r=`${PWD_COMMAND}`; export r; \ | |
37404 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37405 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37406 | echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37407 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37408 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37409 | done; \ | |
37410 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37411 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37412 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37413 | "RANLIB=$${RANLIB}" \ | |
37414 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37415 | clean) \ |
4fa63067 NN |
37416 | || exit 1 |
37417 | ||
6bd3dfaa | 37418 | @endif target-boehm-gc |
4fa63067 NN |
37419 | |
37420 | .PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc | |
37421 | maybe-distclean-target-boehm-gc: | |
6bd3dfaa PB |
37422 | @if target-boehm-gc |
37423 | maybe-distclean-target-boehm-gc: distclean-target-boehm-gc | |
4fa63067 NN |
37424 | |
37425 | distclean-target-boehm-gc: | |
0aed8855 | 37426 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37427 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37428 | r=`${PWD_COMMAND}`; export r; \ | |
37429 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37430 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37431 | echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37432 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37433 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37434 | done; \ | |
37435 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37436 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37437 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37438 | "RANLIB=$${RANLIB}" \ | |
37439 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37440 | distclean) \ |
4fa63067 NN |
37441 | || exit 1 |
37442 | ||
6bd3dfaa | 37443 | @endif target-boehm-gc |
4fa63067 NN |
37444 | |
37445 | .PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc | |
37446 | maybe-maintainer-clean-target-boehm-gc: | |
6bd3dfaa PB |
37447 | @if target-boehm-gc |
37448 | maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc | |
4fa63067 NN |
37449 | |
37450 | maintainer-clean-target-boehm-gc: | |
0aed8855 | 37451 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37452 | @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \ |
37453 | r=`${PWD_COMMAND}`; export r; \ | |
37454 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37455 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37456 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \ |
37457 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37458 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37459 | done; \ | |
37460 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
37461 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37462 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37463 | "RANLIB=$${RANLIB}" \ | |
37464 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37465 | maintainer-clean) \ |
4fa63067 NN |
37466 | || exit 1 |
37467 | ||
6bd3dfaa | 37468 | @endif target-boehm-gc |
4fa63067 NN |
37469 | |
37470 | ||
15723a45 | 37471 | |
15723a45 | 37472 | |
a7254363 PB |
37473 | |
37474 | .PHONY: configure-target-qthreads maybe-configure-target-qthreads | |
37475 | maybe-configure-target-qthreads: | |
37476 | @if target-qthreads | |
37477 | maybe-configure-target-qthreads: configure-target-qthreads | |
c52c6897 | 37478 | configure-target-qthreads: |
0aed8855 PB |
37479 | @: $(MAKE); $(unstage) |
37480 | @r=`${PWD_COMMAND}`; export r; \ | |
37481 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37482 | echo "Checking multilib configuration for qthreads..."; \ | |
37483 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \ | |
37484 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.tmp 2> /dev/null ; \ | |
37485 | if test -r $(TARGET_SUBDIR)/qthreads/multilib.out; then \ | |
37486 | if cmp -s $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; then \ | |
37487 | rm -f $(TARGET_SUBDIR)/qthreads/multilib.tmp; \ | |
37488 | else \ | |
37489 | rm -f $(TARGET_SUBDIR)/qthreads/Makefile; \ | |
37490 | mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \ | |
37491 | fi; \ | |
37492 | else \ | |
37493 | mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \ | |
c52c6897 PB |
37494 | fi; \ |
37495 | test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \ | |
4fa63067 | 37496 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \ |
378fce5b | 37497 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37498 | echo Configuring in $(TARGET_SUBDIR)/qthreads; \ |
37499 | cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \ | |
bba45b8b | 37500 | case $(srcdir) in \ |
b00612cc PB |
37501 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
37502 | *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \ | |
37503 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 37504 | esac; \ |
b00612cc PB |
37505 | srcdiroption="--srcdir=$${topdir}/qthreads"; \ |
37506 | libsrcdir="$$s/qthreads"; \ | |
bba45b8b NN |
37507 | rm -f no-such-file || : ; \ |
37508 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 37509 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 37510 | || exit 1 |
6bd3dfaa | 37511 | @endif target-qthreads |
252b5132 | 37512 | |
a7254363 PB |
37513 | |
37514 | ||
d545f33b PB |
37515 | |
37516 | ||
4fa63067 NN |
37517 | .PHONY: all-target-qthreads maybe-all-target-qthreads |
37518 | maybe-all-target-qthreads: | |
6bd3dfaa | 37519 | @if target-qthreads |
72b2455a | 37520 | TARGET-target-qthreads=all |
6bd3dfaa | 37521 | maybe-all-target-qthreads: all-target-qthreads |
4fa63067 | 37522 | all-target-qthreads: configure-target-qthreads |
0aed8855 | 37523 | @: $(MAKE); $(unstage) |
b40e3958 L |
37524 | @r=`${PWD_COMMAND}`; export r; \ |
37525 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37526 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37527 | (cd $(TARGET_SUBDIR)/qthreads && \ |
a7254363 | 37528 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads)) |
6bd3dfaa | 37529 | @endif target-qthreads |
252b5132 | 37530 | |
a7254363 PB |
37531 | |
37532 | ||
d545f33b PB |
37533 | |
37534 | ||
4fa63067 NN |
37535 | .PHONY: check-target-qthreads maybe-check-target-qthreads |
37536 | maybe-check-target-qthreads: | |
6bd3dfaa PB |
37537 | @if target-qthreads |
37538 | maybe-check-target-qthreads: check-target-qthreads | |
16ae0395 | 37539 | |
4fa63067 | 37540 | check-target-qthreads: |
0aed8855 | 37541 | @: $(MAKE); $(unstage) |
b40e3958 L |
37542 | @r=`${PWD_COMMAND}`; export r; \ |
37543 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37544 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37545 | (cd $(TARGET_SUBDIR)/qthreads && \ |
7ffa0b57 | 37546 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 37547 | |
6bd3dfaa | 37548 | @endif target-qthreads |
930314a4 | 37549 | |
4fa63067 NN |
37550 | .PHONY: install-target-qthreads maybe-install-target-qthreads |
37551 | maybe-install-target-qthreads: | |
6bd3dfaa PB |
37552 | @if target-qthreads |
37553 | maybe-install-target-qthreads: install-target-qthreads | |
4fa63067 NN |
37554 | |
37555 | install-target-qthreads: installdirs | |
0aed8855 | 37556 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37557 | @r=`${PWD_COMMAND}`; export r; \ |
37558 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37559 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37560 | (cd $(TARGET_SUBDIR)/qthreads && \ |
7ffa0b57 | 37561 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 37562 | |
6bd3dfaa | 37563 | @endif target-qthreads |
4fa63067 NN |
37564 | |
37565 | # Other targets (info, dvi, etc.) | |
37566 | ||
37567 | .PHONY: maybe-info-target-qthreads info-target-qthreads | |
37568 | maybe-info-target-qthreads: | |
6bd3dfaa PB |
37569 | @if target-qthreads |
37570 | maybe-info-target-qthreads: info-target-qthreads | |
4fa63067 NN |
37571 | |
37572 | info-target-qthreads: \ | |
37573 | configure-target-qthreads | |
0aed8855 | 37574 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37575 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37576 | r=`${PWD_COMMAND}`; export r; \ | |
37577 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37578 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37579 | echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \ |
37580 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37581 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37582 | done; \ | |
37583 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37584 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37585 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37586 | "RANLIB=$${RANLIB}" \ | |
37587 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37588 | info) \ |
4fa63067 NN |
37589 | || exit 1 |
37590 | ||
6bd3dfaa | 37591 | @endif target-qthreads |
4fa63067 NN |
37592 | |
37593 | .PHONY: maybe-dvi-target-qthreads dvi-target-qthreads | |
37594 | maybe-dvi-target-qthreads: | |
6bd3dfaa PB |
37595 | @if target-qthreads |
37596 | maybe-dvi-target-qthreads: dvi-target-qthreads | |
4fa63067 NN |
37597 | |
37598 | dvi-target-qthreads: \ | |
37599 | configure-target-qthreads | |
0aed8855 | 37600 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37601 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37602 | r=`${PWD_COMMAND}`; export r; \ | |
37603 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37604 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37605 | echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \ |
37606 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37607 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37608 | done; \ | |
37609 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37610 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37611 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37612 | "RANLIB=$${RANLIB}" \ | |
37613 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37614 | dvi) \ |
4fa63067 NN |
37615 | || exit 1 |
37616 | ||
6bd3dfaa | 37617 | @endif target-qthreads |
4fa63067 | 37618 | |
6d389afc MS |
37619 | .PHONY: maybe-html-target-qthreads html-target-qthreads |
37620 | maybe-html-target-qthreads: | |
37621 | @if target-qthreads | |
37622 | maybe-html-target-qthreads: html-target-qthreads | |
37623 | ||
37624 | html-target-qthreads: \ | |
37625 | configure-target-qthreads | |
0aed8855 | 37626 | @: $(MAKE); $(unstage) |
6d389afc MS |
37627 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37628 | r=`${PWD_COMMAND}`; export r; \ | |
37629 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
37630 | $(NORMAL_TARGET_EXPORTS) \ |
37631 | echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \ | |
37632 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37633 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37634 | done; \ | |
37635 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37636 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37637 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37638 | "RANLIB=$${RANLIB}" \ | |
37639 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
37640 | html) \ | |
37641 | || exit 1 | |
37642 | ||
37643 | @endif target-qthreads | |
37644 | ||
4fa63067 NN |
37645 | .PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads |
37646 | maybe-TAGS-target-qthreads: | |
6bd3dfaa PB |
37647 | @if target-qthreads |
37648 | maybe-TAGS-target-qthreads: TAGS-target-qthreads | |
4fa63067 NN |
37649 | |
37650 | TAGS-target-qthreads: \ | |
37651 | configure-target-qthreads | |
0aed8855 | 37652 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37653 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37654 | r=`${PWD_COMMAND}`; export r; \ | |
37655 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37656 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37657 | echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \ |
37658 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37659 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37660 | done; \ | |
37661 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37662 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37663 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37664 | "RANLIB=$${RANLIB}" \ | |
37665 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37666 | TAGS) \ |
4fa63067 NN |
37667 | || exit 1 |
37668 | ||
6bd3dfaa | 37669 | @endif target-qthreads |
4fa63067 NN |
37670 | |
37671 | .PHONY: maybe-install-info-target-qthreads install-info-target-qthreads | |
37672 | maybe-install-info-target-qthreads: | |
6bd3dfaa PB |
37673 | @if target-qthreads |
37674 | maybe-install-info-target-qthreads: install-info-target-qthreads | |
4fa63067 NN |
37675 | |
37676 | install-info-target-qthreads: \ | |
37677 | configure-target-qthreads \ | |
37678 | info-target-qthreads | |
0aed8855 | 37679 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37680 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37681 | r=`${PWD_COMMAND}`; export r; \ | |
37682 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37683 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37684 | echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \ |
37685 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37686 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37687 | done; \ | |
37688 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37689 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37690 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37691 | "RANLIB=$${RANLIB}" \ | |
37692 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37693 | install-info) \ |
4fa63067 NN |
37694 | || exit 1 |
37695 | ||
6bd3dfaa | 37696 | @endif target-qthreads |
4fa63067 | 37697 | |
108a6f8e CD |
37698 | .PHONY: maybe-install-html-target-qthreads install-html-target-qthreads |
37699 | maybe-install-html-target-qthreads: | |
37700 | @if target-qthreads | |
37701 | maybe-install-html-target-qthreads: install-html-target-qthreads | |
37702 | ||
37703 | install-html-target-qthreads: \ | |
37704 | configure-target-qthreads \ | |
37705 | html-target-qthreads | |
37706 | @: $(MAKE); $(unstage) | |
37707 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ | |
37708 | r=`${PWD_COMMAND}`; export r; \ | |
37709 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37710 | $(NORMAL_TARGET_EXPORTS) \ | |
37711 | echo "Doing install-html in $(TARGET_SUBDIR)/qthreads" ; \ | |
37712 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37713 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37714 | done; \ | |
37715 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37716 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37717 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37718 | "RANLIB=$${RANLIB}" \ | |
37719 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
37720 | install-html) \ | |
37721 | || exit 1 | |
37722 | ||
37723 | @endif target-qthreads | |
37724 | ||
4fa63067 NN |
37725 | .PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads |
37726 | maybe-installcheck-target-qthreads: | |
6bd3dfaa PB |
37727 | @if target-qthreads |
37728 | maybe-installcheck-target-qthreads: installcheck-target-qthreads | |
4fa63067 NN |
37729 | |
37730 | installcheck-target-qthreads: \ | |
37731 | configure-target-qthreads | |
0aed8855 | 37732 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37733 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37734 | r=`${PWD_COMMAND}`; export r; \ | |
37735 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37736 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37737 | echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \ |
37738 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37739 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37740 | done; \ | |
37741 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37742 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37743 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37744 | "RANLIB=$${RANLIB}" \ | |
37745 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37746 | installcheck) \ |
4fa63067 NN |
37747 | || exit 1 |
37748 | ||
6bd3dfaa | 37749 | @endif target-qthreads |
4fa63067 NN |
37750 | |
37751 | .PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads | |
37752 | maybe-mostlyclean-target-qthreads: | |
6bd3dfaa PB |
37753 | @if target-qthreads |
37754 | maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads | |
4fa63067 NN |
37755 | |
37756 | mostlyclean-target-qthreads: | |
0aed8855 | 37757 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37758 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37759 | r=`${PWD_COMMAND}`; export r; \ | |
37760 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37761 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37762 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \ |
37763 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37764 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37765 | done; \ | |
37766 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37767 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37768 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37769 | "RANLIB=$${RANLIB}" \ | |
37770 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37771 | mostlyclean) \ |
4fa63067 NN |
37772 | || exit 1 |
37773 | ||
6bd3dfaa | 37774 | @endif target-qthreads |
4fa63067 NN |
37775 | |
37776 | .PHONY: maybe-clean-target-qthreads clean-target-qthreads | |
37777 | maybe-clean-target-qthreads: | |
6bd3dfaa PB |
37778 | @if target-qthreads |
37779 | maybe-clean-target-qthreads: clean-target-qthreads | |
4fa63067 NN |
37780 | |
37781 | clean-target-qthreads: | |
0aed8855 | 37782 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37783 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37784 | r=`${PWD_COMMAND}`; export r; \ | |
37785 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37786 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37787 | echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \ |
37788 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37789 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37790 | done; \ | |
37791 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37792 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37793 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37794 | "RANLIB=$${RANLIB}" \ | |
37795 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37796 | clean) \ |
4fa63067 NN |
37797 | || exit 1 |
37798 | ||
6bd3dfaa | 37799 | @endif target-qthreads |
4fa63067 NN |
37800 | |
37801 | .PHONY: maybe-distclean-target-qthreads distclean-target-qthreads | |
37802 | maybe-distclean-target-qthreads: | |
6bd3dfaa PB |
37803 | @if target-qthreads |
37804 | maybe-distclean-target-qthreads: distclean-target-qthreads | |
4fa63067 NN |
37805 | |
37806 | distclean-target-qthreads: | |
0aed8855 | 37807 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37808 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37809 | r=`${PWD_COMMAND}`; export r; \ | |
37810 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37811 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37812 | echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \ |
37813 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37814 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37815 | done; \ | |
37816 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37817 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37818 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37819 | "RANLIB=$${RANLIB}" \ | |
37820 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37821 | distclean) \ |
4fa63067 NN |
37822 | || exit 1 |
37823 | ||
6bd3dfaa | 37824 | @endif target-qthreads |
4fa63067 NN |
37825 | |
37826 | .PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads | |
37827 | maybe-maintainer-clean-target-qthreads: | |
6bd3dfaa PB |
37828 | @if target-qthreads |
37829 | maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads | |
4fa63067 NN |
37830 | |
37831 | maintainer-clean-target-qthreads: | |
0aed8855 | 37832 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37833 | @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \ |
37834 | r=`${PWD_COMMAND}`; export r; \ | |
37835 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37836 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37837 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \ |
37838 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37839 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37840 | done; \ | |
37841 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
37842 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37843 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37844 | "RANLIB=$${RANLIB}" \ | |
37845 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37846 | maintainer-clean) \ |
4fa63067 | 37847 | || exit 1 |
16ae0395 | 37848 | |
6bd3dfaa | 37849 | @endif target-qthreads |
49b7683b | 37850 | |
e393202e | 37851 | |
15723a45 | 37852 | |
e90269c8 | 37853 | |
a7254363 PB |
37854 | |
37855 | .PHONY: configure-target-rda maybe-configure-target-rda | |
37856 | maybe-configure-target-rda: | |
37857 | @if target-rda | |
37858 | maybe-configure-target-rda: configure-target-rda | |
c52c6897 | 37859 | configure-target-rda: |
0aed8855 PB |
37860 | @: $(MAKE); $(unstage) |
37861 | @r=`${PWD_COMMAND}`; export r; \ | |
37862 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
37863 | echo "Checking multilib configuration for rda..."; \ | |
37864 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \ | |
37865 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \ | |
37866 | if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \ | |
37867 | if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \ | |
37868 | rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \ | |
37869 | else \ | |
37870 | rm -f $(TARGET_SUBDIR)/rda/Makefile; \ | |
37871 | mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \ | |
37872 | fi; \ | |
37873 | else \ | |
37874 | mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \ | |
c52c6897 PB |
37875 | fi; \ |
37876 | test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \ | |
4fa63067 | 37877 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \ |
378fce5b | 37878 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37879 | echo Configuring in $(TARGET_SUBDIR)/rda; \ |
37880 | cd "$(TARGET_SUBDIR)/rda" || exit 1; \ | |
bba45b8b | 37881 | case $(srcdir) in \ |
b00612cc PB |
37882 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
37883 | *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \ | |
37884 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
bba45b8b | 37885 | esac; \ |
b00612cc PB |
37886 | srcdiroption="--srcdir=$${topdir}/rda"; \ |
37887 | libsrcdir="$$s/rda"; \ | |
bba45b8b NN |
37888 | rm -f no-such-file || : ; \ |
37889 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 37890 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
bba45b8b | 37891 | || exit 1 |
6bd3dfaa | 37892 | @endif target-rda |
49b7683b | 37893 | |
a7254363 PB |
37894 | |
37895 | ||
d545f33b PB |
37896 | |
37897 | ||
4fa63067 NN |
37898 | .PHONY: all-target-rda maybe-all-target-rda |
37899 | maybe-all-target-rda: | |
6bd3dfaa | 37900 | @if target-rda |
72b2455a | 37901 | TARGET-target-rda=all |
6bd3dfaa | 37902 | maybe-all-target-rda: all-target-rda |
4fa63067 | 37903 | all-target-rda: configure-target-rda |
0aed8855 | 37904 | @: $(MAKE); $(unstage) |
b40e3958 L |
37905 | @r=`${PWD_COMMAND}`; export r; \ |
37906 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37907 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37908 | (cd $(TARGET_SUBDIR)/rda && \ |
a7254363 | 37909 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda)) |
6bd3dfaa | 37910 | @endif target-rda |
252b5132 | 37911 | |
a7254363 PB |
37912 | |
37913 | ||
d545f33b PB |
37914 | |
37915 | ||
4fa63067 NN |
37916 | .PHONY: check-target-rda maybe-check-target-rda |
37917 | maybe-check-target-rda: | |
6bd3dfaa PB |
37918 | @if target-rda |
37919 | maybe-check-target-rda: check-target-rda | |
16ae0395 | 37920 | |
4fa63067 | 37921 | check-target-rda: |
0aed8855 | 37922 | @: $(MAKE); $(unstage) |
b40e3958 L |
37923 | @r=`${PWD_COMMAND}`; export r; \ |
37924 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37925 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37926 | (cd $(TARGET_SUBDIR)/rda && \ |
7ffa0b57 | 37927 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 37928 | |
6bd3dfaa | 37929 | @endif target-rda |
930314a4 | 37930 | |
4fa63067 NN |
37931 | .PHONY: install-target-rda maybe-install-target-rda |
37932 | maybe-install-target-rda: | |
6bd3dfaa PB |
37933 | @if target-rda |
37934 | maybe-install-target-rda: install-target-rda | |
16ae0395 | 37935 | |
4fa63067 | 37936 | install-target-rda: installdirs |
0aed8855 | 37937 | @: $(MAKE); $(unstage) |
b40e3958 L |
37938 | @r=`${PWD_COMMAND}`; export r; \ |
37939 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37940 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 37941 | (cd $(TARGET_SUBDIR)/rda && \ |
7ffa0b57 | 37942 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e | 37943 | |
6bd3dfaa | 37944 | @endif target-rda |
e393202e | 37945 | |
4fa63067 | 37946 | # Other targets (info, dvi, etc.) |
15723a45 | 37947 | |
4fa63067 NN |
37948 | .PHONY: maybe-info-target-rda info-target-rda |
37949 | maybe-info-target-rda: | |
6bd3dfaa PB |
37950 | @if target-rda |
37951 | maybe-info-target-rda: info-target-rda | |
15723a45 | 37952 | |
4fa63067 NN |
37953 | info-target-rda: \ |
37954 | configure-target-rda | |
0aed8855 | 37955 | @: $(MAKE); $(unstage) |
4fa63067 | 37956 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
b40e3958 L |
37957 | r=`${PWD_COMMAND}`; export r; \ |
37958 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 37959 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37960 | echo "Doing info in $(TARGET_SUBDIR)/rda" ; \ |
37961 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37962 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37963 | done; \ | |
37964 | (cd $(TARGET_SUBDIR)/rda && \ | |
37965 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37966 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37967 | "RANLIB=$${RANLIB}" \ | |
37968 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37969 | info) \ |
bba45b8b | 37970 | || exit 1 |
252b5132 | 37971 | |
6bd3dfaa | 37972 | @endif target-rda |
4fa63067 NN |
37973 | |
37974 | .PHONY: maybe-dvi-target-rda dvi-target-rda | |
37975 | maybe-dvi-target-rda: | |
6bd3dfaa PB |
37976 | @if target-rda |
37977 | maybe-dvi-target-rda: dvi-target-rda | |
4fa63067 NN |
37978 | |
37979 | dvi-target-rda: \ | |
37980 | configure-target-rda | |
0aed8855 | 37981 | @: $(MAKE); $(unstage) |
4fa63067 NN |
37982 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
37983 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 37984 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 37985 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
37986 | echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \ |
37987 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
37988 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
37989 | done; \ | |
37990 | (cd $(TARGET_SUBDIR)/rda && \ | |
37991 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
37992 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
37993 | "RANLIB=$${RANLIB}" \ | |
37994 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 37995 | dvi) \ |
4fa63067 | 37996 | || exit 1 |
252b5132 | 37997 | |
6bd3dfaa | 37998 | @endif target-rda |
16ae0395 | 37999 | |
6d389afc MS |
38000 | .PHONY: maybe-html-target-rda html-target-rda |
38001 | maybe-html-target-rda: | |
38002 | @if target-rda | |
38003 | maybe-html-target-rda: html-target-rda | |
38004 | ||
38005 | html-target-rda: \ | |
38006 | configure-target-rda | |
0aed8855 | 38007 | @: $(MAKE); $(unstage) |
6d389afc MS |
38008 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38009 | r=`${PWD_COMMAND}`; export r; \ | |
38010 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
38011 | $(NORMAL_TARGET_EXPORTS) \ |
38012 | echo "Doing html in $(TARGET_SUBDIR)/rda" ; \ | |
38013 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38014 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38015 | done; \ | |
38016 | (cd $(TARGET_SUBDIR)/rda && \ | |
38017 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38018 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38019 | "RANLIB=$${RANLIB}" \ | |
38020 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38021 | html) \ | |
38022 | || exit 1 | |
38023 | ||
38024 | @endif target-rda | |
38025 | ||
4fa63067 NN |
38026 | .PHONY: maybe-TAGS-target-rda TAGS-target-rda |
38027 | maybe-TAGS-target-rda: | |
6bd3dfaa PB |
38028 | @if target-rda |
38029 | maybe-TAGS-target-rda: TAGS-target-rda | |
4fa63067 NN |
38030 | |
38031 | TAGS-target-rda: \ | |
38032 | configure-target-rda | |
0aed8855 | 38033 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38034 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38035 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 38036 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38037 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38038 | echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \ |
38039 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38040 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38041 | done; \ | |
38042 | (cd $(TARGET_SUBDIR)/rda && \ | |
38043 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38044 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38045 | "RANLIB=$${RANLIB}" \ | |
38046 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38047 | TAGS) \ |
4fa63067 | 38048 | || exit 1 |
e393202e | 38049 | |
6bd3dfaa | 38050 | @endif target-rda |
930314a4 | 38051 | |
4fa63067 NN |
38052 | .PHONY: maybe-install-info-target-rda install-info-target-rda |
38053 | maybe-install-info-target-rda: | |
6bd3dfaa PB |
38054 | @if target-rda |
38055 | maybe-install-info-target-rda: install-info-target-rda | |
16ae0395 | 38056 | |
4fa63067 NN |
38057 | install-info-target-rda: \ |
38058 | configure-target-rda \ | |
38059 | info-target-rda | |
0aed8855 | 38060 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38061 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38062 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 38063 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38064 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38065 | echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \ |
38066 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38067 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38068 | done; \ | |
38069 | (cd $(TARGET_SUBDIR)/rda && \ | |
38070 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38071 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38072 | "RANLIB=$${RANLIB}" \ | |
38073 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38074 | install-info) \ |
4fa63067 | 38075 | || exit 1 |
252b5132 | 38076 | |
6bd3dfaa | 38077 | @endif target-rda |
e393202e | 38078 | |
108a6f8e CD |
38079 | .PHONY: maybe-install-html-target-rda install-html-target-rda |
38080 | maybe-install-html-target-rda: | |
38081 | @if target-rda | |
38082 | maybe-install-html-target-rda: install-html-target-rda | |
38083 | ||
38084 | install-html-target-rda: \ | |
38085 | configure-target-rda \ | |
38086 | html-target-rda | |
38087 | @: $(MAKE); $(unstage) | |
38088 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ | |
38089 | r=`${PWD_COMMAND}`; export r; \ | |
38090 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38091 | $(NORMAL_TARGET_EXPORTS) \ | |
38092 | echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \ | |
38093 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38094 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38095 | done; \ | |
38096 | (cd $(TARGET_SUBDIR)/rda && \ | |
38097 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38098 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38099 | "RANLIB=$${RANLIB}" \ | |
38100 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38101 | install-html) \ | |
38102 | || exit 1 | |
38103 | ||
38104 | @endif target-rda | |
38105 | ||
4fa63067 NN |
38106 | .PHONY: maybe-installcheck-target-rda installcheck-target-rda |
38107 | maybe-installcheck-target-rda: | |
6bd3dfaa PB |
38108 | @if target-rda |
38109 | maybe-installcheck-target-rda: installcheck-target-rda | |
15723a45 | 38110 | |
4fa63067 NN |
38111 | installcheck-target-rda: \ |
38112 | configure-target-rda | |
0aed8855 | 38113 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38114 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38115 | r=`${PWD_COMMAND}`; export r; \ | |
38116 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38117 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38118 | echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \ |
38119 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38120 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38121 | done; \ | |
38122 | (cd $(TARGET_SUBDIR)/rda && \ | |
38123 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38124 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38125 | "RANLIB=$${RANLIB}" \ | |
38126 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38127 | installcheck) \ |
4fa63067 | 38128 | || exit 1 |
15723a45 | 38129 | |
6bd3dfaa | 38130 | @endif target-rda |
4fa63067 NN |
38131 | |
38132 | .PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda | |
38133 | maybe-mostlyclean-target-rda: | |
6bd3dfaa PB |
38134 | @if target-rda |
38135 | maybe-mostlyclean-target-rda: mostlyclean-target-rda | |
4fa63067 NN |
38136 | |
38137 | mostlyclean-target-rda: | |
0aed8855 | 38138 | @: $(MAKE); $(unstage) |
4fa63067 | 38139 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
b40e3958 L |
38140 | r=`${PWD_COMMAND}`; export r; \ |
38141 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38142 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38143 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \ |
38144 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38145 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38146 | done; \ | |
38147 | (cd $(TARGET_SUBDIR)/rda && \ | |
38148 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38149 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38150 | "RANLIB=$${RANLIB}" \ | |
38151 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38152 | mostlyclean) \ |
bba45b8b | 38153 | || exit 1 |
252b5132 | 38154 | |
6bd3dfaa | 38155 | @endif target-rda |
4fa63067 NN |
38156 | |
38157 | .PHONY: maybe-clean-target-rda clean-target-rda | |
38158 | maybe-clean-target-rda: | |
6bd3dfaa PB |
38159 | @if target-rda |
38160 | maybe-clean-target-rda: clean-target-rda | |
4fa63067 NN |
38161 | |
38162 | clean-target-rda: | |
0aed8855 | 38163 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38164 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38165 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 38166 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38167 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38168 | echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \ |
38169 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38170 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38171 | done; \ | |
bba45b8b | 38172 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
38173 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38174 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38175 | "RANLIB=$${RANLIB}" \ | |
38176 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38177 | clean) \ |
4fa63067 | 38178 | || exit 1 |
252b5132 | 38179 | |
6bd3dfaa | 38180 | @endif target-rda |
16ae0395 | 38181 | |
4fa63067 NN |
38182 | .PHONY: maybe-distclean-target-rda distclean-target-rda |
38183 | maybe-distclean-target-rda: | |
6bd3dfaa PB |
38184 | @if target-rda |
38185 | maybe-distclean-target-rda: distclean-target-rda | |
4fa63067 NN |
38186 | |
38187 | distclean-target-rda: | |
0aed8855 | 38188 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38189 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38190 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 38191 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38192 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38193 | echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \ |
38194 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38195 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38196 | done; \ | |
bba45b8b | 38197 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
38198 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38199 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38200 | "RANLIB=$${RANLIB}" \ | |
38201 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38202 | distclean) \ |
4fa63067 | 38203 | || exit 1 |
252b5132 | 38204 | |
6bd3dfaa | 38205 | @endif target-rda |
930314a4 | 38206 | |
4fa63067 NN |
38207 | .PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda |
38208 | maybe-maintainer-clean-target-rda: | |
6bd3dfaa PB |
38209 | @if target-rda |
38210 | maybe-maintainer-clean-target-rda: maintainer-clean-target-rda | |
16ae0395 | 38211 | |
4fa63067 | 38212 | maintainer-clean-target-rda: |
0aed8855 | 38213 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38214 | @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \ |
38215 | r=`${PWD_COMMAND}`; export r; \ | |
b40e3958 | 38216 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38217 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38218 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \ |
38219 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38220 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38221 | done; \ | |
bba45b8b | 38222 | (cd $(TARGET_SUBDIR)/rda && \ |
4fa63067 NN |
38223 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38224 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38225 | "RANLIB=$${RANLIB}" \ | |
38226 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38227 | maintainer-clean) \ |
4fa63067 NN |
38228 | || exit 1 |
38229 | ||
6bd3dfaa | 38230 | @endif target-rda |
252b5132 | 38231 | |
e393202e | 38232 | |
a2592b1b | 38233 | |
a7254363 PB |
38234 | |
38235 | ||
38236 | .PHONY: configure-target-libada maybe-configure-target-libada | |
38237 | maybe-configure-target-libada: | |
38238 | @if target-libada | |
38239 | maybe-configure-target-libada: configure-target-libada | |
c52c6897 | 38240 | configure-target-libada: |
0aed8855 PB |
38241 | @: $(MAKE); $(unstage) |
38242 | @r=`${PWD_COMMAND}`; export r; \ | |
38243 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38244 | echo "Checking multilib configuration for libada..."; \ | |
38245 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \ | |
38246 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \ | |
38247 | if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \ | |
38248 | if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \ | |
38249 | rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \ | |
38250 | else \ | |
38251 | rm -f $(TARGET_SUBDIR)/libada/Makefile; \ | |
38252 | mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \ | |
38253 | fi; \ | |
38254 | else \ | |
38255 | mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \ | |
c52c6897 PB |
38256 | fi; \ |
38257 | test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \ | |
a2592b1b | 38258 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \ |
378fce5b | 38259 | $(NORMAL_TARGET_EXPORTS) \ |
a2592b1b DD |
38260 | echo Configuring in $(TARGET_SUBDIR)/libada; \ |
38261 | cd "$(TARGET_SUBDIR)/libada" || exit 1; \ | |
38262 | case $(srcdir) in \ | |
b00612cc PB |
38263 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
38264 | *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \ | |
38265 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
a2592b1b | 38266 | esac; \ |
b00612cc PB |
38267 | srcdiroption="--srcdir=$${topdir}/libada"; \ |
38268 | libsrcdir="$$s/libada"; \ | |
a2592b1b DD |
38269 | rm -f no-such-file || : ; \ |
38270 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
a7254363 | 38271 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
a2592b1b | 38272 | || exit 1 |
6bd3dfaa | 38273 | @endif target-libada |
a2592b1b | 38274 | |
a7254363 PB |
38275 | |
38276 | ||
d545f33b PB |
38277 | |
38278 | ||
4fa63067 NN |
38279 | .PHONY: all-target-libada maybe-all-target-libada |
38280 | maybe-all-target-libada: | |
6bd3dfaa | 38281 | @if target-libada |
72b2455a | 38282 | TARGET-target-libada=all |
6bd3dfaa | 38283 | maybe-all-target-libada: all-target-libada |
4fa63067 | 38284 | all-target-libada: configure-target-libada |
0aed8855 | 38285 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38286 | @r=`${PWD_COMMAND}`; export r; \ |
38287 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38288 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 38289 | (cd $(TARGET_SUBDIR)/libada && \ |
a7254363 | 38290 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada)) |
6bd3dfaa | 38291 | @endif target-libada |
4fa63067 | 38292 | |
a7254363 PB |
38293 | |
38294 | ||
d545f33b PB |
38295 | |
38296 | ||
4fa63067 NN |
38297 | .PHONY: check-target-libada maybe-check-target-libada |
38298 | maybe-check-target-libada: | |
6bd3dfaa PB |
38299 | @if target-libada |
38300 | maybe-check-target-libada: check-target-libada | |
4fa63067 NN |
38301 | |
38302 | check-target-libada: | |
0aed8855 | 38303 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38304 | @r=`${PWD_COMMAND}`; export r; \ |
38305 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38306 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 38307 | (cd $(TARGET_SUBDIR)/libada && \ |
7ffa0b57 | 38308 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
4fa63067 | 38309 | |
6bd3dfaa | 38310 | @endif target-libada |
4fa63067 NN |
38311 | |
38312 | .PHONY: install-target-libada maybe-install-target-libada | |
38313 | maybe-install-target-libada: | |
6bd3dfaa PB |
38314 | @if target-libada |
38315 | maybe-install-target-libada: install-target-libada | |
4fa63067 NN |
38316 | |
38317 | install-target-libada: installdirs | |
0aed8855 | 38318 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38319 | @r=`${PWD_COMMAND}`; export r; \ |
38320 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38321 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 | 38322 | (cd $(TARGET_SUBDIR)/libada && \ |
7ffa0b57 | 38323 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
4fa63067 | 38324 | |
6bd3dfaa | 38325 | @endif target-libada |
4fa63067 NN |
38326 | |
38327 | # Other targets (info, dvi, etc.) | |
38328 | ||
38329 | .PHONY: maybe-info-target-libada info-target-libada | |
38330 | maybe-info-target-libada: | |
6bd3dfaa PB |
38331 | @if target-libada |
38332 | maybe-info-target-libada: info-target-libada | |
4fa63067 NN |
38333 | |
38334 | info-target-libada: \ | |
38335 | configure-target-libada | |
0aed8855 | 38336 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38337 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38338 | r=`${PWD_COMMAND}`; export r; \ | |
38339 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38340 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38341 | echo "Doing info in $(TARGET_SUBDIR)/libada" ; \ |
38342 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38343 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38344 | done; \ | |
38345 | (cd $(TARGET_SUBDIR)/libada && \ | |
38346 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38347 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38348 | "RANLIB=$${RANLIB}" \ | |
38349 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38350 | info) \ |
4fa63067 NN |
38351 | || exit 1 |
38352 | ||
6bd3dfaa | 38353 | @endif target-libada |
4fa63067 NN |
38354 | |
38355 | .PHONY: maybe-dvi-target-libada dvi-target-libada | |
38356 | maybe-dvi-target-libada: | |
6bd3dfaa PB |
38357 | @if target-libada |
38358 | maybe-dvi-target-libada: dvi-target-libada | |
4fa63067 NN |
38359 | |
38360 | dvi-target-libada: \ | |
38361 | configure-target-libada | |
0aed8855 | 38362 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38363 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38364 | r=`${PWD_COMMAND}`; export r; \ | |
38365 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38366 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38367 | echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \ |
38368 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38369 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38370 | done; \ | |
38371 | (cd $(TARGET_SUBDIR)/libada && \ | |
38372 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38373 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38374 | "RANLIB=$${RANLIB}" \ | |
38375 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38376 | dvi) \ |
4fa63067 NN |
38377 | || exit 1 |
38378 | ||
6bd3dfaa | 38379 | @endif target-libada |
4fa63067 | 38380 | |
6d389afc MS |
38381 | .PHONY: maybe-html-target-libada html-target-libada |
38382 | maybe-html-target-libada: | |
38383 | @if target-libada | |
38384 | maybe-html-target-libada: html-target-libada | |
38385 | ||
38386 | html-target-libada: \ | |
38387 | configure-target-libada | |
0aed8855 | 38388 | @: $(MAKE); $(unstage) |
6d389afc MS |
38389 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38390 | r=`${PWD_COMMAND}`; export r; \ | |
38391 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
6d389afc MS |
38392 | $(NORMAL_TARGET_EXPORTS) \ |
38393 | echo "Doing html in $(TARGET_SUBDIR)/libada" ; \ | |
38394 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38395 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38396 | done; \ | |
38397 | (cd $(TARGET_SUBDIR)/libada && \ | |
38398 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38399 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38400 | "RANLIB=$${RANLIB}" \ | |
38401 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38402 | html) \ | |
38403 | || exit 1 | |
38404 | ||
38405 | @endif target-libada | |
38406 | ||
4fa63067 NN |
38407 | .PHONY: maybe-TAGS-target-libada TAGS-target-libada |
38408 | maybe-TAGS-target-libada: | |
6bd3dfaa PB |
38409 | @if target-libada |
38410 | maybe-TAGS-target-libada: TAGS-target-libada | |
4fa63067 NN |
38411 | |
38412 | TAGS-target-libada: \ | |
38413 | configure-target-libada | |
0aed8855 | 38414 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38415 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38416 | r=`${PWD_COMMAND}`; export r; \ | |
38417 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38418 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38419 | echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \ |
38420 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38421 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38422 | done; \ | |
38423 | (cd $(TARGET_SUBDIR)/libada && \ | |
38424 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38425 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38426 | "RANLIB=$${RANLIB}" \ | |
38427 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38428 | TAGS) \ |
4fa63067 NN |
38429 | || exit 1 |
38430 | ||
6bd3dfaa | 38431 | @endif target-libada |
4fa63067 NN |
38432 | |
38433 | .PHONY: maybe-install-info-target-libada install-info-target-libada | |
38434 | maybe-install-info-target-libada: | |
6bd3dfaa PB |
38435 | @if target-libada |
38436 | maybe-install-info-target-libada: install-info-target-libada | |
4fa63067 NN |
38437 | |
38438 | install-info-target-libada: \ | |
38439 | configure-target-libada \ | |
38440 | info-target-libada | |
0aed8855 | 38441 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38442 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38443 | r=`${PWD_COMMAND}`; export r; \ | |
38444 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38445 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38446 | echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \ |
38447 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38448 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38449 | done; \ | |
38450 | (cd $(TARGET_SUBDIR)/libada && \ | |
38451 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38452 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38453 | "RANLIB=$${RANLIB}" \ | |
38454 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38455 | install-info) \ |
4fa63067 NN |
38456 | || exit 1 |
38457 | ||
6bd3dfaa | 38458 | @endif target-libada |
4fa63067 | 38459 | |
108a6f8e CD |
38460 | .PHONY: maybe-install-html-target-libada install-html-target-libada |
38461 | maybe-install-html-target-libada: | |
38462 | @if target-libada | |
38463 | maybe-install-html-target-libada: install-html-target-libada | |
38464 | ||
38465 | install-html-target-libada: \ | |
38466 | configure-target-libada \ | |
38467 | html-target-libada | |
38468 | @: $(MAKE); $(unstage) | |
38469 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ | |
38470 | r=`${PWD_COMMAND}`; export r; \ | |
38471 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38472 | $(NORMAL_TARGET_EXPORTS) \ | |
38473 | echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \ | |
38474 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38475 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38476 | done; \ | |
38477 | (cd $(TARGET_SUBDIR)/libada && \ | |
38478 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38479 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38480 | "RANLIB=$${RANLIB}" \ | |
38481 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38482 | install-html) \ | |
38483 | || exit 1 | |
38484 | ||
38485 | @endif target-libada | |
38486 | ||
4fa63067 NN |
38487 | .PHONY: maybe-installcheck-target-libada installcheck-target-libada |
38488 | maybe-installcheck-target-libada: | |
6bd3dfaa PB |
38489 | @if target-libada |
38490 | maybe-installcheck-target-libada: installcheck-target-libada | |
4fa63067 NN |
38491 | |
38492 | installcheck-target-libada: \ | |
38493 | configure-target-libada | |
0aed8855 | 38494 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38495 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38496 | r=`${PWD_COMMAND}`; export r; \ | |
38497 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38498 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38499 | echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \ |
38500 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38501 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38502 | done; \ | |
38503 | (cd $(TARGET_SUBDIR)/libada && \ | |
38504 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38505 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38506 | "RANLIB=$${RANLIB}" \ | |
38507 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38508 | installcheck) \ |
4fa63067 NN |
38509 | || exit 1 |
38510 | ||
6bd3dfaa | 38511 | @endif target-libada |
4fa63067 NN |
38512 | |
38513 | .PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada | |
38514 | maybe-mostlyclean-target-libada: | |
6bd3dfaa PB |
38515 | @if target-libada |
38516 | maybe-mostlyclean-target-libada: mostlyclean-target-libada | |
4fa63067 NN |
38517 | |
38518 | mostlyclean-target-libada: | |
0aed8855 | 38519 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38520 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38521 | r=`${PWD_COMMAND}`; export r; \ | |
38522 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38523 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38524 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \ |
38525 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38526 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38527 | done; \ | |
38528 | (cd $(TARGET_SUBDIR)/libada && \ | |
38529 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38530 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38531 | "RANLIB=$${RANLIB}" \ | |
38532 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38533 | mostlyclean) \ |
4fa63067 NN |
38534 | || exit 1 |
38535 | ||
6bd3dfaa | 38536 | @endif target-libada |
4fa63067 NN |
38537 | |
38538 | .PHONY: maybe-clean-target-libada clean-target-libada | |
38539 | maybe-clean-target-libada: | |
6bd3dfaa PB |
38540 | @if target-libada |
38541 | maybe-clean-target-libada: clean-target-libada | |
4fa63067 NN |
38542 | |
38543 | clean-target-libada: | |
0aed8855 | 38544 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38545 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38546 | r=`${PWD_COMMAND}`; export r; \ | |
38547 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
378fce5b | 38548 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38549 | echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \ |
38550 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38551 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38552 | done; \ | |
38553 | (cd $(TARGET_SUBDIR)/libada && \ | |
38554 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38555 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38556 | "RANLIB=$${RANLIB}" \ | |
38557 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38558 | clean) \ |
4fa63067 NN |
38559 | || exit 1 |
38560 | ||
6bd3dfaa | 38561 | @endif target-libada |
a2592b1b | 38562 | |
4fa63067 NN |
38563 | .PHONY: maybe-distclean-target-libada distclean-target-libada |
38564 | maybe-distclean-target-libada: | |
6bd3dfaa PB |
38565 | @if target-libada |
38566 | maybe-distclean-target-libada: distclean-target-libada | |
a2592b1b | 38567 | |
4fa63067 | 38568 | distclean-target-libada: |
0aed8855 | 38569 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38570 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38571 | r=`${PWD_COMMAND}`; export r; \ | |
a2592b1b | 38572 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38573 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38574 | echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \ |
38575 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38576 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38577 | done; \ | |
a2592b1b | 38578 | (cd $(TARGET_SUBDIR)/libada && \ |
4fa63067 NN |
38579 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38580 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38581 | "RANLIB=$${RANLIB}" \ | |
38582 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38583 | distclean) \ |
4fa63067 | 38584 | || exit 1 |
a2592b1b | 38585 | |
6bd3dfaa | 38586 | @endif target-libada |
a2592b1b | 38587 | |
4fa63067 NN |
38588 | .PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada |
38589 | maybe-maintainer-clean-target-libada: | |
6bd3dfaa PB |
38590 | @if target-libada |
38591 | maybe-maintainer-clean-target-libada: maintainer-clean-target-libada | |
a2592b1b | 38592 | |
4fa63067 | 38593 | maintainer-clean-target-libada: |
0aed8855 | 38594 | @: $(MAKE); $(unstage) |
4fa63067 NN |
38595 | @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \ |
38596 | r=`${PWD_COMMAND}`; export r; \ | |
a2592b1b | 38597 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
378fce5b | 38598 | $(NORMAL_TARGET_EXPORTS) \ |
4fa63067 NN |
38599 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \ |
38600 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38601 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38602 | done; \ | |
a2592b1b | 38603 | (cd $(TARGET_SUBDIR)/libada && \ |
4fa63067 NN |
38604 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
38605 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38606 | "RANLIB=$${RANLIB}" \ | |
38607 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
7ffa0b57 | 38608 | maintainer-clean) \ |
4fa63067 NN |
38609 | || exit 1 |
38610 | ||
6bd3dfaa | 38611 | @endif target-libada |
a2592b1b DD |
38612 | |
38613 | ||
e393202e | 38614 | |
b3ded179 PB |
38615 | |
38616 | ||
38617 | .PHONY: configure-target-libgomp maybe-configure-target-libgomp | |
38618 | maybe-configure-target-libgomp: | |
38619 | @if target-libgomp | |
38620 | maybe-configure-target-libgomp: configure-target-libgomp | |
c52c6897 | 38621 | configure-target-libgomp: |
b3ded179 PB |
38622 | @: $(MAKE); $(unstage) |
38623 | @r=`${PWD_COMMAND}`; export r; \ | |
38624 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38625 | echo "Checking multilib configuration for libgomp..."; \ | |
38626 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \ | |
38627 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \ | |
38628 | if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
38629 | if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \ | |
38630 | rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \ | |
38631 | else \ | |
38632 | rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \ | |
38633 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
38634 | fi; \ | |
38635 | else \ | |
38636 | mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \ | |
c52c6897 PB |
38637 | fi; \ |
38638 | test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \ | |
b3ded179 | 38639 | $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \ |
b3ded179 PB |
38640 | $(NORMAL_TARGET_EXPORTS) \ |
38641 | echo Configuring in $(TARGET_SUBDIR)/libgomp; \ | |
38642 | cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \ | |
38643 | case $(srcdir) in \ | |
38644 | /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | |
38645 | *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \ | |
38646 | sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | |
38647 | esac; \ | |
38648 | srcdiroption="--srcdir=$${topdir}/libgomp"; \ | |
38649 | libsrcdir="$$s/libgomp"; \ | |
38650 | rm -f no-such-file || : ; \ | |
38651 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
38652 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
38653 | || exit 1 | |
38654 | @endif target-libgomp | |
38655 | ||
38656 | ||
38657 | ||
38658 | ||
38659 | ||
38660 | .PHONY: all-target-libgomp maybe-all-target-libgomp | |
38661 | maybe-all-target-libgomp: | |
38662 | @if target-libgomp | |
38663 | TARGET-target-libgomp=all | |
38664 | maybe-all-target-libgomp: all-target-libgomp | |
38665 | all-target-libgomp: configure-target-libgomp | |
38666 | @: $(MAKE); $(unstage) | |
38667 | @r=`${PWD_COMMAND}`; export r; \ | |
38668 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38669 | $(NORMAL_TARGET_EXPORTS) \ | |
38670 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38671 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgomp)) | |
38672 | @endif target-libgomp | |
38673 | ||
38674 | ||
38675 | ||
38676 | ||
38677 | ||
38678 | .PHONY: check-target-libgomp maybe-check-target-libgomp | |
38679 | maybe-check-target-libgomp: | |
38680 | @if target-libgomp | |
38681 | maybe-check-target-libgomp: check-target-libgomp | |
38682 | ||
38683 | check-target-libgomp: | |
38684 | @: $(MAKE); $(unstage) | |
38685 | @r=`${PWD_COMMAND}`; export r; \ | |
38686 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38687 | $(NORMAL_TARGET_EXPORTS) \ | |
38688 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38689 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
38690 | ||
38691 | @endif target-libgomp | |
38692 | ||
38693 | .PHONY: install-target-libgomp maybe-install-target-libgomp | |
38694 | maybe-install-target-libgomp: | |
38695 | @if target-libgomp | |
38696 | maybe-install-target-libgomp: install-target-libgomp | |
38697 | ||
38698 | install-target-libgomp: installdirs | |
38699 | @: $(MAKE); $(unstage) | |
38700 | @r=`${PWD_COMMAND}`; export r; \ | |
38701 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38702 | $(NORMAL_TARGET_EXPORTS) \ | |
38703 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38704 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
38705 | ||
38706 | @endif target-libgomp | |
38707 | ||
38708 | # Other targets (info, dvi, etc.) | |
38709 | ||
38710 | .PHONY: maybe-info-target-libgomp info-target-libgomp | |
38711 | maybe-info-target-libgomp: | |
38712 | @if target-libgomp | |
38713 | maybe-info-target-libgomp: info-target-libgomp | |
38714 | ||
38715 | info-target-libgomp: \ | |
38716 | configure-target-libgomp | |
38717 | @: $(MAKE); $(unstage) | |
38718 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38719 | r=`${PWD_COMMAND}`; export r; \ | |
38720 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38721 | $(NORMAL_TARGET_EXPORTS) \ | |
38722 | echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \ | |
38723 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38724 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38725 | done; \ | |
38726 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38727 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38728 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38729 | "RANLIB=$${RANLIB}" \ | |
38730 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38731 | info) \ | |
38732 | || exit 1 | |
38733 | ||
38734 | @endif target-libgomp | |
38735 | ||
38736 | .PHONY: maybe-dvi-target-libgomp dvi-target-libgomp | |
38737 | maybe-dvi-target-libgomp: | |
38738 | @if target-libgomp | |
38739 | maybe-dvi-target-libgomp: dvi-target-libgomp | |
38740 | ||
38741 | dvi-target-libgomp: \ | |
38742 | configure-target-libgomp | |
38743 | @: $(MAKE); $(unstage) | |
38744 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38745 | r=`${PWD_COMMAND}`; export r; \ | |
38746 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38747 | $(NORMAL_TARGET_EXPORTS) \ | |
38748 | echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \ | |
38749 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38750 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38751 | done; \ | |
38752 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38753 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38754 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38755 | "RANLIB=$${RANLIB}" \ | |
38756 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38757 | dvi) \ | |
38758 | || exit 1 | |
38759 | ||
38760 | @endif target-libgomp | |
38761 | ||
38762 | .PHONY: maybe-html-target-libgomp html-target-libgomp | |
38763 | maybe-html-target-libgomp: | |
38764 | @if target-libgomp | |
38765 | maybe-html-target-libgomp: html-target-libgomp | |
38766 | ||
38767 | html-target-libgomp: \ | |
38768 | configure-target-libgomp | |
38769 | @: $(MAKE); $(unstage) | |
38770 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38771 | r=`${PWD_COMMAND}`; export r; \ | |
38772 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38773 | $(NORMAL_TARGET_EXPORTS) \ | |
38774 | echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \ | |
38775 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38776 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38777 | done; \ | |
38778 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38779 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38780 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38781 | "RANLIB=$${RANLIB}" \ | |
38782 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38783 | html) \ | |
38784 | || exit 1 | |
38785 | ||
38786 | @endif target-libgomp | |
38787 | ||
38788 | .PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp | |
38789 | maybe-TAGS-target-libgomp: | |
38790 | @if target-libgomp | |
38791 | maybe-TAGS-target-libgomp: TAGS-target-libgomp | |
38792 | ||
38793 | TAGS-target-libgomp: \ | |
38794 | configure-target-libgomp | |
38795 | @: $(MAKE); $(unstage) | |
38796 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38797 | r=`${PWD_COMMAND}`; export r; \ | |
38798 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38799 | $(NORMAL_TARGET_EXPORTS) \ | |
38800 | echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \ | |
38801 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38802 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38803 | done; \ | |
38804 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38805 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38806 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38807 | "RANLIB=$${RANLIB}" \ | |
38808 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38809 | TAGS) \ | |
38810 | || exit 1 | |
38811 | ||
38812 | @endif target-libgomp | |
38813 | ||
38814 | .PHONY: maybe-install-info-target-libgomp install-info-target-libgomp | |
38815 | maybe-install-info-target-libgomp: | |
38816 | @if target-libgomp | |
38817 | maybe-install-info-target-libgomp: install-info-target-libgomp | |
38818 | ||
38819 | install-info-target-libgomp: \ | |
38820 | configure-target-libgomp \ | |
38821 | info-target-libgomp | |
38822 | @: $(MAKE); $(unstage) | |
38823 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38824 | r=`${PWD_COMMAND}`; export r; \ | |
38825 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38826 | $(NORMAL_TARGET_EXPORTS) \ | |
38827 | echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \ | |
38828 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38829 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38830 | done; \ | |
38831 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38832 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38833 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38834 | "RANLIB=$${RANLIB}" \ | |
38835 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38836 | install-info) \ | |
38837 | || exit 1 | |
38838 | ||
38839 | @endif target-libgomp | |
38840 | ||
108a6f8e CD |
38841 | .PHONY: maybe-install-html-target-libgomp install-html-target-libgomp |
38842 | maybe-install-html-target-libgomp: | |
38843 | @if target-libgomp | |
38844 | maybe-install-html-target-libgomp: install-html-target-libgomp | |
38845 | ||
38846 | install-html-target-libgomp: \ | |
38847 | configure-target-libgomp \ | |
38848 | html-target-libgomp | |
38849 | @: $(MAKE); $(unstage) | |
38850 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38851 | r=`${PWD_COMMAND}`; export r; \ | |
38852 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38853 | $(NORMAL_TARGET_EXPORTS) \ | |
38854 | echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \ | |
38855 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38856 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38857 | done; \ | |
38858 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38859 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38860 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38861 | "RANLIB=$${RANLIB}" \ | |
38862 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38863 | install-html) \ | |
38864 | || exit 1 | |
38865 | ||
38866 | @endif target-libgomp | |
38867 | ||
b3ded179 PB |
38868 | .PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp |
38869 | maybe-installcheck-target-libgomp: | |
38870 | @if target-libgomp | |
38871 | maybe-installcheck-target-libgomp: installcheck-target-libgomp | |
38872 | ||
38873 | installcheck-target-libgomp: \ | |
38874 | configure-target-libgomp | |
38875 | @: $(MAKE); $(unstage) | |
38876 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38877 | r=`${PWD_COMMAND}`; export r; \ | |
38878 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38879 | $(NORMAL_TARGET_EXPORTS) \ | |
38880 | echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \ | |
38881 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38882 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38883 | done; \ | |
38884 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38885 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38886 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38887 | "RANLIB=$${RANLIB}" \ | |
38888 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38889 | installcheck) \ | |
38890 | || exit 1 | |
38891 | ||
38892 | @endif target-libgomp | |
38893 | ||
38894 | .PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp | |
38895 | maybe-mostlyclean-target-libgomp: | |
38896 | @if target-libgomp | |
38897 | maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp | |
38898 | ||
38899 | mostlyclean-target-libgomp: | |
38900 | @: $(MAKE); $(unstage) | |
38901 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38902 | r=`${PWD_COMMAND}`; export r; \ | |
38903 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38904 | $(NORMAL_TARGET_EXPORTS) \ | |
38905 | echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \ | |
38906 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38907 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38908 | done; \ | |
38909 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38910 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38911 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38912 | "RANLIB=$${RANLIB}" \ | |
38913 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38914 | mostlyclean) \ | |
38915 | || exit 1 | |
38916 | ||
38917 | @endif target-libgomp | |
38918 | ||
38919 | .PHONY: maybe-clean-target-libgomp clean-target-libgomp | |
38920 | maybe-clean-target-libgomp: | |
38921 | @if target-libgomp | |
38922 | maybe-clean-target-libgomp: clean-target-libgomp | |
38923 | ||
38924 | clean-target-libgomp: | |
38925 | @: $(MAKE); $(unstage) | |
38926 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38927 | r=`${PWD_COMMAND}`; export r; \ | |
38928 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38929 | $(NORMAL_TARGET_EXPORTS) \ | |
38930 | echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \ | |
38931 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38932 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38933 | done; \ | |
38934 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38935 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38936 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38937 | "RANLIB=$${RANLIB}" \ | |
38938 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38939 | clean) \ | |
38940 | || exit 1 | |
38941 | ||
38942 | @endif target-libgomp | |
38943 | ||
38944 | .PHONY: maybe-distclean-target-libgomp distclean-target-libgomp | |
38945 | maybe-distclean-target-libgomp: | |
38946 | @if target-libgomp | |
38947 | maybe-distclean-target-libgomp: distclean-target-libgomp | |
38948 | ||
38949 | distclean-target-libgomp: | |
38950 | @: $(MAKE); $(unstage) | |
38951 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38952 | r=`${PWD_COMMAND}`; export r; \ | |
38953 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38954 | $(NORMAL_TARGET_EXPORTS) \ | |
38955 | echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \ | |
38956 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38957 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38958 | done; \ | |
38959 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38960 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38961 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38962 | "RANLIB=$${RANLIB}" \ | |
38963 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38964 | distclean) \ | |
38965 | || exit 1 | |
38966 | ||
38967 | @endif target-libgomp | |
38968 | ||
38969 | .PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp | |
38970 | maybe-maintainer-clean-target-libgomp: | |
38971 | @if target-libgomp | |
38972 | maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp | |
38973 | ||
38974 | maintainer-clean-target-libgomp: | |
38975 | @: $(MAKE); $(unstage) | |
38976 | @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \ | |
38977 | r=`${PWD_COMMAND}`; export r; \ | |
38978 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
38979 | $(NORMAL_TARGET_EXPORTS) \ | |
38980 | echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \ | |
38981 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
38982 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
38983 | done; \ | |
38984 | (cd $(TARGET_SUBDIR)/libgomp && \ | |
38985 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
38986 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
38987 | "RANLIB=$${RANLIB}" \ | |
38988 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
38989 | maintainer-clean) \ | |
38990 | || exit 1 | |
38991 | ||
38992 | @endif target-libgomp | |
38993 | ||
38994 | ||
38995 | ||
15723a45 NN |
38996 | # ---------- |
38997 | # GCC module | |
38998 | # ---------- | |
38999 | ||
319cab08 | 39000 | @if gcc-no-bootstrap |
b813574b PB |
39001 | # GCC has some more recursive targets, which trigger the old |
39002 | # (but still current, until the toplevel bootstrap project | |
39003 | # is finished) compiler bootstrapping rules. | |
252b5132 | 39004 | |
5b474aa8 DD |
39005 | GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap |
39006 | .PHONY: $(GCC_STRAP_TARGETS) | |
9e6ce191 | 39007 | $(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc |
b40e3958 L |
39008 | @r=`${PWD_COMMAND}`; export r; \ |
39009 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 39010 | $(HOST_EXPORTS) \ |
252b5132 | 39011 | echo "Bootstrapping the compiler"; \ |
e90269c8 | 39012 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
5cec67bf | 39013 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ |
b40e3958 L |
39014 | @r=`${PWD_COMMAND}`; export r; \ |
39015 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
252b5132 RH |
39016 | case "$@" in \ |
39017 | *bootstrap4-lean ) \ | |
bba45b8b NN |
39018 | msg="Comparing stage3 and stage4 of the compiler"; \ |
39019 | compare=compare3-lean ;; \ | |
39020 | *bootstrap4 ) \ | |
39021 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
39022 | compare=compare3 ;; \ | |
39023 | *-lean ) \ | |
39024 | msg="Comparing stage2 and stage3 of the compiler"; \ | |
39025 | compare=compare-lean ;; \ | |
39026 | * ) \ | |
39027 | msg="Comparing stage2 and stage3 of the compiler"; \ | |
39028 | compare=compare ;; \ | |
252b5132 | 39029 | esac; \ |
7ffa0b57 | 39030 | $(HOST_EXPORTS) \ |
252b5132 | 39031 | echo "$$msg"; \ |
5cec67bf | 39032 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare |
b40e3958 L |
39033 | @r=`${PWD_COMMAND}`; export r; \ |
39034 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
252b5132 | 39035 | echo "Building runtime libraries"; \ |
656fdd47 | 39036 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all |
252b5132 | 39037 | |
9e6ce191 | 39038 | profiledbootstrap: all-prebootstrap configure-gcc |
b40e3958 L |
39039 | @r=`${PWD_COMMAND}`; export r; \ |
39040 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 39041 | $(HOST_EXPORTS) \ |
e90269c8 | 39042 | $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
3e707e94 | 39043 | echo "Bootstrapping training compiler"; \ |
ec7e0995 | 39044 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build |
b40e3958 | 39045 | @r=`${PWD_COMMAND}`; export r; \ |
b40e3958 | 39046 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
7ffa0b57 | 39047 | $(HOST_EXPORTS) \ |
ec7e0995 NN |
39048 | echo "Building feedback based compiler"; \ |
39049 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build | |
3e707e94 PB |
39050 | @r=`${PWD_COMMAND}`; export r; \ |
39051 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
3e707e94 PB |
39052 | echo "Building runtime libraries"; \ |
39053 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all | |
ec7e0995 | 39054 | |
252b5132 | 39055 | .PHONY: cross |
72b2455a | 39056 | cross: all-build all-gas all-ld |
b40e3958 L |
39057 | @r=`${PWD_COMMAND}`; export r; \ |
39058 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 39059 | $(HOST_EXPORTS) \ |
252b5132 | 39060 | echo "Building the C and C++ compiler"; \ |
5cec67bf | 39061 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
b40e3958 L |
39062 | @r=`${PWD_COMMAND}`; export r; \ |
39063 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
252b5132 | 39064 | echo "Building runtime libraries"; \ |
656fdd47 | 39065 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all |
319cab08 | 39066 | @endif gcc-no-bootstrap |
252b5132 | 39067 | |
6bd3dfaa | 39068 | @if gcc |
7d695d07 JM |
39069 | .PHONY: check-gcc-c++ |
39070 | check-gcc-c++: | |
75205f78 | 39071 | @if [ -f ./gcc/Makefile ] ; then \ |
b40e3958 L |
39072 | r=`${PWD_COMMAND}`; export r; \ |
39073 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7ffa0b57 | 39074 | $(HOST_EXPORTS) \ |
1086bc09 | 39075 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ |
75205f78 DD |
39076 | else \ |
39077 | true; \ | |
7d695d07 JM |
39078 | fi |
39079 | ||
39080 | .PHONY: check-c++ | |
ede4fbe4 | 39081 | check-c++: check-target-libstdc++-v3 check-gcc-c++ |
252b5132 | 39082 | |
15723a45 NN |
39083 | # Install the gcc headers files, but not the fixed include files, |
39084 | # which Cygnus is not allowed to distribute. This rule is very | |
39085 | # dependent on the workings of the gcc Makefile.in. | |
39086 | .PHONY: gcc-no-fixedincludes | |
39087 | gcc-no-fixedincludes: | |
39088 | @if [ -f ./gcc/Makefile ]; then \ | |
39089 | rm -rf gcc/tmp-include; \ | |
39090 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
39091 | mkdir gcc/include; \ | |
39092 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
39093 | touch gcc/stmp-fixinc gcc/include/fixed; \ | |
39094 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
b40e3958 L |
39095 | r=`${PWD_COMMAND}`; export r; \ |
39096 | s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | |
7ffa0b57 | 39097 | $(HOST_EXPORTS) \ |
1086bc09 | 39098 | (cd ./gcc && \ |
15723a45 NN |
39099 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
39100 | rm -rf gcc/include; \ | |
39101 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
39102 | else true; fi | |
6bd3dfaa | 39103 | @endif gcc |
4fa63067 | 39104 | |
b813574b PB |
39105 | # --------------------- |
39106 | # GCC bootstrap support | |
39107 | # --------------------- | |
4fa63067 | 39108 | |
b813574b PB |
39109 | # We track the current stage (the one in 'gcc') in the stage_current file. |
39110 | # stage_last instead tracks the stage that was built last. These targets | |
39111 | # are dummy when toplevel bootstrap is not active. | |
4fa63067 | 39112 | |
f70224b5 | 39113 | # While making host and target tools, symlinks to the final stage must be |
0aed8855 PB |
39114 | # there, so $(unstage) should be run at various points. To avoid excessive |
39115 | # recursive invocations of make, we "inline" them using a variable. These | |
39116 | # must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)" | |
39117 | # to avoid warnings from the GNU Make job server. | |
f70224b5 PB |
39118 | |
39119 | unstage = : | |
39120 | stage = : | |
c52c6897 | 39121 | current_stage = "" |
f70224b5 | 39122 | |
b813574b | 39123 | @if gcc-bootstrap |
f70224b5 | 39124 | unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start |
f6d183c0 | 39125 | stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi |
c52c6897 | 39126 | current_stage = "`cat stage_current 2> /dev/null`" |
b813574b | 39127 | @endif gcc-bootstrap |
4fa63067 | 39128 | |
f70224b5 PB |
39129 | .PHONY: unstage stage |
39130 | unstage: | |
0aed8855 | 39131 | @: $(MAKE); $(unstage) |
b813574b | 39132 | stage: |
0aed8855 | 39133 | @: $(MAKE); $(stage) |
1d39f329 | 39134 | |
80911fe1 PB |
39135 | # Disable commands for lean bootstrap. |
39136 | LEAN = false | |
39137 | ||
dfdffa2c PB |
39138 | # We name the build directories for the various stages "stage1-gcc", |
39139 | # "stage2-gcc","stage3-gcc", etc. | |
39140 | ||
39141 | # Since the 'compare' process will fail (on debugging information) if any | |
39142 | # directory names are different, we need to link the gcc directory for | |
0aed8855 | 39143 | # the previous stage to a constant name ('prev-gcc'), and to make the name of |
dfdffa2c PB |
39144 | # the build directories constant as well. For the latter, we use naked names |
39145 | # like 'gcc', because the scripts in that directory assume it. We use | |
39146 | # mv on platforms where symlinks to directories do not work or are not | |
39147 | # reliable. | |
39148 | ||
1d39f329 NN |
39149 | # 'touch' doesn't work right on some platforms. |
39150 | STAMP = echo timestamp > | |
39151 | ||
39152 | # Only build the C compiler for stage1, because that is the only one that | |
39153 | # we can guarantee will build with the native compiler, and also it is the | |
39154 | # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), | |
39155 | # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them | |
39156 | # overrideable (for a bootstrap build stage1 also builds gcc.info). | |
39157 | ||
39158 | STAGE1_CFLAGS=@stage1_cflags@ | |
39159 | STAGE1_LANGUAGES=@stage1_languages@ | |
39160 | ||
dfdffa2c PB |
39161 | # We only want to compare .o files, so set this! |
39162 | objext = .o | |
39163 | ||
dfdffa2c | 39164 | # Flags to pass to stage2 and later makes. |
dfdffa2c | 39165 | POSTSTAGE1_FLAGS_TO_PASS = \ |
656fdd47 | 39166 | CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ |
064d0a7c | 39167 | STAGE_PREFIX=$$r/prev-gcc/ \ |
dfdffa2c | 39168 | CFLAGS="$(BOOT_CFLAGS)" \ |
c52c6897 | 39169 | LIBCFLAGS="$(BOOT_CFLAGS)" \ |
f6d183c0 | 39170 | LDFLAGS="$(BOOT_LDFLAGS)" \ |
b37df25a | 39171 | ADAC="\$$(CC)" |
dfdffa2c | 39172 | |
4fa63067 NN |
39173 | # For stage 1: |
39174 | # * We force-disable intermodule optimizations, even if | |
39175 | # --enable-intermodule was passed, since the installed compiler probably | |
39176 | # can't handle them. Luckily, autoconf always respects | |
39177 | # the last argument when conflicting --enable arguments are passed. | |
39178 | # * Likewise, we force-disable coverage flags, since the installed compiler | |
39179 | # probably has never heard of them. | |
39180 | # * We build only C (and possibly Ada). | |
dfdffa2c PB |
39181 | |
39182 | ||
319cab08 | 39183 | .PHONY: stage1-start stage1-end |
dfdffa2c | 39184 | |
656fdd47 | 39185 | stage1-start:: |
0aed8855 | 39186 | @: $(MAKE); $(stage); \ |
b813574b | 39187 | echo stage1 > stage_current ; \ |
b00612cc | 39188 | echo stage1 > stage_last; \ |
0aed8855 | 39189 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 39190 | @if bfd |
b00612cc PB |
39191 | @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \ |
39192 | mkdir stage1-bfd; \ | |
80911fe1 | 39193 | mv stage1-bfd bfd |
72b2455a PB |
39194 | @endif bfd |
39195 | @if opcodes | |
b00612cc PB |
39196 | @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \ |
39197 | mkdir stage1-opcodes; \ | |
80911fe1 | 39198 | mv stage1-opcodes opcodes |
72b2455a PB |
39199 | @endif opcodes |
39200 | @if binutils | |
b00612cc PB |
39201 | @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \ |
39202 | mkdir stage1-binutils; \ | |
80911fe1 | 39203 | mv stage1-binutils binutils |
72b2455a PB |
39204 | @endif binutils |
39205 | @if gas | |
b00612cc PB |
39206 | @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \ |
39207 | mkdir stage1-gas; \ | |
80911fe1 | 39208 | mv stage1-gas gas |
72b2455a PB |
39209 | @endif gas |
39210 | @if gcc | |
b00612cc PB |
39211 | @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \ |
39212 | mkdir stage1-gcc; \ | |
80911fe1 | 39213 | mv stage1-gcc gcc |
72b2455a PB |
39214 | @endif gcc |
39215 | @if intl | |
b00612cc PB |
39216 | @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \ |
39217 | mkdir stage1-intl; \ | |
80911fe1 | 39218 | mv stage1-intl intl |
72b2455a PB |
39219 | @endif intl |
39220 | @if ld | |
b00612cc PB |
39221 | @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \ |
39222 | mkdir stage1-ld; \ | |
80911fe1 | 39223 | mv stage1-ld ld |
72b2455a PB |
39224 | @endif ld |
39225 | @if libcpp | |
b00612cc PB |
39226 | @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \ |
39227 | mkdir stage1-libcpp; \ | |
80911fe1 | 39228 | mv stage1-libcpp libcpp |
72b2455a | 39229 | @endif libcpp |
be01d343 PB |
39230 | @if libdecnumber |
39231 | @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \ | |
39232 | mkdir stage1-libdecnumber; \ | |
80911fe1 | 39233 | mv stage1-libdecnumber libdecnumber |
be01d343 | 39234 | @endif libdecnumber |
72b2455a | 39235 | @if libiberty |
b00612cc PB |
39236 | @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \ |
39237 | mkdir stage1-libiberty; \ | |
80911fe1 | 39238 | mv stage1-libiberty libiberty |
72b2455a PB |
39239 | @endif libiberty |
39240 | @if zlib | |
b00612cc PB |
39241 | @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \ |
39242 | mkdir stage1-zlib; \ | |
80911fe1 | 39243 | mv stage1-zlib zlib |
72b2455a | 39244 | @endif zlib |
0aed8855 PB |
39245 | @[ -d stage1-$(TARGET_SUBDIR) ] || \ |
39246 | mkdir stage1-$(TARGET_SUBDIR); \ | |
80911fe1 | 39247 | mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR) |
dfdffa2c | 39248 | |
80911fe1 | 39249 | stage1-end:: |
72b2455a | 39250 | @if bfd |
80911fe1 PB |
39251 | @if test -d $(HOST_SUBDIR)/bfd ; then \ |
39252 | cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \ | |
0aed8855 | 39253 | fi |
72b2455a PB |
39254 | @endif bfd |
39255 | @if opcodes | |
80911fe1 PB |
39256 | @if test -d $(HOST_SUBDIR)/opcodes ; then \ |
39257 | cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \ | |
0aed8855 | 39258 | fi |
72b2455a PB |
39259 | @endif opcodes |
39260 | @if binutils | |
80911fe1 PB |
39261 | @if test -d $(HOST_SUBDIR)/binutils ; then \ |
39262 | cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \ | |
0aed8855 | 39263 | fi |
72b2455a PB |
39264 | @endif binutils |
39265 | @if gas | |
80911fe1 PB |
39266 | @if test -d $(HOST_SUBDIR)/gas ; then \ |
39267 | cd $(HOST_SUBDIR); mv gas stage1-gas ; \ | |
0aed8855 | 39268 | fi |
72b2455a PB |
39269 | @endif gas |
39270 | @if gcc | |
80911fe1 PB |
39271 | @if test -d $(HOST_SUBDIR)/gcc ; then \ |
39272 | cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \ | |
0aed8855 | 39273 | fi |
72b2455a PB |
39274 | @endif gcc |
39275 | @if intl | |
80911fe1 PB |
39276 | @if test -d $(HOST_SUBDIR)/intl ; then \ |
39277 | cd $(HOST_SUBDIR); mv intl stage1-intl ; \ | |
0aed8855 | 39278 | fi |
72b2455a PB |
39279 | @endif intl |
39280 | @if ld | |
80911fe1 PB |
39281 | @if test -d $(HOST_SUBDIR)/ld ; then \ |
39282 | cd $(HOST_SUBDIR); mv ld stage1-ld ; \ | |
0aed8855 | 39283 | fi |
72b2455a PB |
39284 | @endif ld |
39285 | @if libcpp | |
80911fe1 PB |
39286 | @if test -d $(HOST_SUBDIR)/libcpp ; then \ |
39287 | cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \ | |
0aed8855 | 39288 | fi |
72b2455a | 39289 | @endif libcpp |
be01d343 | 39290 | @if libdecnumber |
80911fe1 PB |
39291 | @if test -d $(HOST_SUBDIR)/libdecnumber ; then \ |
39292 | cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \ | |
0aed8855 | 39293 | fi |
be01d343 | 39294 | @endif libdecnumber |
72b2455a | 39295 | @if libiberty |
80911fe1 PB |
39296 | @if test -d $(HOST_SUBDIR)/libiberty ; then \ |
39297 | cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \ | |
0aed8855 | 39298 | fi |
72b2455a PB |
39299 | @endif libiberty |
39300 | @if zlib | |
80911fe1 PB |
39301 | @if test -d $(HOST_SUBDIR)/zlib ; then \ |
39302 | cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \ | |
0aed8855 | 39303 | fi |
72b2455a | 39304 | @endif zlib |
0aed8855 | 39305 | @if test -d $(TARGET_SUBDIR) ; then \ |
80911fe1 | 39306 | mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \ |
0aed8855 | 39307 | fi |
80911fe1 | 39308 | rm -f stage_current |
dfdffa2c | 39309 | |
0aed8855 PB |
39310 | # Bubble a bugfix through all the stages up to stage 1. They are |
39311 | # remade, but not reconfigured. The next stage (if any) will not be | |
39312 | # reconfigured as well. | |
319cab08 | 39313 | .PHONY: stage1-bubble |
656fdd47 | 39314 | stage1-bubble:: |
e360f423 PB |
39315 | @r=`${PWD_COMMAND}`; export r; \ |
39316 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39317 | if test -f stage1-lean ; then \ | |
9cb3fa6f PB |
39318 | echo Skipping rebuild of stage1 ; \ |
39319 | else \ | |
f70224b5 PB |
39320 | $(MAKE) stage1-start; \ |
39321 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \ | |
9cb3fa6f | 39322 | fi |
72b2455a | 39323 | |
0df3d27f | 39324 | .PHONY: all-stage1 clean-stage1 |
0df3d27f | 39325 | do-clean: clean-stage1 |
0df3d27f | 39326 | |
72b2455a PB |
39327 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
39328 | # only possibility, but now it conflicts with no-bootstrap rules | |
39329 | @if gcc-bootstrap | |
39330 | ||
39331 | ||
39332 | ||
39333 | ||
0df3d27f | 39334 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 39335 | |
0df3d27f | 39336 | .PHONY: distclean-stage1 |
72b2455a | 39337 | distclean-stage1:: |
0aed8855 | 39338 | @: $(MAKE); $(stage) |
9cb3fa6f | 39339 | rm -rf stage1-* |
72b2455a PB |
39340 | |
39341 | ||
39342 | @endif gcc-bootstrap | |
39343 | ||
39344 | ||
39345 | .PHONY: stage2-start stage2-end | |
39346 | ||
39347 | stage2-start:: | |
0aed8855 | 39348 | @: $(MAKE); $(stage); \ |
72b2455a | 39349 | echo stage2 > stage_current ; \ |
b00612cc | 39350 | echo stage2 > stage_last; \ |
0aed8855 | 39351 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 39352 | @if bfd |
b00612cc PB |
39353 | @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \ |
39354 | mkdir stage2-bfd; \ | |
80911fe1 PB |
39355 | mv stage2-bfd bfd ; \ |
39356 | mv stage1-bfd prev-bfd || test -f stage1-lean | |
72b2455a PB |
39357 | @endif bfd |
39358 | @if opcodes | |
b00612cc PB |
39359 | @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \ |
39360 | mkdir stage2-opcodes; \ | |
80911fe1 PB |
39361 | mv stage2-opcodes opcodes ; \ |
39362 | mv stage1-opcodes prev-opcodes || test -f stage1-lean | |
72b2455a PB |
39363 | @endif opcodes |
39364 | @if binutils | |
b00612cc PB |
39365 | @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \ |
39366 | mkdir stage2-binutils; \ | |
80911fe1 PB |
39367 | mv stage2-binutils binutils ; \ |
39368 | mv stage1-binutils prev-binutils || test -f stage1-lean | |
72b2455a PB |
39369 | @endif binutils |
39370 | @if gas | |
b00612cc PB |
39371 | @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \ |
39372 | mkdir stage2-gas; \ | |
80911fe1 PB |
39373 | mv stage2-gas gas ; \ |
39374 | mv stage1-gas prev-gas || test -f stage1-lean | |
72b2455a PB |
39375 | @endif gas |
39376 | @if gcc | |
b00612cc PB |
39377 | @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \ |
39378 | mkdir stage2-gcc; \ | |
80911fe1 PB |
39379 | mv stage2-gcc gcc ; \ |
39380 | mv stage1-gcc prev-gcc || test -f stage1-lean | |
72b2455a PB |
39381 | @endif gcc |
39382 | @if intl | |
b00612cc PB |
39383 | @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \ |
39384 | mkdir stage2-intl; \ | |
80911fe1 PB |
39385 | mv stage2-intl intl ; \ |
39386 | mv stage1-intl prev-intl || test -f stage1-lean | |
72b2455a PB |
39387 | @endif intl |
39388 | @if ld | |
b00612cc PB |
39389 | @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \ |
39390 | mkdir stage2-ld; \ | |
80911fe1 PB |
39391 | mv stage2-ld ld ; \ |
39392 | mv stage1-ld prev-ld || test -f stage1-lean | |
72b2455a PB |
39393 | @endif ld |
39394 | @if libcpp | |
b00612cc PB |
39395 | @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \ |
39396 | mkdir stage2-libcpp; \ | |
80911fe1 PB |
39397 | mv stage2-libcpp libcpp ; \ |
39398 | mv stage1-libcpp prev-libcpp || test -f stage1-lean | |
72b2455a | 39399 | @endif libcpp |
be01d343 PB |
39400 | @if libdecnumber |
39401 | @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \ | |
39402 | mkdir stage2-libdecnumber; \ | |
80911fe1 PB |
39403 | mv stage2-libdecnumber libdecnumber ; \ |
39404 | mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean | |
be01d343 | 39405 | @endif libdecnumber |
72b2455a | 39406 | @if libiberty |
b00612cc PB |
39407 | @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \ |
39408 | mkdir stage2-libiberty; \ | |
80911fe1 PB |
39409 | mv stage2-libiberty libiberty ; \ |
39410 | mv stage1-libiberty prev-libiberty || test -f stage1-lean | |
72b2455a PB |
39411 | @endif libiberty |
39412 | @if zlib | |
b00612cc PB |
39413 | @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \ |
39414 | mkdir stage2-zlib; \ | |
80911fe1 PB |
39415 | mv stage2-zlib zlib ; \ |
39416 | mv stage1-zlib prev-zlib || test -f stage1-lean | |
72b2455a | 39417 | @endif zlib |
0aed8855 PB |
39418 | @[ -d stage2-$(TARGET_SUBDIR) ] || \ |
39419 | mkdir stage2-$(TARGET_SUBDIR); \ | |
80911fe1 PB |
39420 | mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \ |
39421 | mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean | |
72b2455a | 39422 | |
80911fe1 | 39423 | stage2-end:: |
72b2455a | 39424 | @if bfd |
80911fe1 PB |
39425 | @if test -d $(HOST_SUBDIR)/bfd ; then \ |
39426 | cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \ | |
39427 | mv prev-bfd stage1-bfd ; : ; \ | |
0aed8855 | 39428 | fi |
72b2455a PB |
39429 | @endif bfd |
39430 | @if opcodes | |
80911fe1 PB |
39431 | @if test -d $(HOST_SUBDIR)/opcodes ; then \ |
39432 | cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \ | |
39433 | mv prev-opcodes stage1-opcodes ; : ; \ | |
0aed8855 | 39434 | fi |
72b2455a PB |
39435 | @endif opcodes |
39436 | @if binutils | |
80911fe1 PB |
39437 | @if test -d $(HOST_SUBDIR)/binutils ; then \ |
39438 | cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \ | |
39439 | mv prev-binutils stage1-binutils ; : ; \ | |
0aed8855 | 39440 | fi |
72b2455a PB |
39441 | @endif binutils |
39442 | @if gas | |
80911fe1 PB |
39443 | @if test -d $(HOST_SUBDIR)/gas ; then \ |
39444 | cd $(HOST_SUBDIR); mv gas stage2-gas ; \ | |
39445 | mv prev-gas stage1-gas ; : ; \ | |
0aed8855 | 39446 | fi |
72b2455a PB |
39447 | @endif gas |
39448 | @if gcc | |
80911fe1 PB |
39449 | @if test -d $(HOST_SUBDIR)/gcc ; then \ |
39450 | cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \ | |
39451 | mv prev-gcc stage1-gcc ; : ; \ | |
0aed8855 | 39452 | fi |
72b2455a PB |
39453 | @endif gcc |
39454 | @if intl | |
80911fe1 PB |
39455 | @if test -d $(HOST_SUBDIR)/intl ; then \ |
39456 | cd $(HOST_SUBDIR); mv intl stage2-intl ; \ | |
39457 | mv prev-intl stage1-intl ; : ; \ | |
0aed8855 | 39458 | fi |
72b2455a PB |
39459 | @endif intl |
39460 | @if ld | |
80911fe1 PB |
39461 | @if test -d $(HOST_SUBDIR)/ld ; then \ |
39462 | cd $(HOST_SUBDIR); mv ld stage2-ld ; \ | |
39463 | mv prev-ld stage1-ld ; : ; \ | |
0aed8855 | 39464 | fi |
72b2455a PB |
39465 | @endif ld |
39466 | @if libcpp | |
80911fe1 PB |
39467 | @if test -d $(HOST_SUBDIR)/libcpp ; then \ |
39468 | cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \ | |
39469 | mv prev-libcpp stage1-libcpp ; : ; \ | |
0aed8855 | 39470 | fi |
72b2455a | 39471 | @endif libcpp |
be01d343 | 39472 | @if libdecnumber |
80911fe1 PB |
39473 | @if test -d $(HOST_SUBDIR)/libdecnumber ; then \ |
39474 | cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \ | |
39475 | mv prev-libdecnumber stage1-libdecnumber ; : ; \ | |
0aed8855 | 39476 | fi |
be01d343 | 39477 | @endif libdecnumber |
72b2455a | 39478 | @if libiberty |
80911fe1 PB |
39479 | @if test -d $(HOST_SUBDIR)/libiberty ; then \ |
39480 | cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \ | |
39481 | mv prev-libiberty stage1-libiberty ; : ; \ | |
0aed8855 | 39482 | fi |
72b2455a PB |
39483 | @endif libiberty |
39484 | @if zlib | |
80911fe1 PB |
39485 | @if test -d $(HOST_SUBDIR)/zlib ; then \ |
39486 | cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \ | |
39487 | mv prev-zlib stage1-zlib ; : ; \ | |
0aed8855 | 39488 | fi |
72b2455a | 39489 | @endif zlib |
0aed8855 | 39490 | @if test -d $(TARGET_SUBDIR) ; then \ |
80911fe1 PB |
39491 | mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \ |
39492 | mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \ | |
0aed8855 | 39493 | fi |
80911fe1 | 39494 | rm -f stage_current |
72b2455a | 39495 | |
0aed8855 PB |
39496 | # Bubble a bugfix through all the stages up to stage 2. They are |
39497 | # remade, but not reconfigured. The next stage (if any) will not be | |
39498 | # reconfigured as well. | |
72b2455a PB |
39499 | .PHONY: stage2-bubble |
39500 | stage2-bubble:: stage1-bubble | |
e360f423 PB |
39501 | @r=`${PWD_COMMAND}`; export r; \ |
39502 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39503 | if test -f stage2-lean || test -f stage1-lean ; then \ | |
9cb3fa6f PB |
39504 | echo Skipping rebuild of stage2 ; \ |
39505 | else \ | |
f70224b5 PB |
39506 | $(MAKE) stage2-start; \ |
39507 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \ | |
9cb3fa6f | 39508 | fi |
72b2455a | 39509 | |
0df3d27f | 39510 | .PHONY: all-stage2 clean-stage2 |
0df3d27f | 39511 | do-clean: clean-stage2 |
0df3d27f | 39512 | |
72b2455a PB |
39513 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
39514 | # only possibility, but now it conflicts with no-bootstrap rules | |
39515 | @if gcc-bootstrap | |
39516 | ||
39517 | ||
39518 | ||
80911fe1 | 39519 | .PHONY: bootstrap2 bootstrap2-lean |
be01d343 PB |
39520 | bootstrap2: |
39521 | echo stage2 > stage_final | |
39522 | @r=`${PWD_COMMAND}`; export r; \ | |
39523 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39524 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble | |
0aed8855 | 39525 | @: $(MAKE); $(unstage) |
be01d343 PB |
39526 | @r=`${PWD_COMMAND}`; export r; \ |
39527 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39528 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
72b2455a | 39529 | |
80911fe1 PB |
39530 | bootstrap2-lean: |
39531 | echo stage2 > stage_final | |
39532 | @r=`${PWD_COMMAND}`; export r; \ | |
39533 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39534 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble | |
39535 | @: $(MAKE); $(unstage) | |
39536 | @r=`${PWD_COMMAND}`; export r; \ | |
39537 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39538 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
39539 | ||
72b2455a | 39540 | |
0df3d27f | 39541 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 39542 | distclean-stage1:: distclean-stage2 |
0df3d27f | 39543 | .PHONY: distclean-stage2 |
72b2455a | 39544 | distclean-stage2:: |
0aed8855 | 39545 | @: $(MAKE); $(stage) |
9cb3fa6f | 39546 | rm -rf stage2-* |
72b2455a PB |
39547 | |
39548 | ||
39549 | @endif gcc-bootstrap | |
39550 | ||
39551 | ||
39552 | .PHONY: stage3-start stage3-end | |
39553 | ||
39554 | stage3-start:: | |
0aed8855 | 39555 | @: $(MAKE); $(stage); \ |
72b2455a | 39556 | echo stage3 > stage_current ; \ |
b00612cc | 39557 | echo stage3 > stage_last; \ |
0aed8855 | 39558 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 39559 | @if bfd |
b00612cc PB |
39560 | @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \ |
39561 | mkdir stage3-bfd; \ | |
80911fe1 PB |
39562 | mv stage3-bfd bfd ; \ |
39563 | mv stage2-bfd prev-bfd || test -f stage2-lean | |
72b2455a PB |
39564 | @endif bfd |
39565 | @if opcodes | |
b00612cc PB |
39566 | @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \ |
39567 | mkdir stage3-opcodes; \ | |
80911fe1 PB |
39568 | mv stage3-opcodes opcodes ; \ |
39569 | mv stage2-opcodes prev-opcodes || test -f stage2-lean | |
72b2455a PB |
39570 | @endif opcodes |
39571 | @if binutils | |
b00612cc PB |
39572 | @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \ |
39573 | mkdir stage3-binutils; \ | |
80911fe1 PB |
39574 | mv stage3-binutils binutils ; \ |
39575 | mv stage2-binutils prev-binutils || test -f stage2-lean | |
72b2455a PB |
39576 | @endif binutils |
39577 | @if gas | |
b00612cc PB |
39578 | @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \ |
39579 | mkdir stage3-gas; \ | |
80911fe1 PB |
39580 | mv stage3-gas gas ; \ |
39581 | mv stage2-gas prev-gas || test -f stage2-lean | |
72b2455a PB |
39582 | @endif gas |
39583 | @if gcc | |
b00612cc PB |
39584 | @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \ |
39585 | mkdir stage3-gcc; \ | |
80911fe1 PB |
39586 | mv stage3-gcc gcc ; \ |
39587 | mv stage2-gcc prev-gcc || test -f stage2-lean | |
72b2455a PB |
39588 | @endif gcc |
39589 | @if intl | |
b00612cc PB |
39590 | @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \ |
39591 | mkdir stage3-intl; \ | |
80911fe1 PB |
39592 | mv stage3-intl intl ; \ |
39593 | mv stage2-intl prev-intl || test -f stage2-lean | |
72b2455a PB |
39594 | @endif intl |
39595 | @if ld | |
b00612cc PB |
39596 | @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \ |
39597 | mkdir stage3-ld; \ | |
80911fe1 PB |
39598 | mv stage3-ld ld ; \ |
39599 | mv stage2-ld prev-ld || test -f stage2-lean | |
72b2455a PB |
39600 | @endif ld |
39601 | @if libcpp | |
b00612cc PB |
39602 | @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \ |
39603 | mkdir stage3-libcpp; \ | |
80911fe1 PB |
39604 | mv stage3-libcpp libcpp ; \ |
39605 | mv stage2-libcpp prev-libcpp || test -f stage2-lean | |
72b2455a | 39606 | @endif libcpp |
be01d343 PB |
39607 | @if libdecnumber |
39608 | @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \ | |
39609 | mkdir stage3-libdecnumber; \ | |
80911fe1 PB |
39610 | mv stage3-libdecnumber libdecnumber ; \ |
39611 | mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean | |
be01d343 | 39612 | @endif libdecnumber |
72b2455a | 39613 | @if libiberty |
b00612cc PB |
39614 | @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \ |
39615 | mkdir stage3-libiberty; \ | |
80911fe1 PB |
39616 | mv stage3-libiberty libiberty ; \ |
39617 | mv stage2-libiberty prev-libiberty || test -f stage2-lean | |
72b2455a PB |
39618 | @endif libiberty |
39619 | @if zlib | |
b00612cc PB |
39620 | @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \ |
39621 | mkdir stage3-zlib; \ | |
80911fe1 PB |
39622 | mv stage3-zlib zlib ; \ |
39623 | mv stage2-zlib prev-zlib || test -f stage2-lean | |
72b2455a | 39624 | @endif zlib |
0aed8855 PB |
39625 | @[ -d stage3-$(TARGET_SUBDIR) ] || \ |
39626 | mkdir stage3-$(TARGET_SUBDIR); \ | |
80911fe1 PB |
39627 | mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \ |
39628 | mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean | |
72b2455a | 39629 | |
80911fe1 | 39630 | stage3-end:: |
72b2455a | 39631 | @if bfd |
80911fe1 PB |
39632 | @if test -d $(HOST_SUBDIR)/bfd ; then \ |
39633 | cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \ | |
39634 | mv prev-bfd stage2-bfd ; : ; \ | |
0aed8855 | 39635 | fi |
72b2455a PB |
39636 | @endif bfd |
39637 | @if opcodes | |
80911fe1 PB |
39638 | @if test -d $(HOST_SUBDIR)/opcodes ; then \ |
39639 | cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \ | |
39640 | mv prev-opcodes stage2-opcodes ; : ; \ | |
0aed8855 | 39641 | fi |
72b2455a PB |
39642 | @endif opcodes |
39643 | @if binutils | |
80911fe1 PB |
39644 | @if test -d $(HOST_SUBDIR)/binutils ; then \ |
39645 | cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \ | |
39646 | mv prev-binutils stage2-binutils ; : ; \ | |
0aed8855 | 39647 | fi |
72b2455a PB |
39648 | @endif binutils |
39649 | @if gas | |
80911fe1 PB |
39650 | @if test -d $(HOST_SUBDIR)/gas ; then \ |
39651 | cd $(HOST_SUBDIR); mv gas stage3-gas ; \ | |
39652 | mv prev-gas stage2-gas ; : ; \ | |
0aed8855 | 39653 | fi |
72b2455a PB |
39654 | @endif gas |
39655 | @if gcc | |
80911fe1 PB |
39656 | @if test -d $(HOST_SUBDIR)/gcc ; then \ |
39657 | cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \ | |
39658 | mv prev-gcc stage2-gcc ; : ; \ | |
0aed8855 | 39659 | fi |
72b2455a PB |
39660 | @endif gcc |
39661 | @if intl | |
80911fe1 PB |
39662 | @if test -d $(HOST_SUBDIR)/intl ; then \ |
39663 | cd $(HOST_SUBDIR); mv intl stage3-intl ; \ | |
39664 | mv prev-intl stage2-intl ; : ; \ | |
0aed8855 | 39665 | fi |
72b2455a PB |
39666 | @endif intl |
39667 | @if ld | |
80911fe1 PB |
39668 | @if test -d $(HOST_SUBDIR)/ld ; then \ |
39669 | cd $(HOST_SUBDIR); mv ld stage3-ld ; \ | |
39670 | mv prev-ld stage2-ld ; : ; \ | |
0aed8855 | 39671 | fi |
72b2455a PB |
39672 | @endif ld |
39673 | @if libcpp | |
80911fe1 PB |
39674 | @if test -d $(HOST_SUBDIR)/libcpp ; then \ |
39675 | cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \ | |
39676 | mv prev-libcpp stage2-libcpp ; : ; \ | |
0aed8855 | 39677 | fi |
72b2455a | 39678 | @endif libcpp |
be01d343 | 39679 | @if libdecnumber |
80911fe1 PB |
39680 | @if test -d $(HOST_SUBDIR)/libdecnumber ; then \ |
39681 | cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \ | |
39682 | mv prev-libdecnumber stage2-libdecnumber ; : ; \ | |
0aed8855 | 39683 | fi |
be01d343 | 39684 | @endif libdecnumber |
72b2455a | 39685 | @if libiberty |
80911fe1 PB |
39686 | @if test -d $(HOST_SUBDIR)/libiberty ; then \ |
39687 | cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \ | |
39688 | mv prev-libiberty stage2-libiberty ; : ; \ | |
0aed8855 | 39689 | fi |
72b2455a PB |
39690 | @endif libiberty |
39691 | @if zlib | |
80911fe1 PB |
39692 | @if test -d $(HOST_SUBDIR)/zlib ; then \ |
39693 | cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \ | |
39694 | mv prev-zlib stage2-zlib ; : ; \ | |
0aed8855 | 39695 | fi |
72b2455a | 39696 | @endif zlib |
0aed8855 | 39697 | @if test -d $(TARGET_SUBDIR) ; then \ |
80911fe1 PB |
39698 | mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \ |
39699 | mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \ | |
0aed8855 | 39700 | fi |
80911fe1 | 39701 | rm -f stage_current |
72b2455a | 39702 | |
0aed8855 PB |
39703 | # Bubble a bugfix through all the stages up to stage 3. They are |
39704 | # remade, but not reconfigured. The next stage (if any) will not be | |
39705 | # reconfigured as well. | |
72b2455a PB |
39706 | .PHONY: stage3-bubble |
39707 | stage3-bubble:: stage2-bubble | |
e360f423 PB |
39708 | @r=`${PWD_COMMAND}`; export r; \ |
39709 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39710 | if test -f stage3-lean || test -f stage2-lean ; then \ | |
9cb3fa6f PB |
39711 | echo Skipping rebuild of stage3 ; \ |
39712 | else \ | |
f70224b5 | 39713 | $(MAKE) stage3-start; \ |
80911fe1 PB |
39714 | if $(LEAN); then \ |
39715 | rm -rf stage1-* ; \ | |
39716 | $(STAMP) stage1-lean ; \ | |
39717 | fi; \ | |
f70224b5 | 39718 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \ |
9cb3fa6f | 39719 | fi |
f6d183c0 | 39720 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare |
72b2455a | 39721 | |
0df3d27f | 39722 | .PHONY: all-stage3 clean-stage3 |
0df3d27f | 39723 | do-clean: clean-stage3 |
0df3d27f | 39724 | |
d545f33b PB |
39725 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
39726 | # only possibility, but now it conflicts with no-bootstrap rules | |
39727 | @if gcc-bootstrap | |
72b2455a | 39728 | |
d545f33b | 39729 | compare: |
e360f423 PB |
39730 | @r=`${PWD_COMMAND}`; export r; \ |
39731 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39732 | if test -f stage2-lean; then \ | |
d545f33b PB |
39733 | echo Cannot compare object files as stage 2 was deleted. ; \ |
39734 | exit 0 ; \ | |
39735 | fi; \ | |
0aed8855 | 39736 | : $(MAKE); $(stage); \ |
d545f33b | 39737 | rm -f .bad_compare ; \ |
c52c6897 | 39738 | echo Comparing stages 2 and 3 ; \ |
d545f33b PB |
39739 | cd stage3-gcc; \ |
39740 | files=`find . -name "*$(objext)" -print` ; \ | |
39741 | cd .. ; \ | |
39742 | for file in $${files} ; do \ | |
39743 | f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \ | |
39744 | @do_compare@ > /dev/null 2>&1; \ | |
f70224b5 PB |
39745 | if test $$? -eq 1; then \ |
39746 | case $$file in \ | |
39747 | ./cc*-checksum$(objext) | ./libgcc/* ) \ | |
39748 | echo warning: $$file differs ;; \ | |
39749 | *) \ | |
39750 | echo $$file differs >> .bad_compare ;; \ | |
39751 | esac ; \ | |
39752 | fi ; \ | |
d545f33b PB |
39753 | done ; \ |
39754 | if [ -f .bad_compare ]; then \ | |
39755 | echo "Bootstrap comparison failure!"; \ | |
39756 | cat .bad_compare; \ | |
39757 | exit 1; \ | |
39758 | else \ | |
c52c6897 | 39759 | echo Comparison successful.; \ |
d545f33b PB |
39760 | fi ; \ |
39761 | $(STAMP) compare | |
80911fe1 PB |
39762 | if $(LEAN); then \ |
39763 | rm -rf stage2-*; \ | |
39764 | $(STAMP) stage2-lean; \ | |
39765 | fi | |
9cb3fa6f | 39766 | |
72b2455a | 39767 | |
72b2455a | 39768 | |
80911fe1 | 39769 | .PHONY: bootstrap bootstrap-lean |
be01d343 PB |
39770 | bootstrap: |
39771 | echo stage3 > stage_final | |
39772 | @r=`${PWD_COMMAND}`; export r; \ | |
39773 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39774 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble | |
0aed8855 | 39775 | @: $(MAKE); $(unstage) |
be01d343 PB |
39776 | @r=`${PWD_COMMAND}`; export r; \ |
39777 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39778 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
0df3d27f | 39779 | |
80911fe1 PB |
39780 | bootstrap-lean: |
39781 | echo stage3 > stage_final | |
39782 | @r=`${PWD_COMMAND}`; export r; \ | |
39783 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39784 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble | |
39785 | @: $(MAKE); $(unstage) | |
39786 | @r=`${PWD_COMMAND}`; export r; \ | |
39787 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39788 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
39789 | ||
72b2455a | 39790 | |
d545f33b PB |
39791 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
39792 | distclean-stage2:: distclean-stage3 | |
39793 | .PHONY: distclean-stage3 | |
39794 | distclean-stage3:: | |
0aed8855 | 39795 | @: $(MAKE); $(stage) |
d545f33b | 39796 | rm -rf stage3-* compare |
0df3d27f | 39797 | |
9cb3fa6f | 39798 | |
d545f33b PB |
39799 | .PHONY: cleanstrap |
39800 | cleanstrap: distclean bootstrap | |
72b2455a PB |
39801 | |
39802 | @endif gcc-bootstrap | |
39803 | ||
39804 | ||
39805 | .PHONY: stage4-start stage4-end | |
39806 | ||
39807 | stage4-start:: | |
0aed8855 | 39808 | @: $(MAKE); $(stage); \ |
72b2455a | 39809 | echo stage4 > stage_current ; \ |
b00612cc | 39810 | echo stage4 > stage_last; \ |
0aed8855 | 39811 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 39812 | @if bfd |
b00612cc PB |
39813 | @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \ |
39814 | mkdir stage4-bfd; \ | |
80911fe1 PB |
39815 | mv stage4-bfd bfd ; \ |
39816 | mv stage3-bfd prev-bfd || test -f stage3-lean | |
72b2455a PB |
39817 | @endif bfd |
39818 | @if opcodes | |
b00612cc PB |
39819 | @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \ |
39820 | mkdir stage4-opcodes; \ | |
80911fe1 PB |
39821 | mv stage4-opcodes opcodes ; \ |
39822 | mv stage3-opcodes prev-opcodes || test -f stage3-lean | |
72b2455a PB |
39823 | @endif opcodes |
39824 | @if binutils | |
b00612cc PB |
39825 | @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \ |
39826 | mkdir stage4-binutils; \ | |
80911fe1 PB |
39827 | mv stage4-binutils binutils ; \ |
39828 | mv stage3-binutils prev-binutils || test -f stage3-lean | |
72b2455a PB |
39829 | @endif binutils |
39830 | @if gas | |
b00612cc PB |
39831 | @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \ |
39832 | mkdir stage4-gas; \ | |
80911fe1 PB |
39833 | mv stage4-gas gas ; \ |
39834 | mv stage3-gas prev-gas || test -f stage3-lean | |
72b2455a PB |
39835 | @endif gas |
39836 | @if gcc | |
b00612cc PB |
39837 | @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \ |
39838 | mkdir stage4-gcc; \ | |
80911fe1 PB |
39839 | mv stage4-gcc gcc ; \ |
39840 | mv stage3-gcc prev-gcc || test -f stage3-lean | |
72b2455a PB |
39841 | @endif gcc |
39842 | @if intl | |
b00612cc PB |
39843 | @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \ |
39844 | mkdir stage4-intl; \ | |
80911fe1 PB |
39845 | mv stage4-intl intl ; \ |
39846 | mv stage3-intl prev-intl || test -f stage3-lean | |
72b2455a PB |
39847 | @endif intl |
39848 | @if ld | |
b00612cc PB |
39849 | @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \ |
39850 | mkdir stage4-ld; \ | |
80911fe1 PB |
39851 | mv stage4-ld ld ; \ |
39852 | mv stage3-ld prev-ld || test -f stage3-lean | |
72b2455a PB |
39853 | @endif ld |
39854 | @if libcpp | |
b00612cc PB |
39855 | @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \ |
39856 | mkdir stage4-libcpp; \ | |
80911fe1 PB |
39857 | mv stage4-libcpp libcpp ; \ |
39858 | mv stage3-libcpp prev-libcpp || test -f stage3-lean | |
72b2455a | 39859 | @endif libcpp |
be01d343 PB |
39860 | @if libdecnumber |
39861 | @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \ | |
39862 | mkdir stage4-libdecnumber; \ | |
80911fe1 PB |
39863 | mv stage4-libdecnumber libdecnumber ; \ |
39864 | mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean | |
be01d343 | 39865 | @endif libdecnumber |
72b2455a | 39866 | @if libiberty |
b00612cc PB |
39867 | @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \ |
39868 | mkdir stage4-libiberty; \ | |
80911fe1 PB |
39869 | mv stage4-libiberty libiberty ; \ |
39870 | mv stage3-libiberty prev-libiberty || test -f stage3-lean | |
72b2455a PB |
39871 | @endif libiberty |
39872 | @if zlib | |
b00612cc PB |
39873 | @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \ |
39874 | mkdir stage4-zlib; \ | |
80911fe1 PB |
39875 | mv stage4-zlib zlib ; \ |
39876 | mv stage3-zlib prev-zlib || test -f stage3-lean | |
72b2455a | 39877 | @endif zlib |
0aed8855 PB |
39878 | @[ -d stage4-$(TARGET_SUBDIR) ] || \ |
39879 | mkdir stage4-$(TARGET_SUBDIR); \ | |
80911fe1 PB |
39880 | mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \ |
39881 | mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean | |
72b2455a | 39882 | |
80911fe1 | 39883 | stage4-end:: |
72b2455a | 39884 | @if bfd |
80911fe1 PB |
39885 | @if test -d $(HOST_SUBDIR)/bfd ; then \ |
39886 | cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \ | |
39887 | mv prev-bfd stage3-bfd ; : ; \ | |
0aed8855 | 39888 | fi |
72b2455a PB |
39889 | @endif bfd |
39890 | @if opcodes | |
80911fe1 PB |
39891 | @if test -d $(HOST_SUBDIR)/opcodes ; then \ |
39892 | cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \ | |
39893 | mv prev-opcodes stage3-opcodes ; : ; \ | |
0aed8855 | 39894 | fi |
72b2455a PB |
39895 | @endif opcodes |
39896 | @if binutils | |
80911fe1 PB |
39897 | @if test -d $(HOST_SUBDIR)/binutils ; then \ |
39898 | cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \ | |
39899 | mv prev-binutils stage3-binutils ; : ; \ | |
0aed8855 | 39900 | fi |
72b2455a PB |
39901 | @endif binutils |
39902 | @if gas | |
80911fe1 PB |
39903 | @if test -d $(HOST_SUBDIR)/gas ; then \ |
39904 | cd $(HOST_SUBDIR); mv gas stage4-gas ; \ | |
39905 | mv prev-gas stage3-gas ; : ; \ | |
0aed8855 | 39906 | fi |
72b2455a PB |
39907 | @endif gas |
39908 | @if gcc | |
80911fe1 PB |
39909 | @if test -d $(HOST_SUBDIR)/gcc ; then \ |
39910 | cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \ | |
39911 | mv prev-gcc stage3-gcc ; : ; \ | |
0aed8855 | 39912 | fi |
72b2455a PB |
39913 | @endif gcc |
39914 | @if intl | |
80911fe1 PB |
39915 | @if test -d $(HOST_SUBDIR)/intl ; then \ |
39916 | cd $(HOST_SUBDIR); mv intl stage4-intl ; \ | |
39917 | mv prev-intl stage3-intl ; : ; \ | |
0aed8855 | 39918 | fi |
72b2455a PB |
39919 | @endif intl |
39920 | @if ld | |
80911fe1 PB |
39921 | @if test -d $(HOST_SUBDIR)/ld ; then \ |
39922 | cd $(HOST_SUBDIR); mv ld stage4-ld ; \ | |
39923 | mv prev-ld stage3-ld ; : ; \ | |
0aed8855 | 39924 | fi |
72b2455a PB |
39925 | @endif ld |
39926 | @if libcpp | |
80911fe1 PB |
39927 | @if test -d $(HOST_SUBDIR)/libcpp ; then \ |
39928 | cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \ | |
39929 | mv prev-libcpp stage3-libcpp ; : ; \ | |
0aed8855 | 39930 | fi |
72b2455a | 39931 | @endif libcpp |
be01d343 | 39932 | @if libdecnumber |
80911fe1 PB |
39933 | @if test -d $(HOST_SUBDIR)/libdecnumber ; then \ |
39934 | cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \ | |
39935 | mv prev-libdecnumber stage3-libdecnumber ; : ; \ | |
0aed8855 | 39936 | fi |
be01d343 | 39937 | @endif libdecnumber |
72b2455a | 39938 | @if libiberty |
80911fe1 PB |
39939 | @if test -d $(HOST_SUBDIR)/libiberty ; then \ |
39940 | cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \ | |
39941 | mv prev-libiberty stage3-libiberty ; : ; \ | |
0aed8855 | 39942 | fi |
72b2455a PB |
39943 | @endif libiberty |
39944 | @if zlib | |
80911fe1 PB |
39945 | @if test -d $(HOST_SUBDIR)/zlib ; then \ |
39946 | cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \ | |
39947 | mv prev-zlib stage3-zlib ; : ; \ | |
0aed8855 | 39948 | fi |
72b2455a | 39949 | @endif zlib |
0aed8855 | 39950 | @if test -d $(TARGET_SUBDIR) ; then \ |
80911fe1 PB |
39951 | mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \ |
39952 | mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \ | |
0aed8855 | 39953 | fi |
80911fe1 | 39954 | rm -f stage_current |
72b2455a | 39955 | |
0aed8855 PB |
39956 | # Bubble a bugfix through all the stages up to stage 4. They are |
39957 | # remade, but not reconfigured. The next stage (if any) will not be | |
39958 | # reconfigured as well. | |
72b2455a PB |
39959 | .PHONY: stage4-bubble |
39960 | stage4-bubble:: stage3-bubble | |
e360f423 PB |
39961 | @r=`${PWD_COMMAND}`; export r; \ |
39962 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39963 | if test -f stage4-lean || test -f stage3-lean ; then \ | |
9cb3fa6f PB |
39964 | echo Skipping rebuild of stage4 ; \ |
39965 | else \ | |
f70224b5 | 39966 | $(MAKE) stage4-start; \ |
80911fe1 PB |
39967 | if $(LEAN); then \ |
39968 | rm -rf stage2-* ; \ | |
39969 | $(STAMP) stage2-lean ; \ | |
39970 | fi; \ | |
f70224b5 | 39971 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \ |
9cb3fa6f | 39972 | fi |
f6d183c0 | 39973 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3 |
72b2455a | 39974 | |
0df3d27f | 39975 | .PHONY: all-stage4 clean-stage4 |
0df3d27f | 39976 | do-clean: clean-stage4 |
0df3d27f | 39977 | |
d545f33b PB |
39978 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
39979 | # only possibility, but now it conflicts with no-bootstrap rules | |
39980 | @if gcc-bootstrap | |
72b2455a | 39981 | |
d545f33b | 39982 | compare3: |
e360f423 PB |
39983 | @r=`${PWD_COMMAND}`; export r; \ |
39984 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
39985 | if test -f stage3-lean; then \ | |
d545f33b PB |
39986 | echo Cannot compare object files as stage 3 was deleted. ; \ |
39987 | exit 0 ; \ | |
39988 | fi; \ | |
0aed8855 | 39989 | : $(MAKE); $(stage); \ |
d545f33b | 39990 | rm -f .bad_compare ; \ |
c52c6897 | 39991 | echo Comparing stages 3 and 4 ; \ |
d545f33b PB |
39992 | cd stage4-gcc; \ |
39993 | files=`find . -name "*$(objext)" -print` ; \ | |
39994 | cd .. ; \ | |
39995 | for file in $${files} ; do \ | |
39996 | f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \ | |
39997 | @do_compare@ > /dev/null 2>&1; \ | |
f70224b5 PB |
39998 | if test $$? -eq 1; then \ |
39999 | case $$file in \ | |
40000 | ./cc*-checksum$(objext) | ./libgcc/* ) \ | |
40001 | echo warning: $$file differs ;; \ | |
40002 | *) \ | |
40003 | echo $$file differs >> .bad_compare ;; \ | |
40004 | esac ; \ | |
40005 | fi ; \ | |
d545f33b PB |
40006 | done ; \ |
40007 | if [ -f .bad_compare ]; then \ | |
40008 | echo "Bootstrap comparison failure!"; \ | |
40009 | cat .bad_compare; \ | |
40010 | exit 1; \ | |
40011 | else \ | |
c52c6897 | 40012 | echo Comparison successful.; \ |
d545f33b PB |
40013 | fi ; \ |
40014 | $(STAMP) compare3 | |
80911fe1 PB |
40015 | if $(LEAN); then \ |
40016 | rm -rf stage3-*; \ | |
40017 | $(STAMP) stage3-lean; \ | |
40018 | fi | |
9cb3fa6f | 40019 | |
72b2455a | 40020 | |
72b2455a | 40021 | |
80911fe1 | 40022 | .PHONY: bootstrap4 bootstrap4-lean |
be01d343 PB |
40023 | bootstrap4: |
40024 | echo stage4 > stage_final | |
40025 | @r=`${PWD_COMMAND}`; export r; \ | |
40026 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40027 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble | |
0aed8855 | 40028 | @: $(MAKE); $(unstage) |
be01d343 PB |
40029 | @r=`${PWD_COMMAND}`; export r; \ |
40030 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40031 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
0df3d27f | 40032 | |
80911fe1 PB |
40033 | bootstrap4-lean: |
40034 | echo stage4 > stage_final | |
40035 | @r=`${PWD_COMMAND}`; export r; \ | |
40036 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40037 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble | |
40038 | @: $(MAKE); $(unstage) | |
40039 | @r=`${PWD_COMMAND}`; export r; \ | |
40040 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40041 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
40042 | ||
72b2455a | 40043 | |
d545f33b PB |
40044 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
40045 | distclean-stage3:: distclean-stage4 | |
40046 | .PHONY: distclean-stage4 | |
40047 | distclean-stage4:: | |
0aed8855 | 40048 | @: $(MAKE); $(stage) |
d545f33b | 40049 | rm -rf stage4-* compare3 |
0df3d27f | 40050 | |
9cb3fa6f | 40051 | |
d545f33b | 40052 | @endif gcc-bootstrap |
72b2455a PB |
40053 | |
40054 | ||
40055 | .PHONY: stageprofile-start stageprofile-end | |
40056 | ||
40057 | stageprofile-start:: | |
0aed8855 | 40058 | @: $(MAKE); $(stage); \ |
72b2455a | 40059 | echo stageprofile > stage_current ; \ |
b00612cc | 40060 | echo stageprofile > stage_last; \ |
0aed8855 | 40061 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 40062 | @if bfd |
b00612cc PB |
40063 | @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \ |
40064 | mkdir stageprofile-bfd; \ | |
80911fe1 PB |
40065 | mv stageprofile-bfd bfd ; \ |
40066 | mv stage1-bfd prev-bfd || test -f stage1-lean | |
72b2455a PB |
40067 | @endif bfd |
40068 | @if opcodes | |
b00612cc PB |
40069 | @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \ |
40070 | mkdir stageprofile-opcodes; \ | |
80911fe1 PB |
40071 | mv stageprofile-opcodes opcodes ; \ |
40072 | mv stage1-opcodes prev-opcodes || test -f stage1-lean | |
72b2455a PB |
40073 | @endif opcodes |
40074 | @if binutils | |
b00612cc PB |
40075 | @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \ |
40076 | mkdir stageprofile-binutils; \ | |
80911fe1 PB |
40077 | mv stageprofile-binutils binutils ; \ |
40078 | mv stage1-binutils prev-binutils || test -f stage1-lean | |
72b2455a PB |
40079 | @endif binutils |
40080 | @if gas | |
b00612cc PB |
40081 | @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \ |
40082 | mkdir stageprofile-gas; \ | |
80911fe1 PB |
40083 | mv stageprofile-gas gas ; \ |
40084 | mv stage1-gas prev-gas || test -f stage1-lean | |
72b2455a PB |
40085 | @endif gas |
40086 | @if gcc | |
b00612cc PB |
40087 | @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \ |
40088 | mkdir stageprofile-gcc; \ | |
80911fe1 PB |
40089 | mv stageprofile-gcc gcc ; \ |
40090 | mv stage1-gcc prev-gcc || test -f stage1-lean | |
72b2455a PB |
40091 | @endif gcc |
40092 | @if intl | |
b00612cc PB |
40093 | @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \ |
40094 | mkdir stageprofile-intl; \ | |
80911fe1 PB |
40095 | mv stageprofile-intl intl ; \ |
40096 | mv stage1-intl prev-intl || test -f stage1-lean | |
72b2455a PB |
40097 | @endif intl |
40098 | @if ld | |
b00612cc PB |
40099 | @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \ |
40100 | mkdir stageprofile-ld; \ | |
80911fe1 PB |
40101 | mv stageprofile-ld ld ; \ |
40102 | mv stage1-ld prev-ld || test -f stage1-lean | |
72b2455a PB |
40103 | @endif ld |
40104 | @if libcpp | |
b00612cc PB |
40105 | @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \ |
40106 | mkdir stageprofile-libcpp; \ | |
80911fe1 PB |
40107 | mv stageprofile-libcpp libcpp ; \ |
40108 | mv stage1-libcpp prev-libcpp || test -f stage1-lean | |
72b2455a | 40109 | @endif libcpp |
be01d343 PB |
40110 | @if libdecnumber |
40111 | @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \ | |
40112 | mkdir stageprofile-libdecnumber; \ | |
80911fe1 PB |
40113 | mv stageprofile-libdecnumber libdecnumber ; \ |
40114 | mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean | |
be01d343 | 40115 | @endif libdecnumber |
72b2455a | 40116 | @if libiberty |
b00612cc PB |
40117 | @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \ |
40118 | mkdir stageprofile-libiberty; \ | |
80911fe1 PB |
40119 | mv stageprofile-libiberty libiberty ; \ |
40120 | mv stage1-libiberty prev-libiberty || test -f stage1-lean | |
72b2455a PB |
40121 | @endif libiberty |
40122 | @if zlib | |
d545f33b PB |
40123 | @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \ |
40124 | mkdir stageprofile-zlib; \ | |
80911fe1 PB |
40125 | mv stageprofile-zlib zlib ; \ |
40126 | mv stage1-zlib prev-zlib || test -f stage1-lean | |
d545f33b | 40127 | @endif zlib |
0aed8855 PB |
40128 | @[ -d stageprofile-$(TARGET_SUBDIR) ] || \ |
40129 | mkdir stageprofile-$(TARGET_SUBDIR); \ | |
80911fe1 PB |
40130 | mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \ |
40131 | mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean | |
0df3d27f | 40132 | |
80911fe1 | 40133 | stageprofile-end:: |
d545f33b | 40134 | @if bfd |
80911fe1 PB |
40135 | @if test -d $(HOST_SUBDIR)/bfd ; then \ |
40136 | cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \ | |
40137 | mv prev-bfd stage1-bfd ; : ; \ | |
0aed8855 | 40138 | fi |
d545f33b PB |
40139 | @endif bfd |
40140 | @if opcodes | |
80911fe1 PB |
40141 | @if test -d $(HOST_SUBDIR)/opcodes ; then \ |
40142 | cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \ | |
40143 | mv prev-opcodes stage1-opcodes ; : ; \ | |
0aed8855 | 40144 | fi |
d545f33b PB |
40145 | @endif opcodes |
40146 | @if binutils | |
80911fe1 PB |
40147 | @if test -d $(HOST_SUBDIR)/binutils ; then \ |
40148 | cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \ | |
40149 | mv prev-binutils stage1-binutils ; : ; \ | |
0aed8855 | 40150 | fi |
d545f33b PB |
40151 | @endif binutils |
40152 | @if gas | |
80911fe1 PB |
40153 | @if test -d $(HOST_SUBDIR)/gas ; then \ |
40154 | cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \ | |
40155 | mv prev-gas stage1-gas ; : ; \ | |
0aed8855 | 40156 | fi |
d545f33b PB |
40157 | @endif gas |
40158 | @if gcc | |
80911fe1 PB |
40159 | @if test -d $(HOST_SUBDIR)/gcc ; then \ |
40160 | cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \ | |
40161 | mv prev-gcc stage1-gcc ; : ; \ | |
0aed8855 | 40162 | fi |
d545f33b PB |
40163 | @endif gcc |
40164 | @if intl | |
80911fe1 PB |
40165 | @if test -d $(HOST_SUBDIR)/intl ; then \ |
40166 | cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \ | |
40167 | mv prev-intl stage1-intl ; : ; \ | |
0aed8855 | 40168 | fi |
d545f33b PB |
40169 | @endif intl |
40170 | @if ld | |
80911fe1 PB |
40171 | @if test -d $(HOST_SUBDIR)/ld ; then \ |
40172 | cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \ | |
40173 | mv prev-ld stage1-ld ; : ; \ | |
0aed8855 | 40174 | fi |
d545f33b PB |
40175 | @endif ld |
40176 | @if libcpp | |
80911fe1 PB |
40177 | @if test -d $(HOST_SUBDIR)/libcpp ; then \ |
40178 | cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \ | |
40179 | mv prev-libcpp stage1-libcpp ; : ; \ | |
0aed8855 | 40180 | fi |
d545f33b | 40181 | @endif libcpp |
be01d343 | 40182 | @if libdecnumber |
80911fe1 PB |
40183 | @if test -d $(HOST_SUBDIR)/libdecnumber ; then \ |
40184 | cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \ | |
40185 | mv prev-libdecnumber stage1-libdecnumber ; : ; \ | |
0aed8855 | 40186 | fi |
be01d343 | 40187 | @endif libdecnumber |
d545f33b | 40188 | @if libiberty |
80911fe1 PB |
40189 | @if test -d $(HOST_SUBDIR)/libiberty ; then \ |
40190 | cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \ | |
40191 | mv prev-libiberty stage1-libiberty ; : ; \ | |
0aed8855 | 40192 | fi |
d545f33b PB |
40193 | @endif libiberty |
40194 | @if zlib | |
80911fe1 PB |
40195 | @if test -d $(HOST_SUBDIR)/zlib ; then \ |
40196 | cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \ | |
40197 | mv prev-zlib stage1-zlib ; : ; \ | |
0aed8855 | 40198 | fi |
d545f33b | 40199 | @endif zlib |
0aed8855 | 40200 | @if test -d $(TARGET_SUBDIR) ; then \ |
80911fe1 PB |
40201 | mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \ |
40202 | mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \ | |
0aed8855 | 40203 | fi |
80911fe1 | 40204 | rm -f stage_current |
72b2455a | 40205 | |
0aed8855 PB |
40206 | # Bubble a bugfix through all the stages up to stage profile. They are |
40207 | # remade, but not reconfigured. The next stage (if any) will not be | |
40208 | # reconfigured as well. | |
d545f33b PB |
40209 | .PHONY: stageprofile-bubble |
40210 | stageprofile-bubble:: stage1-bubble | |
e360f423 PB |
40211 | @r=`${PWD_COMMAND}`; export r; \ |
40212 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40213 | if test -f stageprofile-lean || test -f stage1-lean ; then \ | |
d545f33b PB |
40214 | echo Skipping rebuild of stageprofile ; \ |
40215 | else \ | |
f70224b5 PB |
40216 | $(MAKE) stageprofile-start; \ |
40217 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \ | |
d545f33b | 40218 | fi |
72b2455a | 40219 | |
d545f33b PB |
40220 | .PHONY: all-stageprofile clean-stageprofile |
40221 | do-clean: clean-stageprofile | |
0df3d27f | 40222 | |
72b2455a PB |
40223 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
40224 | # only possibility, but now it conflicts with no-bootstrap rules | |
40225 | @if gcc-bootstrap | |
40226 | ||
40227 | ||
40228 | ||
40229 | ||
0df3d27f | 40230 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
72b2455a | 40231 | distclean-stage1:: distclean-stageprofile |
0df3d27f | 40232 | .PHONY: distclean-stageprofile |
72b2455a | 40233 | distclean-stageprofile:: |
0aed8855 | 40234 | @: $(MAKE); $(stage) |
9cb3fa6f | 40235 | rm -rf stageprofile-* |
dfdffa2c PB |
40236 | |
40237 | ||
72b2455a | 40238 | @endif gcc-bootstrap |
dfdffa2c PB |
40239 | |
40240 | ||
72b2455a | 40241 | .PHONY: stagefeedback-start stagefeedback-end |
dfdffa2c | 40242 | |
72b2455a | 40243 | stagefeedback-start:: |
0aed8855 | 40244 | @: $(MAKE); $(stage); \ |
72b2455a | 40245 | echo stagefeedback > stage_current ; \ |
b00612cc | 40246 | echo stagefeedback > stage_last; \ |
0aed8855 | 40247 | $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR) |
72b2455a | 40248 | @if bfd |
b00612cc PB |
40249 | @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \ |
40250 | mkdir stagefeedback-bfd; \ | |
80911fe1 PB |
40251 | mv stagefeedback-bfd bfd ; \ |
40252 | mv stageprofile-bfd prev-bfd || test -f stageprofile-lean | |
72b2455a PB |
40253 | @endif bfd |
40254 | @if opcodes | |
b00612cc PB |
40255 | @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \ |
40256 | mkdir stagefeedback-opcodes; \ | |
80911fe1 PB |
40257 | mv stagefeedback-opcodes opcodes ; \ |
40258 | mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean | |
72b2455a PB |
40259 | @endif opcodes |
40260 | @if binutils | |
b00612cc PB |
40261 | @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \ |
40262 | mkdir stagefeedback-binutils; \ | |
80911fe1 PB |
40263 | mv stagefeedback-binutils binutils ; \ |
40264 | mv stageprofile-binutils prev-binutils || test -f stageprofile-lean | |
72b2455a PB |
40265 | @endif binutils |
40266 | @if gas | |
b00612cc PB |
40267 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \ |
40268 | mkdir stagefeedback-gas; \ | |
80911fe1 PB |
40269 | mv stagefeedback-gas gas ; \ |
40270 | mv stageprofile-gas prev-gas || test -f stageprofile-lean | |
72b2455a PB |
40271 | @endif gas |
40272 | @if gcc | |
b00612cc PB |
40273 | @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \ |
40274 | mkdir stagefeedback-gcc; \ | |
80911fe1 PB |
40275 | mv stagefeedback-gcc gcc ; \ |
40276 | mv stageprofile-gcc prev-gcc || test -f stageprofile-lean | |
72b2455a PB |
40277 | @endif gcc |
40278 | @if intl | |
b00612cc PB |
40279 | @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \ |
40280 | mkdir stagefeedback-intl; \ | |
80911fe1 PB |
40281 | mv stagefeedback-intl intl ; \ |
40282 | mv stageprofile-intl prev-intl || test -f stageprofile-lean | |
72b2455a PB |
40283 | @endif intl |
40284 | @if ld | |
b00612cc PB |
40285 | @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \ |
40286 | mkdir stagefeedback-ld; \ | |
80911fe1 PB |
40287 | mv stagefeedback-ld ld ; \ |
40288 | mv stageprofile-ld prev-ld || test -f stageprofile-lean | |
72b2455a PB |
40289 | @endif ld |
40290 | @if libcpp | |
b00612cc PB |
40291 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \ |
40292 | mkdir stagefeedback-libcpp; \ | |
80911fe1 PB |
40293 | mv stagefeedback-libcpp libcpp ; \ |
40294 | mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean | |
72b2455a | 40295 | @endif libcpp |
be01d343 PB |
40296 | @if libdecnumber |
40297 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \ | |
40298 | mkdir stagefeedback-libdecnumber; \ | |
80911fe1 PB |
40299 | mv stagefeedback-libdecnumber libdecnumber ; \ |
40300 | mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean | |
be01d343 | 40301 | @endif libdecnumber |
72b2455a | 40302 | @if libiberty |
b00612cc PB |
40303 | @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \ |
40304 | mkdir stagefeedback-libiberty; \ | |
80911fe1 PB |
40305 | mv stagefeedback-libiberty libiberty ; \ |
40306 | mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean | |
72b2455a PB |
40307 | @endif libiberty |
40308 | @if zlib | |
b00612cc PB |
40309 | @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \ |
40310 | mkdir stagefeedback-zlib; \ | |
80911fe1 PB |
40311 | mv stagefeedback-zlib zlib ; \ |
40312 | mv stageprofile-zlib prev-zlib || test -f stageprofile-lean | |
72b2455a | 40313 | @endif zlib |
0aed8855 PB |
40314 | @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \ |
40315 | mkdir stagefeedback-$(TARGET_SUBDIR); \ | |
80911fe1 PB |
40316 | mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \ |
40317 | mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean | |
dfdffa2c | 40318 | |
80911fe1 | 40319 | stagefeedback-end:: |
72b2455a | 40320 | @if bfd |
80911fe1 PB |
40321 | @if test -d $(HOST_SUBDIR)/bfd ; then \ |
40322 | cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \ | |
40323 | mv prev-bfd stageprofile-bfd ; : ; \ | |
0aed8855 | 40324 | fi |
72b2455a PB |
40325 | @endif bfd |
40326 | @if opcodes | |
80911fe1 PB |
40327 | @if test -d $(HOST_SUBDIR)/opcodes ; then \ |
40328 | cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \ | |
40329 | mv prev-opcodes stageprofile-opcodes ; : ; \ | |
0aed8855 | 40330 | fi |
72b2455a PB |
40331 | @endif opcodes |
40332 | @if binutils | |
80911fe1 PB |
40333 | @if test -d $(HOST_SUBDIR)/binutils ; then \ |
40334 | cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \ | |
40335 | mv prev-binutils stageprofile-binutils ; : ; \ | |
0aed8855 | 40336 | fi |
72b2455a PB |
40337 | @endif binutils |
40338 | @if gas | |
80911fe1 PB |
40339 | @if test -d $(HOST_SUBDIR)/gas ; then \ |
40340 | cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \ | |
40341 | mv prev-gas stageprofile-gas ; : ; \ | |
0aed8855 | 40342 | fi |
72b2455a PB |
40343 | @endif gas |
40344 | @if gcc | |
80911fe1 PB |
40345 | @if test -d $(HOST_SUBDIR)/gcc ; then \ |
40346 | cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \ | |
40347 | mv prev-gcc stageprofile-gcc ; : ; \ | |
0aed8855 | 40348 | fi |
72b2455a PB |
40349 | @endif gcc |
40350 | @if intl | |
80911fe1 PB |
40351 | @if test -d $(HOST_SUBDIR)/intl ; then \ |
40352 | cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \ | |
40353 | mv prev-intl stageprofile-intl ; : ; \ | |
0aed8855 | 40354 | fi |
72b2455a PB |
40355 | @endif intl |
40356 | @if ld | |
80911fe1 PB |
40357 | @if test -d $(HOST_SUBDIR)/ld ; then \ |
40358 | cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \ | |
40359 | mv prev-ld stageprofile-ld ; : ; \ | |
0aed8855 | 40360 | fi |
72b2455a PB |
40361 | @endif ld |
40362 | @if libcpp | |
80911fe1 PB |
40363 | @if test -d $(HOST_SUBDIR)/libcpp ; then \ |
40364 | cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \ | |
40365 | mv prev-libcpp stageprofile-libcpp ; : ; \ | |
0aed8855 | 40366 | fi |
72b2455a | 40367 | @endif libcpp |
be01d343 | 40368 | @if libdecnumber |
80911fe1 PB |
40369 | @if test -d $(HOST_SUBDIR)/libdecnumber ; then \ |
40370 | cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \ | |
40371 | mv prev-libdecnumber stageprofile-libdecnumber ; : ; \ | |
0aed8855 | 40372 | fi |
be01d343 | 40373 | @endif libdecnumber |
72b2455a | 40374 | @if libiberty |
80911fe1 PB |
40375 | @if test -d $(HOST_SUBDIR)/libiberty ; then \ |
40376 | cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \ | |
40377 | mv prev-libiberty stageprofile-libiberty ; : ; \ | |
0aed8855 | 40378 | fi |
72b2455a PB |
40379 | @endif libiberty |
40380 | @if zlib | |
80911fe1 PB |
40381 | @if test -d $(HOST_SUBDIR)/zlib ; then \ |
40382 | cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \ | |
40383 | mv prev-zlib stageprofile-zlib ; : ; \ | |
0aed8855 | 40384 | fi |
72b2455a | 40385 | @endif zlib |
0aed8855 | 40386 | @if test -d $(TARGET_SUBDIR) ; then \ |
80911fe1 PB |
40387 | mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \ |
40388 | mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \ | |
0aed8855 | 40389 | fi |
80911fe1 | 40390 | rm -f stage_current |
dfdffa2c | 40391 | |
0aed8855 PB |
40392 | # Bubble a bugfix through all the stages up to stage feedback. They are |
40393 | # remade, but not reconfigured. The next stage (if any) will not be | |
40394 | # reconfigured as well. | |
72b2455a | 40395 | .PHONY: stagefeedback-bubble |
7d329e61 | 40396 | stagefeedback-bubble:: stageprofile-bubble |
e360f423 PB |
40397 | @r=`${PWD_COMMAND}`; export r; \ |
40398 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40399 | if test -f stagefeedback-lean || test -f stageprofile-lean ; then \ | |
9cb3fa6f PB |
40400 | echo Skipping rebuild of stagefeedback ; \ |
40401 | else \ | |
f70224b5 PB |
40402 | $(MAKE) stagefeedback-start; \ |
40403 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \ | |
9cb3fa6f | 40404 | fi |
72b2455a | 40405 | |
0df3d27f | 40406 | .PHONY: all-stagefeedback clean-stagefeedback |
0df3d27f | 40407 | do-clean: clean-stagefeedback |
0df3d27f | 40408 | |
72b2455a PB |
40409 | # FIXME: Will not need to be conditional when toplevel bootstrap is the |
40410 | # only possibility, but now it conflicts with no-bootstrap rules | |
40411 | @if gcc-bootstrap | |
656fdd47 PB |
40412 | |
40413 | ||
40414 | ||
80911fe1 | 40415 | .PHONY: profiledbootstrap profiledbootstrap-lean |
be01d343 PB |
40416 | profiledbootstrap: |
40417 | echo stagefeedback > stage_final | |
40418 | @r=`${PWD_COMMAND}`; export r; \ | |
40419 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40420 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble | |
0aed8855 | 40421 | @: $(MAKE); $(unstage) |
be01d343 PB |
40422 | @r=`${PWD_COMMAND}`; export r; \ |
40423 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40424 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
7d329e61 | 40425 | |
80911fe1 PB |
40426 | profiledbootstrap-lean: |
40427 | echo stagefeedback > stage_final | |
40428 | @r=`${PWD_COMMAND}`; export r; \ | |
40429 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40430 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble | |
40431 | @: $(MAKE); $(unstage) | |
40432 | @r=`${PWD_COMMAND}`; export r; \ | |
40433 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
40434 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | |
40435 | ||
656fdd47 | 40436 | |
0df3d27f | 40437 | # Rules to wipe a stage and all the following ones, also used for cleanstrap |
7d329e61 | 40438 | distclean-stageprofile:: distclean-stagefeedback |
0df3d27f | 40439 | .PHONY: distclean-stagefeedback |
656fdd47 | 40440 | distclean-stagefeedback:: |
0aed8855 | 40441 | @: $(MAKE); $(stage) |
9cb3fa6f | 40442 | rm -rf stagefeedback-* |
656fdd47 PB |
40443 | |
40444 | ||
72b2455a | 40445 | @endif gcc-bootstrap |
656fdd47 PB |
40446 | |
40447 | ||
40448 | ||
7d329e61 PB |
40449 | stageprofile-end:: |
40450 | $(MAKE) distclean-stagefeedback | |
656fdd47 | 40451 | |
7d329e61 | 40452 | stagefeedback-start:: |
656fdd47 PB |
40453 | @r=`${PWD_COMMAND}`; export r; \ |
40454 | s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
7d329e61 PB |
40455 | for i in prev-*; do \ |
40456 | j=`echo $$i | sed s/^prev-//` ; \ | |
40457 | cd $$r/$$i && \ | |
40458 | { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \ | |
40459 | { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \ | |
40460 | done | |
b8908782 | 40461 | |
0df3d27f | 40462 | @if gcc-bootstrap |
0df3d27f | 40463 | do-distclean: distclean-stage1 |
c52c6897 PB |
40464 | |
40465 | # Provide a GCC build when we're building target libraries. This does | |
40466 | # not work as a dependency, just as the minimum necessary to avoid errors. | |
40467 | stage_last: | |
40468 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble | |
b37df25a | 40469 | @endif gcc-bootstrap |
0df3d27f | 40470 | |
c52c6897 PB |
40471 | .PHONY: restrap |
40472 | restrap: | |
40473 | @: $(MAKE); $(stage) | |
40474 | rm -rf stage1-$(TARGET_SUBDIR) stage2 stage3 stage4 stageprofile stagefeedback | |
40475 | $(MAKE) $(RECURSE_FLAGS_TO_PASS) all | |
40476 | ||
ae831be5 NN |
40477 | # -------------------------------------- |
40478 | # Dependencies between different modules | |
40479 | # -------------------------------------- | |
252b5132 | 40480 | |
9e6ce191 | 40481 | # Generic dependencies for target modules on host stuff, especially gcc |
c52c6897 PB |
40482 | @if gcc-bootstrap |
40483 | configure-target-libstdc++-v3: stage_last | |
40484 | configure-target-libmudflap: stage_last | |
40485 | configure-target-libssp: stage_last | |
40486 | configure-target-libgcc-math: stage_last | |
40487 | configure-target-newlib: stage_last | |
40488 | configure-target-libgfortran: stage_last | |
40489 | configure-target-libobjc: stage_last | |
40490 | configure-target-libtermcap: stage_last | |
40491 | configure-target-winsup: stage_last | |
40492 | configure-target-libgloss: stage_last | |
40493 | configure-target-libiberty: stage_last | |
40494 | configure-target-gperf: stage_last | |
40495 | configure-target-examples: stage_last | |
40496 | configure-target-libffi: stage_last | |
40497 | configure-target-libjava: stage_last | |
40498 | configure-target-zlib: stage_last | |
40499 | configure-target-boehm-gc: stage_last | |
40500 | configure-target-qthreads: stage_last | |
40501 | configure-target-rda: stage_last | |
40502 | configure-target-libada: stage_last | |
40503 | configure-target-libgomp: stage_last | |
40504 | @endif gcc-bootstrap | |
9e6ce191 | 40505 | |
c52c6897 | 40506 | @if gcc-no-bootstrap |
9e6ce191 | 40507 | configure-target-libstdc++-v3: maybe-all-gcc |
9e6ce191 | 40508 | configure-target-libmudflap: maybe-all-gcc |
064d0a7c | 40509 | configure-target-libssp: maybe-all-gcc |
b3ded179 | 40510 | configure-target-libgcc-math: maybe-all-gcc |
9e6ce191 | 40511 | configure-target-newlib: maybe-all-gcc |
9e6ce191 | 40512 | configure-target-libgfortran: maybe-all-gcc |
9e6ce191 | 40513 | configure-target-libobjc: maybe-all-gcc |
9e6ce191 | 40514 | configure-target-libtermcap: maybe-all-gcc |
9e6ce191 | 40515 | configure-target-winsup: maybe-all-gcc |
9e6ce191 | 40516 | configure-target-libgloss: maybe-all-gcc |
9e6ce191 | 40517 | configure-target-libiberty: maybe-all-gcc |
9e6ce191 | 40518 | configure-target-gperf: maybe-all-gcc |
9e6ce191 | 40519 | configure-target-examples: maybe-all-gcc |
9e6ce191 | 40520 | configure-target-libffi: maybe-all-gcc |
9e6ce191 | 40521 | configure-target-libjava: maybe-all-gcc |
9e6ce191 | 40522 | configure-target-zlib: maybe-all-gcc |
9e6ce191 | 40523 | configure-target-boehm-gc: maybe-all-gcc |
9e6ce191 | 40524 | configure-target-qthreads: maybe-all-gcc |
9e6ce191 | 40525 | configure-target-rda: maybe-all-gcc |
9e6ce191 | 40526 | configure-target-libada: maybe-all-gcc |
b3ded179 | 40527 | configure-target-libgomp: maybe-all-gcc |
c52c6897 | 40528 | @endif gcc-no-bootstrap |
b3ded179 | 40529 | |
9e6ce191 PB |
40530 | |
40531 | ||
40532 | configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss | |
40533 | ||
40534 | configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss | |
40535 | configure-target-gperf: maybe-all-target-libstdc++-v3 | |
40536 | ||
40537 | configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss | |
40538 | ||
40539 | configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss | |
40540 | ||
40541 | configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss | |
40542 | ||
40543 | configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss | |
40544 | configure-target-libjava: maybe-all-target-libstdc++-v3 | |
40545 | ||
c13c918a JW |
40546 | configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss |
40547 | ||
9e6ce191 PB |
40548 | configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss |
40549 | ||
e6db70d4 RE |
40550 | configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss |
40551 | ||
9e6ce191 PB |
40552 | configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss |
40553 | ||
40554 | configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss | |
40555 | ||
40556 | configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss | |
40557 | ||
40558 | configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss | |
40559 | ||
40560 | configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss | |
40561 | ||
40562 | configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss | |
40563 | ||
40564 | configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss | |
40565 | ||
40566 | ||
ae831be5 NN |
40567 | # There are two types of dependencies here: 'hard' dependencies, where one |
40568 | # module simply won't build without the other; and 'soft' dependencies, where | |
40569 | # if the depended-on module is missing, the depending module will do without | |
40570 | # or find a substitute somewhere (perhaps installed). Soft dependencies | |
9e6ce191 | 40571 | # are made here to depend on a 'maybe-' target. If you're not sure, |
ae831be5 NN |
40572 | # it's safer to use a soft dependency. |
40573 | ||
9e6ce191 PB |
40574 | |
40575 | ||
40576 | ||
40577 | ||
c60fe18b | 40578 | |
9e6ce191 PB |
40579 | # With all the machinery above in place, it is pretty easy to generate |
40580 | # dependencies. Host dependencies are a bit more complex because we have | |
40581 | # to check for bootstrap/prebootstrap dependencies. To resolve | |
40582 | # prebootstrap dependencies, prebootstrap modules are gathered in | |
40583 | # a hash table. | |
6a9cf61e | 40584 | all-build-bison: maybe-all-build-texinfo |
9e6ce191 | 40585 | all-build-byacc: maybe-all-build-texinfo |
6a9cf61e | 40586 | all-build-flex: maybe-all-build-texinfo |
9e6ce191 PB |
40587 | all-build-flex: maybe-all-build-bison |
40588 | all-build-flex: maybe-all-build-byacc | |
40589 | all-build-flex: maybe-all-build-m4 | |
6a9cf61e | 40590 | all-build-libiberty: maybe-all-build-texinfo |
9e6ce191 | 40591 | all-build-m4: maybe-all-build-texinfo |
ee025550 | 40592 | all-build-fixincludes: maybe-all-build-libiberty |
9e6ce191 PB |
40593 | configure-gcc: maybe-configure-intl |
40594 | ||
40595 | configure-stage1-gcc: maybe-configure-stage1-intl | |
40596 | configure-stage2-gcc: maybe-configure-stage2-intl | |
40597 | configure-stage3-gcc: maybe-configure-stage3-intl | |
40598 | configure-stage4-gcc: maybe-configure-stage4-intl | |
40599 | configure-stageprofile-gcc: maybe-configure-stageprofile-intl | |
40600 | configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl | |
c60fe18b PB |
40601 | configure-gcc: maybe-all-binutils |
40602 | ||
40603 | configure-stage1-gcc: maybe-all-stage1-binutils | |
40604 | configure-stage2-gcc: maybe-all-stage2-binutils | |
40605 | configure-stage3-gcc: maybe-all-stage3-binutils | |
40606 | configure-stage4-gcc: maybe-all-stage4-binutils | |
40607 | configure-stageprofile-gcc: maybe-all-stageprofile-binutils | |
40608 | configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils | |
40609 | configure-gcc: maybe-all-gas | |
40610 | ||
40611 | configure-stage1-gcc: maybe-all-stage1-gas | |
40612 | configure-stage2-gcc: maybe-all-stage2-gas | |
40613 | configure-stage3-gcc: maybe-all-stage3-gas | |
40614 | configure-stage4-gcc: maybe-all-stage4-gas | |
40615 | configure-stageprofile-gcc: maybe-all-stageprofile-gas | |
40616 | configure-stagefeedback-gcc: maybe-all-stagefeedback-gas | |
40617 | configure-gcc: maybe-all-ld | |
40618 | ||
40619 | configure-stage1-gcc: maybe-all-stage1-ld | |
40620 | configure-stage2-gcc: maybe-all-stage2-ld | |
40621 | configure-stage3-gcc: maybe-all-stage3-ld | |
40622 | configure-stage4-gcc: maybe-all-stage4-ld | |
40623 | configure-stageprofile-gcc: maybe-all-stageprofile-ld | |
40624 | configure-stagefeedback-gcc: maybe-all-stagefeedback-ld | |
9e6ce191 PB |
40625 | all-gcc: all-libiberty |
40626 | ||
40627 | all-stage1-gcc: all-stage1-libiberty | |
40628 | all-stage2-gcc: all-stage2-libiberty | |
40629 | all-stage3-gcc: all-stage3-libiberty | |
40630 | all-stage4-gcc: all-stage4-libiberty | |
40631 | all-stageprofile-gcc: all-stageprofile-libiberty | |
40632 | all-stagefeedback-gcc: all-stagefeedback-libiberty | |
40633 | all-gcc: maybe-all-intl | |
40634 | ||
40635 | all-stage1-gcc: maybe-all-stage1-intl | |
40636 | all-stage2-gcc: maybe-all-stage2-intl | |
40637 | all-stage3-gcc: maybe-all-stage3-intl | |
40638 | all-stage4-gcc: maybe-all-stage4-intl | |
40639 | all-stageprofile-gcc: maybe-all-stageprofile-intl | |
40640 | all-stagefeedback-gcc: maybe-all-stagefeedback-intl | |
72b2455a PB |
40641 | all-gcc: maybe-all-build-texinfo |
40642 | ||
40643 | all-stage1-gcc: maybe-all-build-texinfo | |
40644 | all-stage2-gcc: maybe-all-build-texinfo | |
40645 | all-stage3-gcc: maybe-all-build-texinfo | |
40646 | all-stage4-gcc: maybe-all-build-texinfo | |
40647 | all-stageprofile-gcc: maybe-all-build-texinfo | |
40648 | all-stagefeedback-gcc: maybe-all-build-texinfo | |
40649 | all-prebootstrap: maybe-all-build-texinfo | |
40650 | all-gcc: maybe-all-build-bison | |
40651 | ||
40652 | all-stage1-gcc: maybe-all-build-bison | |
40653 | all-stage2-gcc: maybe-all-build-bison | |
40654 | all-stage3-gcc: maybe-all-build-bison | |
40655 | all-stage4-gcc: maybe-all-build-bison | |
40656 | all-stageprofile-gcc: maybe-all-build-bison | |
40657 | all-stagefeedback-gcc: maybe-all-build-bison | |
40658 | all-prebootstrap: maybe-all-build-bison | |
40659 | all-gcc: maybe-all-build-byacc | |
40660 | ||
40661 | all-stage1-gcc: maybe-all-build-byacc | |
40662 | all-stage2-gcc: maybe-all-build-byacc | |
40663 | all-stage3-gcc: maybe-all-build-byacc | |
40664 | all-stage4-gcc: maybe-all-build-byacc | |
40665 | all-stageprofile-gcc: maybe-all-build-byacc | |
40666 | all-stagefeedback-gcc: maybe-all-build-byacc | |
40667 | all-prebootstrap: maybe-all-build-byacc | |
40668 | all-gcc: maybe-all-build-flex | |
40669 | ||
40670 | all-stage1-gcc: maybe-all-build-flex | |
40671 | all-stage2-gcc: maybe-all-build-flex | |
40672 | all-stage3-gcc: maybe-all-build-flex | |
40673 | all-stage4-gcc: maybe-all-build-flex | |
40674 | all-stageprofile-gcc: maybe-all-build-flex | |
40675 | all-stagefeedback-gcc: maybe-all-build-flex | |
40676 | all-prebootstrap: maybe-all-build-flex | |
ee025550 PB |
40677 | all-gcc: maybe-all-build-libiberty |
40678 | ||
40679 | all-stage1-gcc: maybe-all-build-libiberty | |
40680 | all-stage2-gcc: maybe-all-build-libiberty | |
40681 | all-stage3-gcc: maybe-all-build-libiberty | |
40682 | all-stage4-gcc: maybe-all-build-libiberty | |
40683 | all-stageprofile-gcc: maybe-all-build-libiberty | |
40684 | all-stagefeedback-gcc: maybe-all-build-libiberty | |
40685 | all-prebootstrap: maybe-all-build-libiberty | |
40686 | all-gcc: maybe-all-build-fixincludes | |
40687 | ||
40688 | all-stage1-gcc: maybe-all-build-fixincludes | |
40689 | all-stage2-gcc: maybe-all-build-fixincludes | |
40690 | all-stage3-gcc: maybe-all-build-fixincludes | |
40691 | all-stage4-gcc: maybe-all-build-fixincludes | |
40692 | all-stageprofile-gcc: maybe-all-build-fixincludes | |
40693 | all-stagefeedback-gcc: maybe-all-build-fixincludes | |
40694 | all-prebootstrap: maybe-all-build-fixincludes | |
9e6ce191 PB |
40695 | all-gcc: maybe-all-zlib |
40696 | ||
40697 | all-stage1-gcc: maybe-all-stage1-zlib | |
40698 | all-stage2-gcc: maybe-all-stage2-zlib | |
40699 | all-stage3-gcc: maybe-all-stage3-zlib | |
40700 | all-stage4-gcc: maybe-all-stage4-zlib | |
40701 | all-stageprofile-gcc: maybe-all-stageprofile-zlib | |
40702 | all-stagefeedback-gcc: maybe-all-stagefeedback-zlib | |
9e6ce191 PB |
40703 | all-gcc: all-libcpp |
40704 | ||
40705 | all-stage1-gcc: all-stage1-libcpp | |
40706 | all-stage2-gcc: all-stage2-libcpp | |
40707 | all-stage3-gcc: all-stage3-libcpp | |
40708 | all-stage4-gcc: all-stage4-libcpp | |
40709 | all-stageprofile-gcc: all-stageprofile-libcpp | |
40710 | all-stagefeedback-gcc: all-stagefeedback-libcpp | |
be01d343 PB |
40711 | all-gcc: all-libdecnumber |
40712 | ||
40713 | all-stage1-gcc: all-stage1-libdecnumber | |
40714 | all-stage2-gcc: all-stage2-libdecnumber | |
40715 | all-stage3-gcc: all-stage3-libdecnumber | |
40716 | all-stage4-gcc: all-stage4-libdecnumber | |
40717 | all-stageprofile-gcc: all-stageprofile-libdecnumber | |
40718 | all-stagefeedback-gcc: all-stagefeedback-libdecnumber | |
d3ed111c GK |
40719 | all-gcc: maybe-all-libiberty |
40720 | ||
40721 | all-stage1-gcc: maybe-all-stage1-libiberty | |
40722 | all-stage2-gcc: maybe-all-stage2-libiberty | |
40723 | all-stage3-gcc: maybe-all-stage3-libiberty | |
40724 | all-stage4-gcc: maybe-all-stage4-libiberty | |
40725 | all-stageprofile-gcc: maybe-all-stageprofile-libiberty | |
40726 | all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty | |
40727 | all-gcc: maybe-all-fixincludes | |
69e57115 | 40728 | install-gcc: maybe-install-fixincludes |
9e6ce191 PB |
40729 | configure-libcpp: configure-libiberty |
40730 | ||
40731 | configure-stage1-libcpp: configure-stage1-libiberty | |
40732 | configure-stage2-libcpp: configure-stage2-libiberty | |
40733 | configure-stage3-libcpp: configure-stage3-libiberty | |
40734 | configure-stage4-libcpp: configure-stage4-libiberty | |
40735 | configure-stageprofile-libcpp: configure-stageprofile-libiberty | |
40736 | configure-stagefeedback-libcpp: configure-stagefeedback-libiberty | |
40737 | configure-libcpp: maybe-configure-intl | |
40738 | ||
40739 | configure-stage1-libcpp: maybe-configure-stage1-intl | |
40740 | configure-stage2-libcpp: maybe-configure-stage2-intl | |
40741 | configure-stage3-libcpp: maybe-configure-stage3-intl | |
40742 | configure-stage4-libcpp: maybe-configure-stage4-intl | |
40743 | configure-stageprofile-libcpp: maybe-configure-stageprofile-intl | |
40744 | configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl | |
40745 | all-libcpp: all-libiberty | |
40746 | ||
40747 | all-stage1-libcpp: all-stage1-libiberty | |
40748 | all-stage2-libcpp: all-stage2-libiberty | |
40749 | all-stage3-libcpp: all-stage3-libiberty | |
40750 | all-stage4-libcpp: all-stage4-libiberty | |
40751 | all-stageprofile-libcpp: all-stageprofile-libiberty | |
40752 | all-stagefeedback-libcpp: all-stagefeedback-libiberty | |
40753 | all-libcpp: maybe-all-intl | |
40754 | ||
40755 | all-stage1-libcpp: maybe-all-stage1-intl | |
40756 | all-stage2-libcpp: maybe-all-stage2-intl | |
40757 | all-stage3-libcpp: maybe-all-stage3-intl | |
40758 | all-stage4-libcpp: maybe-all-stage4-intl | |
40759 | all-stageprofile-libcpp: maybe-all-stageprofile-intl | |
40760 | all-stagefeedback-libcpp: maybe-all-stagefeedback-intl | |
d3ed111c | 40761 | all-fixincludes: maybe-all-libiberty |
b00612cc | 40762 | all-gnattools: maybe-all-target-libada |
9e6ce191 PB |
40763 | configure-gdb: maybe-configure-sim |
40764 | all-gdb: maybe-all-libiberty | |
40765 | all-gdb: maybe-all-opcodes | |
40766 | all-gdb: maybe-all-bfd | |
9e6ce191 | 40767 | all-gdb: maybe-all-readline |
72b2455a PB |
40768 | all-gdb: maybe-all-build-bison |
40769 | all-gdb: maybe-all-build-byacc | |
9e6ce191 | 40770 | all-gdb: maybe-all-sim |
9e6ce191 PB |
40771 | configure-libgui: maybe-configure-tcl |
40772 | configure-libgui: maybe-configure-tk | |
40773 | all-libgui: maybe-all-tcl | |
40774 | all-libgui: maybe-all-tk | |
40775 | all-libgui: maybe-all-itcl | |
b4a77b47 | 40776 | configure-bfd: configure-libiberty |
9e6ce191 PB |
40777 | |
40778 | configure-stage1-bfd: configure-stage1-libiberty | |
40779 | configure-stage2-bfd: configure-stage2-libiberty | |
40780 | configure-stage3-bfd: configure-stage3-libiberty | |
40781 | configure-stage4-bfd: configure-stage4-libiberty | |
40782 | configure-stageprofile-bfd: configure-stageprofile-libiberty | |
40783 | configure-stagefeedback-bfd: configure-stagefeedback-libiberty | |
40784 | all-bfd: maybe-all-libiberty | |
40785 | ||
40786 | all-stage1-bfd: maybe-all-stage1-libiberty | |
40787 | all-stage2-bfd: maybe-all-stage2-libiberty | |
40788 | all-stage3-bfd: maybe-all-stage3-libiberty | |
40789 | all-stage4-bfd: maybe-all-stage4-libiberty | |
40790 | all-stageprofile-bfd: maybe-all-stageprofile-libiberty | |
40791 | all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty | |
40792 | all-bfd: maybe-all-intl | |
40793 | ||
40794 | all-stage1-bfd: maybe-all-stage1-intl | |
40795 | all-stage2-bfd: maybe-all-stage2-intl | |
40796 | all-stage3-bfd: maybe-all-stage3-intl | |
40797 | all-stage4-bfd: maybe-all-stage4-intl | |
40798 | all-stageprofile-bfd: maybe-all-stageprofile-intl | |
40799 | all-stagefeedback-bfd: maybe-all-stagefeedback-intl | |
40800 | all-binutils: maybe-all-libiberty | |
40801 | ||
40802 | all-stage1-binutils: maybe-all-stage1-libiberty | |
40803 | all-stage2-binutils: maybe-all-stage2-libiberty | |
40804 | all-stage3-binutils: maybe-all-stage3-libiberty | |
40805 | all-stage4-binutils: maybe-all-stage4-libiberty | |
40806 | all-stageprofile-binutils: maybe-all-stageprofile-libiberty | |
40807 | all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty | |
40808 | all-binutils: maybe-all-opcodes | |
40809 | ||
40810 | all-stage1-binutils: maybe-all-stage1-opcodes | |
40811 | all-stage2-binutils: maybe-all-stage2-opcodes | |
40812 | all-stage3-binutils: maybe-all-stage3-opcodes | |
40813 | all-stage4-binutils: maybe-all-stage4-opcodes | |
40814 | all-stageprofile-binutils: maybe-all-stageprofile-opcodes | |
40815 | all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes | |
40816 | all-binutils: maybe-all-bfd | |
40817 | ||
40818 | all-stage1-binutils: maybe-all-stage1-bfd | |
40819 | all-stage2-binutils: maybe-all-stage2-bfd | |
40820 | all-stage3-binutils: maybe-all-stage3-bfd | |
40821 | all-stage4-binutils: maybe-all-stage4-bfd | |
40822 | all-stageprofile-binutils: maybe-all-stageprofile-bfd | |
40823 | all-stagefeedback-binutils: maybe-all-stagefeedback-bfd | |
72b2455a PB |
40824 | all-binutils: maybe-all-build-flex |
40825 | ||
40826 | all-stage1-binutils: maybe-all-build-flex | |
40827 | all-stage2-binutils: maybe-all-build-flex | |
40828 | all-stage3-binutils: maybe-all-build-flex | |
40829 | all-stage4-binutils: maybe-all-build-flex | |
40830 | all-stageprofile-binutils: maybe-all-build-flex | |
40831 | all-stagefeedback-binutils: maybe-all-build-flex | |
40832 | all-prebootstrap: maybe-all-build-flex | |
40833 | all-binutils: maybe-all-build-bison | |
40834 | ||
40835 | all-stage1-binutils: maybe-all-build-bison | |
40836 | all-stage2-binutils: maybe-all-build-bison | |
40837 | all-stage3-binutils: maybe-all-build-bison | |
40838 | all-stage4-binutils: maybe-all-build-bison | |
40839 | all-stageprofile-binutils: maybe-all-build-bison | |
40840 | all-stagefeedback-binutils: maybe-all-build-bison | |
40841 | all-prebootstrap: maybe-all-build-bison | |
40842 | all-binutils: maybe-all-build-byacc | |
40843 | ||
40844 | all-stage1-binutils: maybe-all-build-byacc | |
40845 | all-stage2-binutils: maybe-all-build-byacc | |
40846 | all-stage3-binutils: maybe-all-build-byacc | |
40847 | all-stage4-binutils: maybe-all-build-byacc | |
40848 | all-stageprofile-binutils: maybe-all-build-byacc | |
40849 | all-stagefeedback-binutils: maybe-all-build-byacc | |
40850 | all-prebootstrap: maybe-all-build-byacc | |
9e6ce191 PB |
40851 | all-binutils: maybe-all-intl |
40852 | ||
40853 | all-stage1-binutils: maybe-all-stage1-intl | |
40854 | all-stage2-binutils: maybe-all-stage2-intl | |
40855 | all-stage3-binutils: maybe-all-stage3-intl | |
40856 | all-stage4-binutils: maybe-all-stage4-intl | |
40857 | all-stageprofile-binutils: maybe-all-stageprofile-intl | |
40858 | all-stagefeedback-binutils: maybe-all-stagefeedback-intl | |
ae831be5 | 40859 | install-binutils: maybe-install-opcodes |
cf662e21 | 40860 | install-opcodes: maybe-install-bfd |
9e6ce191 PB |
40861 | all-gas: maybe-all-libiberty |
40862 | ||
40863 | all-stage1-gas: maybe-all-stage1-libiberty | |
40864 | all-stage2-gas: maybe-all-stage2-libiberty | |
40865 | all-stage3-gas: maybe-all-stage3-libiberty | |
40866 | all-stage4-gas: maybe-all-stage4-libiberty | |
40867 | all-stageprofile-gas: maybe-all-stageprofile-libiberty | |
40868 | all-stagefeedback-gas: maybe-all-stagefeedback-libiberty | |
40869 | all-gas: maybe-all-opcodes | |
40870 | ||
40871 | all-stage1-gas: maybe-all-stage1-opcodes | |
40872 | all-stage2-gas: maybe-all-stage2-opcodes | |
40873 | all-stage3-gas: maybe-all-stage3-opcodes | |
40874 | all-stage4-gas: maybe-all-stage4-opcodes | |
40875 | all-stageprofile-gas: maybe-all-stageprofile-opcodes | |
40876 | all-stagefeedback-gas: maybe-all-stagefeedback-opcodes | |
40877 | all-gas: maybe-all-bfd | |
40878 | ||
40879 | all-stage1-gas: maybe-all-stage1-bfd | |
40880 | all-stage2-gas: maybe-all-stage2-bfd | |
40881 | all-stage3-gas: maybe-all-stage3-bfd | |
40882 | all-stage4-gas: maybe-all-stage4-bfd | |
40883 | all-stageprofile-gas: maybe-all-stageprofile-bfd | |
40884 | all-stagefeedback-gas: maybe-all-stagefeedback-bfd | |
40885 | all-gas: maybe-all-intl | |
40886 | ||
40887 | all-stage1-gas: maybe-all-stage1-intl | |
40888 | all-stage2-gas: maybe-all-stage2-intl | |
40889 | all-stage3-gas: maybe-all-stage3-intl | |
40890 | all-stage4-gas: maybe-all-stage4-intl | |
40891 | all-stageprofile-gas: maybe-all-stageprofile-intl | |
40892 | all-stagefeedback-gas: maybe-all-stagefeedback-intl | |
40893 | all-gprof: maybe-all-libiberty | |
40894 | all-gprof: maybe-all-bfd | |
40895 | all-gprof: maybe-all-opcodes | |
40896 | all-gprof: maybe-all-intl | |
40897 | all-ld: maybe-all-libiberty | |
40898 | ||
40899 | all-stage1-ld: maybe-all-stage1-libiberty | |
40900 | all-stage2-ld: maybe-all-stage2-libiberty | |
40901 | all-stage3-ld: maybe-all-stage3-libiberty | |
40902 | all-stage4-ld: maybe-all-stage4-libiberty | |
40903 | all-stageprofile-ld: maybe-all-stageprofile-libiberty | |
40904 | all-stagefeedback-ld: maybe-all-stagefeedback-libiberty | |
40905 | all-ld: maybe-all-bfd | |
40906 | ||
40907 | all-stage1-ld: maybe-all-stage1-bfd | |
40908 | all-stage2-ld: maybe-all-stage2-bfd | |
40909 | all-stage3-ld: maybe-all-stage3-bfd | |
40910 | all-stage4-ld: maybe-all-stage4-bfd | |
40911 | all-stageprofile-ld: maybe-all-stageprofile-bfd | |
40912 | all-stagefeedback-ld: maybe-all-stagefeedback-bfd | |
40913 | all-ld: maybe-all-opcodes | |
40914 | ||
40915 | all-stage1-ld: maybe-all-stage1-opcodes | |
40916 | all-stage2-ld: maybe-all-stage2-opcodes | |
40917 | all-stage3-ld: maybe-all-stage3-opcodes | |
40918 | all-stage4-ld: maybe-all-stage4-opcodes | |
40919 | all-stageprofile-ld: maybe-all-stageprofile-opcodes | |
40920 | all-stagefeedback-ld: maybe-all-stagefeedback-opcodes | |
72b2455a PB |
40921 | all-ld: maybe-all-build-bison |
40922 | ||
40923 | all-stage1-ld: maybe-all-build-bison | |
40924 | all-stage2-ld: maybe-all-build-bison | |
40925 | all-stage3-ld: maybe-all-build-bison | |
40926 | all-stage4-ld: maybe-all-build-bison | |
40927 | all-stageprofile-ld: maybe-all-build-bison | |
40928 | all-stagefeedback-ld: maybe-all-build-bison | |
40929 | all-prebootstrap: maybe-all-build-bison | |
40930 | all-ld: maybe-all-build-byacc | |
40931 | ||
40932 | all-stage1-ld: maybe-all-build-byacc | |
40933 | all-stage2-ld: maybe-all-build-byacc | |
40934 | all-stage3-ld: maybe-all-build-byacc | |
40935 | all-stage4-ld: maybe-all-build-byacc | |
40936 | all-stageprofile-ld: maybe-all-build-byacc | |
40937 | all-stagefeedback-ld: maybe-all-build-byacc | |
40938 | all-prebootstrap: maybe-all-build-byacc | |
40939 | all-ld: maybe-all-build-flex | |
40940 | ||
40941 | all-stage1-ld: maybe-all-build-flex | |
40942 | all-stage2-ld: maybe-all-build-flex | |
40943 | all-stage3-ld: maybe-all-build-flex | |
40944 | all-stage4-ld: maybe-all-build-flex | |
40945 | all-stageprofile-ld: maybe-all-build-flex | |
40946 | all-stagefeedback-ld: maybe-all-build-flex | |
40947 | all-prebootstrap: maybe-all-build-flex | |
9e6ce191 PB |
40948 | all-ld: maybe-all-intl |
40949 | ||
40950 | all-stage1-ld: maybe-all-stage1-intl | |
40951 | all-stage2-ld: maybe-all-stage2-intl | |
40952 | all-stage3-ld: maybe-all-stage3-intl | |
40953 | all-stage4-ld: maybe-all-stage4-intl | |
40954 | all-stageprofile-ld: maybe-all-stageprofile-intl | |
40955 | all-stagefeedback-ld: maybe-all-stagefeedback-intl | |
40956 | all-opcodes: maybe-all-bfd | |
40957 | ||
40958 | all-stage1-opcodes: maybe-all-stage1-bfd | |
40959 | all-stage2-opcodes: maybe-all-stage2-bfd | |
40960 | all-stage3-opcodes: maybe-all-stage3-bfd | |
40961 | all-stage4-opcodes: maybe-all-stage4-bfd | |
40962 | all-stageprofile-opcodes: maybe-all-stageprofile-bfd | |
40963 | all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd | |
40964 | all-opcodes: maybe-all-libiberty | |
40965 | ||
40966 | all-stage1-opcodes: maybe-all-stage1-libiberty | |
40967 | all-stage2-opcodes: maybe-all-stage2-libiberty | |
40968 | all-stage3-opcodes: maybe-all-stage3-libiberty | |
40969 | all-stage4-opcodes: maybe-all-stage4-libiberty | |
40970 | all-stageprofile-opcodes: maybe-all-stageprofile-libiberty | |
40971 | all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty | |
40972 | all-dejagnu: maybe-all-tcl | |
40973 | all-dejagnu: maybe-all-expect | |
40974 | all-dejagnu: maybe-all-tk | |
40975 | configure-expect: maybe-configure-tcl | |
40976 | configure-expect: maybe-configure-tk | |
40977 | all-expect: maybe-all-tcl | |
40978 | all-expect: maybe-all-tk | |
40979 | configure-itcl: maybe-configure-tcl | |
40980 | configure-itcl: maybe-configure-tk | |
40981 | all-itcl: maybe-all-tcl | |
40982 | all-itcl: maybe-all-tk | |
ae831be5 | 40983 | install-itcl: maybe-install-tcl |
b4a77b47 | 40984 | configure-tk: maybe-configure-tcl |
ae831be5 | 40985 | all-tk: maybe-all-tcl |
9e6ce191 PB |
40986 | all-sid: maybe-all-libiberty |
40987 | all-sid: maybe-all-bfd | |
40988 | all-sid: maybe-all-opcodes | |
40989 | all-sid: maybe-all-tcl | |
40990 | all-sid: maybe-all-tk | |
40991 | install-sid: maybe-install-tcl | |
40992 | install-sid: maybe-install-tk | |
40993 | all-sim: maybe-all-libiberty | |
40994 | all-sim: maybe-all-bfd | |
40995 | all-sim: maybe-all-opcodes | |
40996 | all-sim: maybe-all-readline | |
40997 | all-sim: maybe-configure-gdb | |
40998 | all-fastjar: maybe-all-zlib | |
72b2455a | 40999 | all-fastjar: maybe-all-build-texinfo |
9e6ce191 PB |
41000 | all-fastjar: maybe-all-libiberty |
41001 | all-autoconf: maybe-all-m4 | |
72b2455a | 41002 | all-autoconf: maybe-all-build-texinfo |
9e6ce191 | 41003 | all-automake: maybe-all-m4 |
72b2455a | 41004 | all-automake: maybe-all-build-texinfo |
9e6ce191 PB |
41005 | all-automake: maybe-all-autoconf |
41006 | all-bison: maybe-all-intl | |
72b2455a | 41007 | all-bison: maybe-all-build-texinfo |
9e6ce191 | 41008 | all-diff: maybe-all-intl |
72b2455a | 41009 | all-diff: maybe-all-build-texinfo |
9e6ce191 | 41010 | all-fileutils: maybe-all-intl |
72b2455a PB |
41011 | all-fileutils: maybe-all-build-texinfo |
41012 | all-flex: maybe-all-build-bison | |
41013 | all-flex: maybe-all-build-byacc | |
9e6ce191 PB |
41014 | all-flex: maybe-all-intl |
41015 | all-flex: maybe-all-m4 | |
72b2455a | 41016 | all-flex: maybe-all-build-texinfo |
9e6ce191 PB |
41017 | all-gzip: maybe-all-intl |
41018 | all-gzip: maybe-all-zlib | |
72b2455a | 41019 | all-gzip: maybe-all-build-texinfo |
9e6ce191 | 41020 | all-hello: maybe-all-intl |
72b2455a | 41021 | all-hello: maybe-all-build-texinfo |
9e6ce191 | 41022 | all-m4: maybe-all-intl |
72b2455a | 41023 | all-m4: maybe-all-build-texinfo |
9e6ce191 | 41024 | all-make: maybe-all-intl |
72b2455a PB |
41025 | all-make: maybe-all-build-texinfo |
41026 | all-patch: maybe-all-build-texinfo | |
41027 | all-make: maybe-all-build-texinfo | |
930314a4 | 41028 | all-prms: maybe-all-libiberty |
72b2455a PB |
41029 | all-recode: maybe-all-build-texinfo |
41030 | all-sed: maybe-all-build-texinfo | |
930314a4 | 41031 | all-send-pr: maybe-all-prms |
72b2455a PB |
41032 | all-tar: maybe-all-build-texinfo |
41033 | all-uudecode: maybe-all-build-texinfo | |
9e6ce191 | 41034 | configure-target-boehm-gc: maybe-configure-target-qthreads |
b4a77b47 | 41035 | configure-target-fastjar: maybe-configure-target-zlib |
9e6ce191 PB |
41036 | all-target-fastjar: maybe-all-target-zlib |
41037 | all-target-fastjar: maybe-all-target-libiberty | |
41038 | configure-target-libjava: maybe-configure-target-zlib | |
41039 | configure-target-libjava: maybe-configure-target-boehm-gc | |
41040 | configure-target-libjava: maybe-configure-target-qthreads | |
41041 | configure-target-libjava: maybe-configure-target-libffi | |
41042 | all-target-libjava: maybe-all-fastjar | |
41043 | all-target-libjava: maybe-all-target-zlib | |
41044 | all-target-libjava: maybe-all-target-boehm-gc | |
41045 | all-target-libjava: maybe-all-target-qthreads | |
41046 | all-target-libjava: maybe-all-target-libffi | |
ae831be5 | 41047 | all-target-libobjc: maybe-all-target-libiberty |
ae831be5 | 41048 | all-target-libstdc++-v3: maybe-all-target-libiberty |
ae831be5 | 41049 | all-target-libgloss: maybe-configure-target-newlib |
9e6ce191 PB |
41050 | all-target-winsup: maybe-all-target-libiberty |
41051 | all-target-winsup: maybe-all-target-libtermcap | |
41052 | ||
41053 | ||
72b2455a PB |
41054 | # Non-toplevel bootstrap rules must depend on several packages, to be built |
41055 | # before gcc. Another wart that will go away, hopefully soon. | |
9e6ce191 PB |
41056 | @if gcc-no-bootstrap |
41057 | ||
41058 | all-prebootstrap: maybe-all-bfd | |
41059 | all-prebootstrap: maybe-all-opcodes | |
41060 | all-prebootstrap: maybe-all-binutils | |
41061 | all-prebootstrap: maybe-all-gas | |
41062 | all-prebootstrap: maybe-all-intl | |
41063 | all-prebootstrap: maybe-all-ld | |
41064 | all-prebootstrap: maybe-all-libcpp | |
be01d343 | 41065 | all-prebootstrap: maybe-all-libdecnumber |
9e6ce191 PB |
41066 | all-prebootstrap: maybe-all-libiberty |
41067 | all-prebootstrap: maybe-all-zlib | |
41068 | @endif gcc-no-bootstrap | |
41069 | ||
907be67c | 41070 | CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@ |
9e6ce191 | 41071 | GDB_TK = @GDB_TK@ |
907be67c DJ |
41072 | INSTALL_GDB_TK = @INSTALL_GDB_TK@ |
41073 | configure-gdb: $(CONFIGURE_GDB_TK) | |
9e6ce191 | 41074 | all-gdb: $(gdbnlmrequirements) $(GDB_TK) |
907be67c | 41075 | install-gdb: $(INSTALL_GDB_TK) |
907a7241 | 41076 | |
a2cc058a NN |
41077 | # Serialization dependencies. Host configures don't work well in parallel to |
41078 | # each other, due to contention over config.cache. Target configures and | |
41079 | # build configures are similar. | |
41080 | @serialization_dependencies@ | |
41081 | ||
15723a45 NN |
41082 | # -------------------------------- |
41083 | # Regenerating top level configury | |
41084 | # -------------------------------- | |
252b5132 | 41085 | |
14a2a2f1 | 41086 | # Rebuilding Makefile.in, using autogen. |
43be203f | 41087 | AUTOGEN = autogen |
6b784d9f | 41088 | $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def |
43be203f | 41089 | cd $(srcdir) && $(AUTOGEN) Makefile.def |
14a2a2f1 | 41090 | |
a0da8069 | 41091 | # Rebuilding Makefile. |
43be203f AO |
41092 | Makefile: $(srcdir)/Makefile.in config.status |
41093 | CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
41094 | ||
479759c8 | 41095 | config.status: configure |
10ecffb9 | 41096 | CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck |
252b5132 | 41097 | |
a0da8069 | 41098 | # Rebuilding configure. |
43be203f | 41099 | AUTOCONF = autoconf |
6b784d9f | 41100 | $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4 |
43be203f | 41101 | cd $(srcdir) && $(AUTOCONF) |
252b5132 | 41102 | |
3728fade NN |
41103 | # ------------------------------ |
41104 | # Special directives to GNU Make | |
41105 | # ------------------------------ | |
41106 | ||
3728fade NN |
41107 | # Don't pass command-line variables to submakes. |
41108 | .NOEXPORT: | |
41109 | MAKEOVERRIDES= | |
41110 | ||
252b5132 | 41111 | # end of Makefile.in |