Commit | Line | Data |
---|---|---|
eb02fd64 | 1 | # |
131a3881 | 2 | # Makefile for directory with subdirs to build. |
7fcfdcf7 | 3 | # Copyright (C) 1990, 1991, 1992 Free Software Foundation |
eb02fd64 | 4 | # |
4dfe09da RP |
5 | # This file is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
18 | # | |
f149eb99 | 19 | |
eb02fd64 | 20 | srcdir = . |
28f3b094 | 21 | |
4d714963 | 22 | prefix = /usr/local |
eb02fd64 | 23 | |
7fcfdcf7 SC |
24 | exec_prefix = $(prefix) |
25 | bindir = $(exec_prefix)/bin | |
26 | libdir = $(exec_prefix)/lib | |
2198e4ba | 27 | tooldir = $(libdir) |
7fcfdcf7 | 28 | |
51489233 ILT |
29 | program_transform_name = |
30 | ||
4d714963 | 31 | datadir = $(prefix)/lib |
7fcfdcf7 | 32 | mandir = $(prefix)/man |
4d714963 RP |
33 | man1dir = $(mandir)/man1 |
34 | man2dir = $(mandir)/man2 | |
35 | man3dir = $(mandir)/man3 | |
36 | man4dir = $(mandir)/man4 | |
37 | man5dir = $(mandir)/man5 | |
38 | man6dir = $(mandir)/man6 | |
39 | man7dir = $(mandir)/man7 | |
40 | man8dir = $(mandir)/man8 | |
41 | man9dir = $(mandir)/man9 | |
7fcfdcf7 | 42 | infodir = $(prefix)/info |
4d714963 RP |
43 | includedir = $(prefix)/include |
44 | docdir = $(datadir)/doc | |
45 | ||
46 | SHELL = /bin/sh | |
47 | ||
48 | INSTALL = install -c | |
49 | INSTALL_PROGRAM = $(INSTALL) | |
50 | INSTALL_DATA = $(INSTALL) | |
3c8735af | 51 | |
440868a0 | 52 | AS = as |
ec342d7d | 53 | AR = ar |
ba8abfce | 54 | AR_FLAGS = qc |
f8a6ad66 | 55 | CFLAGS = -g |
fca4f908 | 56 | C++FLAGS = -g -O |
4d714963 | 57 | RANLIB = ranlib |
51489233 | 58 | NM = nm |
eb02fd64 | 59 | |
98a33b6d | 60 | BISON = `if [ -f $${rootme}/byacc/byacc ] ; \ |
06a07944 RP |
61 | then echo $${rootme}/byacc/byacc ; \ |
62 | else echo bison -y ; \ | |
06a07944 | 63 | fi` |
2645fb0c | 64 | |
98a33b6d | 65 | LEX = `if [ -f $${rootme}/flex/flex ] ; \ |
8b361a95 | 66 | then echo $${rootme}/flex/flex ; \ |
2198e4ba MT |
67 | else echo flex ; fi` |
68 | ||
98a33b6d | 69 | MAKEINFO = `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \ |
77806c3e RP |
70 | then echo $${rootme}/texinfo/C/makeinfo ; \ |
71 | else echo makeinfo ; fi` | |
b772d75e | 72 | |
440868a0 ILT |
73 | # C compiler to use to create programs which must be run in the build |
74 | # environment. | |
75 | CC_FOR_BUILD = $(CC) | |
fca4f908 | 76 | C++_FOR_BUILD = gcc |
440868a0 | 77 | |
fca4f908 | 78 | SUBDIRS = libiberty mmalloc glob readline opcodes bfd gdb binutils ld gas tgas gcc libg++ newlib deja-gnu |
6a3958b2 RP |
79 | OTHERS = |
80 | ||
a0f47eb7 | 81 | ALL = all.normal |
b26ff9d8 | 82 | INSTALL_TARGET = install.all |
fb660409 RP |
83 | |
84 | ### for debugging | |
85 | #GCCVERBOSE=-v | |
86 | ||
51489233 ILT |
87 | CC_FOR_TARGET = ` \ |
88 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
89 | echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \ | |
90 | else \ | |
91 | if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \ | |
92 | echo $(CC); \ | |
93 | else \ | |
94 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
95 | fi; \ | |
96 | fi` | |
97 | ||
fca4f908 MW |
98 | C++_FOR_TARGET = ` \ |
99 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
100 | echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \ | |
101 | else \ | |
102 | if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \ | |
103 | echo gcc; \ | |
104 | else \ | |
105 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
106 | fi; \ | |
107 | fi` | |
108 | ||
440868a0 ILT |
109 | AS_FOR_TARGET = ` \ |
110 | if [ -f $${rootme}/gas/Makefile ] ; then \ | |
111 | echo $${rootme}/gas/as.new ; \ | |
112 | else \ | |
113 | if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \ | |
114 | echo $(AS); \ | |
115 | else \ | |
116 | t='$(program_transform_name)'; echo as | sed -e '' $$t ; \ | |
117 | fi \ | |
118 | fi` | |
119 | ||
51489233 ILT |
120 | AR_FOR_TARGET = ` \ |
121 | if [ -f $${rootme}/binutils/Makefile ] ; then \ | |
122 | echo $${rootme}/binutils/ar ; \ | |
123 | else \ | |
124 | if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \ | |
125 | echo $(AR); \ | |
126 | else \ | |
127 | t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \ | |
128 | fi \ | |
129 | fi` | |
130 | ||
131 | RANLIB_FOR_TARGET = ` \ | |
132 | if [ -f $${rootme}/binutils/Makefile ] ; then \ | |
133 | echo $${rootme}/binutils/ranlib ; \ | |
134 | else \ | |
135 | if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \ | |
136 | echo $(RANLIB); \ | |
137 | else \ | |
138 | t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \ | |
139 | fi \ | |
140 | fi` | |
141 | ||
142 | NM_FOR_TARGET = ` \ | |
143 | if [ -f $${rootme}/binutils/Makefile ] ; then \ | |
144 | echo $${rootme}/binutils/nm ; \ | |
145 | else \ | |
146 | if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \ | |
147 | echo $(NM); \ | |
148 | else \ | |
149 | t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \ | |
150 | fi \ | |
151 | fi` | |
152 | ||
153 | XTRAFLAGS = ` \ | |
154 | if [ -f $${rootme}/gcc/Makefile ] ; then \ | |
9d401625 ILT |
155 | if [ -f $${rootme}/newlib/Makefile ] ; then \ |
156 | echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \ | |
51489233 | 157 | else \ |
9d401625 | 158 | echo -I$${rootme}/gcc/include ; \ |
51489233 ILT |
159 | fi ; \ |
160 | else \ | |
161 | echo ; \ | |
162 | fi` | |
23e3e7f9 | 163 | |
eb02fd64 | 164 | #### host and target specific makefile fragments come in here. |
ec342d7d | 165 | ### |
eb02fd64 | 166 | |
51489233 | 167 | # Flags to pass down to sub-makes |
2198e4ba MT |
168 | FLAGS_TO_PASS = \ |
169 | "prefix=$(prefix)" \ | |
170 | "exec_prefix=$(exec_prefix)" \ | |
171 | "tooldir=$(tooldir)" \ | |
172 | "AR=$(AR)" \ | |
173 | "AR_FLAGS=$(AR_FLAGS)" \ | |
174 | "CC=$(CC)" \ | |
175 | "CFLAGS=$(CFLAGS)" \ | |
fca4f908 | 176 | "C++FLAGS=$(C++FLAGS)" \ |
2198e4ba MT |
177 | "RANLIB=$(RANLIB)" \ |
178 | "LOADLIBES=$(LOADLIBES)" \ | |
179 | "LDFLAGS=$(LDFLAGS)" \ | |
180 | "BISON=$(BISON)" \ | |
181 | "LEX=$(LEX)" \ | |
182 | "MAKEINFO=$(MAKEINFO)" \ | |
183 | "INSTALL=$(INSTALL)" \ | |
184 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
440868a0 | 185 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
fca4f908 MW |
186 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
187 | "C++_FOR_BUILD=$(C++_FOR_BUILD)" | |
2198e4ba | 188 | |
51489233 ILT |
189 | # Flags to pass down to makes which are built with the target |
190 | # environment (e.g. libg++, xiberty, newlib). | |
191 | TARGET_FLAGS_TO_PASS = \ | |
192 | "prefix=$(prefix)" \ | |
193 | "exec_prefix=$(exec_prefix)" \ | |
194 | "tooldir=$(tooldir)" \ | |
195 | "AR_FLAGS=$(AR_FLAGS)" \ | |
196 | "CFLAGS=$(CFLAGS)" \ | |
197 | "LOADLIBES=$(LOADLIBES)" \ | |
198 | "LDFLAGS=$(LDFLAGS)" \ | |
199 | "BISON=$(BISON)" \ | |
200 | "LEX=$(LEX)" \ | |
201 | "MAKEINFO=$(MAKEINFO)" \ | |
202 | "INSTALL=$(INSTALL)" \ | |
203 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
204 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
440868a0 | 205 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
fca4f908 | 206 | "C++_FOR_BUILD=$(C++_FOR_BUILD)" \ |
51489233 | 207 | "CC=$(CC_FOR_TARGET)" \ |
fca4f908 | 208 | "C++=$(C++_FOR_TARGET)" \ |
440868a0 | 209 | "AS=$(AS_FOR_TARGET)" \ |
51489233 ILT |
210 | "AR=$(AR_FOR_TARGET)" \ |
211 | "RANLIB=$(RANLIB_FOR_TARGET)" \ | |
212 | "NM=$(NM_FOR_TARGET)" \ | |
213 | "XTRAFLAGS=$(XTRAFLAGS)" | |
214 | ||
fca4f908 MW |
215 | # The first rule in the file had better be this one. Don't put any above it. |
216 | all: $(ALL) | |
217 | ||
4d714963 | 218 | .PHONY: all info install-info clean-info |
f8a6ad66 | 219 | .NOEXPORT: |
4d714963 | 220 | |
98a33b6d DZ |
221 | info: |
222 | @rootme=`pwd` ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) subdir_do DO=info "DODIRS=$(SUBDIRS)" | |
c5f94070 | 223 | |
2198e4ba | 224 | check: |
51489233 | 225 | @rootme=`pwd` ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) DO=check "DODIRS=$(SUBDIRS)" subdir_do |
7fcfdcf7 | 226 | |
25113b46 | 227 | clean-info: |
51489233 | 228 | @rootme='pwd' ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) DO=clean-info "DODIRS=$(SUBDIRS)" subdir_do |
fb90daeb | 229 | |
9a9e8e7f | 230 | install-info: install-info-dirs force |
8b361a95 SEF |
231 | -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ |
232 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
233 | -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi | |
51489233 ILT |
234 | @rootme='pwd' ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) DO=install-info "DODIRS=$(SUBDIRS)" subdir_do |
235 | @rootme='pwd' ; export rootme ; $(MAKE) $(FLAGS_TO_PASS) dir.info install-dir.info | |
9a9e8e7f RP |
236 | |
237 | install-dir.info: | |
8b361a95 SEF |
238 | -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ |
239 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
240 | -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi | |
9a9e8e7f | 241 | $(INSTALL_DATA) dir.info $(infodir)/dir.info |
4d714963 | 242 | |
618f57a9 | 243 | all.normal: all-autoconf all-libiberty all-mmalloc all-texinfo \ |
868ebe79 MW |
244 | all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \ |
245 | all-gcc all-binutils all-libg++ all-readline all-gdb \ | |
c4fb14b7 | 246 | all-make all-rcs all-cvs all-diff all-grep \ |
98a33b6d | 247 | all-patch all-emacs all-ispell all-etc \ |
fca4f908 | 248 | all-newlib all-gprof all-send_pr all-libm all-deja-gnu |
dcbfc14d | 249 | |
dfa891fc | 250 | all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \ |
868ebe79 | 251 | all-opcodes all-bfd all-readline all-gdb all-binutils all-gcc \ |
fca4f908 | 252 | all-newlib all-deja-gnu |
4d714963 | 253 | |
618f57a9 RP |
254 | clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \ |
255 | clean-bfd clean-newlib clean-binutils clean-flex \ | |
aa06ff7e | 256 | clean-byacc clean-ld clean-gas clean-etc clean-opcodes \ |
dfa891fc | 257 | clean-gcc clean-readline clean-glob clean-gdb \ |
c4fb14b7 | 258 | clean-make clean-diff clean-grep clean-rcs \ |
2198e4ba | 259 | clean-cvs clean-patch clean-emacs clean-ispell \ |
fca4f908 MW |
260 | clean-libg++ clean-gprof clean-send_pr clean-libm clean-xiberty \ |
261 | clean-deja-gnu | |
7fcfdcf7 SC |
262 | -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E |
263 | ||
264 | clean-stamps: | |
c4fb14b7 | 265 | -rm -f all-* |
4d714963 | 266 | |
98a33b6d | 267 | install: $(INSTALL_TARGET) |
8b361a95 SEF |
268 | -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ |
269 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi | |
270 | -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi | |
b26ff9d8 | 271 | |
06a07944 RP |
272 | install.all: install-no-fixedincludes |
273 | @if [ -f ./gcc/Makefile ] ; then \ | |
274 | rootme=`pwd` ; export rootme ; \ | |
275 | (cd ./gcc; \ | |
276 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
277 | else \ | |
278 | true ; \ | |
279 | fi | |
5a63b336 | 280 | |
dfa891fc DZ |
281 | install-no-fixedincludes: install-dirs gcc-no-fixedincludes \ |
282 | install-autoconf \ | |
283 | install-bfd \ | |
284 | install-binutils \ | |
aa06ff7e | 285 | install-opcodes \ |
dfa891fc DZ |
286 | install-byacc \ |
287 | install-cvs \ | |
288 | install-diff \ | |
fca4f908 | 289 | install-deja-gnu \ |
dfa891fc | 290 | install-emacs \ |
98a33b6d | 291 | install-etc \ |
dfa891fc DZ |
292 | install-flex \ |
293 | install-gas \ | |
294 | install-gdb \ | |
295 | install-glob \ | |
296 | install-gprof \ | |
297 | install-grep \ | |
298 | install-ispell \ | |
299 | install-ld \ | |
300 | install-libg++ \ | |
301 | install-libiberty \ | |
302 | install-libm \ | |
303 | install-make \ | |
304 | install-mmalloc \ | |
305 | install-newlib \ | |
306 | install-patch \ | |
307 | install-rcs \ | |
308 | install-readline \ | |
309 | install-send_pr \ | |
310 | install-texinfo | |
311 | ||
06a07944 RP |
312 | gcc-no-fixedincludes: |
313 | @if [ -f ./gcc/Makefile ] ; then \ | |
314 | rootme=`pwd` ; export rootme ; \ | |
315 | (cd ./gcc; \ | |
316 | $(MAKE) $(FLAGS_TO_PASS) install install-man \ | |
317 | "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \ | |
318 | else \ | |
319 | true ; \ | |
320 | fi | |
dcbfc14d DZ |
321 | |
322 | install.cross: install-dirs install-libiberty install-mmalloc \ | |
aa06ff7e | 323 | install-binutils install-opcodes install-byacc install-flex \ |
dfa891fc DZ |
324 | install-ld install-gas install-readline \ |
325 | install-glob install-gdb install-mmalloc \ | |
fca4f908 MW |
326 | install-newlib install-gcc install-etc install-deja-gnu |
327 | ||
328 | ### deja-gnu | |
329 | all-deja-gnu: force | |
330 | @if [ -f ./deja-gnu/Makefile ] ; then \ | |
331 | rootme=`pwd` ; export rootme ; \ | |
332 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
333 | else \ | |
334 | true ; \ | |
335 | fi | |
336 | ||
337 | clean-deja-gnu: force | |
338 | @if [ -f ./deja-gnu/Makefile ] ; then \ | |
339 | rootme=`pwd` ; export rootme ; \ | |
340 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
341 | else \ | |
342 | true ; \ | |
343 | fi | |
344 | ||
345 | install-deja-gnu: force | |
346 | @if [ -f ./deja-gnu/Makefile ] ; then \ | |
347 | rootme=`pwd` ; export rootme ; \ | |
348 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
349 | else \ | |
350 | true ; \ | |
351 | fi | |
23e3e7f9 | 352 | |
618f57a9 RP |
353 | ### autoconf |
354 | all-autoconf: force | |
a5cdd8af | 355 | @if [ -f ./autoconf/Makefile ] ; then \ |
618f57a9 | 356 | rootme=`pwd` ; export rootme ; \ |
a5cdd8af | 357 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
618f57a9 RP |
358 | else \ |
359 | true ; \ | |
360 | fi | |
361 | ||
362 | clean-autoconf: force | |
06a07944 | 363 | @if [ -f ./autoconf/Makefile ] ; then \ |
618f57a9 | 364 | rootme=`pwd` ; export rootme ; \ |
98a33b6d | 365 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
618f57a9 RP |
366 | else \ |
367 | true ; \ | |
368 | fi | |
369 | ||
370 | install-autoconf: force | |
06a07944 | 371 | @if [ -f ./autoconf/Makefile ] ; then \ |
618f57a9 | 372 | rootme=`pwd` ; export rootme ; \ |
98a33b6d DZ |
373 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
374 | else \ | |
375 | true ; \ | |
376 | fi | |
377 | ||
378 | ### etc | |
379 | all-etc: force | |
380 | @if [ -f ./etc/Makefile ] ; then \ | |
381 | rootme=`pwd` ; export rootme ; \ | |
382 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
383 | else \ | |
384 | true ; \ | |
385 | fi | |
386 | ||
387 | clean-etc: force | |
388 | @if [ -f ./etc/Makefile ] ; then \ | |
389 | rootme=`pwd` ; export rootme ; \ | |
390 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
391 | else \ | |
392 | true ; \ | |
393 | fi | |
394 | ||
395 | install-etc: force | |
396 | @if [ -f ./etc/Makefile ] ; then \ | |
397 | rootme=`pwd` ; export rootme ; \ | |
398 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
618f57a9 RP |
399 | else \ |
400 | true ; \ | |
401 | fi | |
402 | ||
4d714963 | 403 | ### libiberty |
c4fb14b7 | 404 | all-libiberty: force |
06a07944 | 405 | @if [ -f ./libiberty/Makefile ] ; then \ |
77806c3e | 406 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 407 | (cd ./libiberty; \ |
2198e4ba | 408 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
409 | else \ |
410 | true ; \ | |
411 | fi | |
4d714963 RP |
412 | |
413 | clean-libiberty: force | |
06a07944 | 414 | @if [ -f ./libiberty/Makefile ] ; then \ |
77806c3e | 415 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 416 | (cd ./libiberty; \ |
2198e4ba | 417 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
418 | else \ |
419 | true ; \ | |
420 | fi | |
4d714963 RP |
421 | |
422 | install-libiberty: force | |
06a07944 | 423 | @if [ -f ./libiberty/Makefile ] ; then \ |
77806c3e | 424 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 425 | (cd ./libiberty; \ |
2198e4ba | 426 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
427 | else \ |
428 | true ; \ | |
429 | fi | |
23e3e7f9 | 430 | |
fb90daeb ME |
431 | ### xiberty |
432 | all-xiberty: all-gcc all-newlib | |
433 | @if [ -f ./xiberty/Makefile ] ; then \ | |
434 | rootme=`pwd` ; export rootme ; \ | |
435 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
436 | (cd ./xiberty; \ | |
437 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
438 | else \ | |
439 | true ; \ | |
440 | fi | |
441 | ||
442 | clean-xiberty: force | |
443 | @if [ -f ./xiberty/Makefile ] ; then \ | |
444 | rootme=`pwd` ; export rootme ; \ | |
445 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
446 | (cd ./xiberty; \ | |
447 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
448 | else \ | |
449 | true ; \ | |
450 | fi | |
451 | ||
452 | install-xiberty: force | |
453 | @if [ -f ./xiberty/Makefile ] ; then \ | |
454 | rootme=`pwd` ; export rootme ; \ | |
455 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ | |
456 | (cd ./xiberty; \ | |
457 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
458 | else \ | |
459 | true ; \ | |
460 | fi | |
461 | ||
66cfe047 | 462 | ### mmalloc |
c4fb14b7 | 463 | all-mmalloc: force |
06a07944 | 464 | @if [ -f ./mmalloc/Makefile ] ; then \ |
66cfe047 SG |
465 | rootme=`pwd` ; export rootme ; \ |
466 | (cd ./mmalloc; \ | |
2198e4ba | 467 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
66cfe047 SG |
468 | else \ |
469 | true ; \ | |
470 | fi | |
66cfe047 SG |
471 | |
472 | clean-mmalloc: force | |
06a07944 | 473 | @if [ -f ./mmalloc/Makefile ] ; then \ |
66cfe047 SG |
474 | rootme=`pwd` ; export rootme ; \ |
475 | (cd ./mmalloc; \ | |
2198e4ba | 476 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
66cfe047 SG |
477 | else \ |
478 | true ; \ | |
479 | fi | |
480 | ||
481 | install-mmalloc: force | |
06a07944 | 482 | @if [ -f ./mmalloc/Makefile ] ; then \ |
66cfe047 SG |
483 | rootme=`pwd` ; export rootme ; \ |
484 | (cd ./mmalloc; \ | |
2198e4ba | 485 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
66cfe047 SG |
486 | else \ |
487 | true ; \ | |
488 | fi | |
489 | ||
4d714963 | 490 | ### texinfo |
c4fb14b7 | 491 | all-texinfo: all-libiberty |
06a07944 | 492 | @if [ -f ./texinfo/Makefile ] ; then \ |
77806c3e | 493 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 494 | (cd ./texinfo; \ |
2198e4ba | 495 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
496 | else \ |
497 | true ; \ | |
498 | fi | |
4d714963 RP |
499 | |
500 | clean-texinfo: force | |
06a07944 | 501 | @if [ -f ./texinfo/Makefile ] ; then \ |
77806c3e | 502 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 503 | (cd ./texinfo; \ |
2198e4ba | 504 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
505 | else \ |
506 | true ; \ | |
507 | fi | |
4d714963 RP |
508 | |
509 | install-texinfo: force | |
06a07944 | 510 | @if [ -f ./texinfo/Makefile ] ; then \ |
77806c3e | 511 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 512 | (cd ./texinfo; \ |
2198e4ba | 513 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
514 | else \ |
515 | true ; \ | |
516 | fi | |
23e3e7f9 | 517 | |
4d714963 | 518 | ### bfd |
c4fb14b7 | 519 | all-bfd: force |
06a07944 | 520 | @if [ -f ./bfd/Makefile ] ; then \ |
77806c3e | 521 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 522 | (cd ./bfd; \ |
2198e4ba | 523 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
524 | else \ |
525 | true ; \ | |
526 | fi | |
4d714963 RP |
527 | |
528 | clean-bfd: force | |
06a07944 | 529 | @if [ -f ./bfd/Makefile ] ; then \ |
77806c3e | 530 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 531 | (cd ./bfd; \ |
2198e4ba | 532 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
533 | else \ |
534 | true ; \ | |
535 | fi | |
4d714963 RP |
536 | |
537 | install-bfd: force | |
06a07944 | 538 | @if [ -f ./bfd/Makefile ] ; then \ |
77806c3e | 539 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 540 | (cd ./bfd; \ |
2198e4ba | 541 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
542 | else \ |
543 | true ; \ | |
544 | fi | |
23e3e7f9 | 545 | |
aa06ff7e SC |
546 | |
547 | ### opcodes | |
548 | all-opcodes: force | |
549 | @if [ -f ./opcodes/Makefile ] ; then \ | |
550 | rootme=`pwd` ; export rootme ; \ | |
a904db53 | 551 | (cd ./opcodes; \ |
aa06ff7e SC |
552 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
553 | else \ | |
554 | true ; \ | |
555 | fi | |
556 | ||
557 | clean-opcodes: force | |
558 | @if [ -f ./opcodes/Makefile ] ; then \ | |
559 | rootme=`pwd` ; export rootme ; \ | |
a904db53 | 560 | (cd ./opcodes; \ |
aa06ff7e SC |
561 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
562 | else \ | |
563 | true ; \ | |
564 | fi | |
565 | ||
566 | install-opcodes: force | |
567 | @if [ -f ./opcodes/Makefile ] ; then \ | |
568 | rootme=`pwd` ; export rootme ; \ | |
a904db53 | 569 | (cd ./opcodes; \ |
aa06ff7e SC |
570 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
571 | else \ | |
572 | true ; \ | |
573 | fi | |
574 | ||
4d714963 | 575 | ### binutils |
aa06ff7e | 576 | all-binutils: all-opcodes all-libiberty all-bfd all-flex |
06a07944 | 577 | @if [ -f ./binutils/Makefile ] ; then \ |
77806c3e | 578 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 579 | (cd ./binutils; \ |
2198e4ba | 580 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
581 | else \ |
582 | true ; \ | |
583 | fi | |
4d714963 RP |
584 | |
585 | clean-binutils: force | |
06a07944 | 586 | @if [ -f ./binutils/Makefile ] ; then \ |
77806c3e | 587 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 588 | (cd ./binutils; \ |
2198e4ba | 589 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
590 | else \ |
591 | true ; \ | |
592 | fi | |
4d714963 RP |
593 | |
594 | install-binutils: force | |
06a07944 | 595 | @if [ -f ./binutils/Makefile ] ; then \ |
77806c3e | 596 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 597 | (cd ./binutils; \ |
2198e4ba | 598 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
7fcfdcf7 SC |
599 | else \ |
600 | true ; \ | |
601 | fi | |
602 | ||
603 | ### newlib | |
51489233 | 604 | all-newlib: all-binutils all-ld all-gas all-gcc |
06a07944 | 605 | @if [ -f ./newlib/Makefile ] ; then \ |
7fcfdcf7 | 606 | rootme=`pwd` ; export rootme ; \ |
51489233 | 607 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 608 | (cd ./newlib; \ |
51489233 | 609 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
7fcfdcf7 SC |
610 | else \ |
611 | true ; \ | |
612 | fi | |
7fcfdcf7 SC |
613 | |
614 | clean-newlib: force | |
06a07944 | 615 | @if [ -f ./newlib/Makefile ] ; then \ |
7fcfdcf7 | 616 | rootme=`pwd` ; export rootme ; \ |
51489233 | 617 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 618 | (cd ./newlib; \ |
51489233 | 619 | $(MAKE) $(TARGET_FLAGS_TO_PASS) clean) ; \ |
7fcfdcf7 SC |
620 | else \ |
621 | true ; \ | |
622 | fi | |
623 | ||
624 | install-newlib: force | |
06a07944 | 625 | @if [ -f ./newlib/Makefile ] ; then \ |
7fcfdcf7 | 626 | rootme=`pwd` ; export rootme ; \ |
51489233 | 627 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 628 | (cd ./newlib; \ |
51489233 | 629 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
630 | else \ |
631 | true ; \ | |
632 | fi | |
23e3e7f9 | 633 | |
9a14a29d | 634 | ### gprof |
c4fb14b7 | 635 | all-gprof: all-libiberty all-bfd |
06a07944 | 636 | @if [ -f ./gprof/Makefile ] ; then \ |
51489233 ILT |
637 | rootme=`pwd` ; export rootme ; \ |
638 | (cd ./gprof; \ | |
639 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
9a14a29d SEF |
640 | else \ |
641 | true ; \ | |
642 | fi | |
9a14a29d SEF |
643 | |
644 | clean-gprof: force | |
06a07944 | 645 | @if [ -f ./gprof/Makefile ] ; then \ |
51489233 ILT |
646 | rootme=`pwd` ; export rootme ; \ |
647 | (cd ./gprof; \ | |
648 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
9a14a29d SEF |
649 | else \ |
650 | true ; \ | |
651 | fi | |
652 | ||
653 | install-gprof: force | |
06a07944 | 654 | @if [ -f ./gprof/Makefile ] ; then \ |
51489233 ILT |
655 | rootme=`pwd` ; export rootme ; \ |
656 | (cd ./gprof; \ | |
657 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
9a14a29d SEF |
658 | else \ |
659 | true ; \ | |
660 | fi | |
661 | ||
4d714963 | 662 | ### byacc |
c4fb14b7 | 663 | all-byacc: force |
06a07944 | 664 | @if [ -f ./byacc/Makefile ] ; then \ |
77806c3e | 665 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 666 | (cd ./byacc; \ |
2198e4ba | 667 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
668 | else \ |
669 | true ; \ | |
670 | fi | |
4d714963 RP |
671 | |
672 | clean-byacc: force | |
06a07944 | 673 | @if [ -f ./byacc/Makefile ] ; then \ |
77806c3e | 674 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 675 | (cd ./byacc; \ |
2198e4ba | 676 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
677 | else \ |
678 | true ; \ | |
679 | fi | |
4d714963 RP |
680 | |
681 | install-byacc: force | |
06a07944 | 682 | @if [ -f ./byacc/Makefile ] ; then \ |
77806c3e | 683 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 684 | (cd ./byacc; \ |
2198e4ba | 685 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
686 | else \ |
687 | true ; \ | |
688 | fi | |
23e3e7f9 | 689 | |
dcbfc14d | 690 | ### flex |
2198e4ba | 691 | all-flex: all-libiberty |
06a07944 | 692 | @if [ -f ./flex/Makefile ] ; then \ |
dcbfc14d DZ |
693 | rootme=`pwd` ; export rootme ; \ |
694 | (cd ./flex; \ | |
2198e4ba | 695 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
dcbfc14d DZ |
696 | else \ |
697 | true ; \ | |
698 | fi | |
699 | ||
700 | clean-flex: force | |
06a07944 | 701 | @if [ -f ./flex/Makefile ] ; then \ |
dcbfc14d DZ |
702 | rootme=`pwd` ; export rootme ; \ |
703 | (cd ./flex; \ | |
2198e4ba | 704 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
dcbfc14d DZ |
705 | else \ |
706 | true ; \ | |
707 | fi | |
708 | ||
709 | install-flex: force | |
06a07944 | 710 | @if [ -f ./flex/Makefile ] ; then \ |
dcbfc14d DZ |
711 | rootme=`pwd` ; export rootme ; \ |
712 | (cd ./flex; \ | |
2198e4ba | 713 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
dcbfc14d DZ |
714 | else \ |
715 | true ; \ | |
716 | fi | |
4d714963 | 717 | ### gcc |
6995fe83 | 718 | all-gcc: all-libiberty all-byacc |
06a07944 | 719 | @if [ -f ./gcc/Makefile ] ; then \ |
77806c3e | 720 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 721 | (cd ./gcc; \ |
2198e4ba | 722 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
723 | else \ |
724 | true ; \ | |
725 | fi | |
4d714963 RP |
726 | |
727 | clean-gcc: force | |
06a07944 | 728 | @if [ -f ./gcc/Makefile ] ; then \ |
77806c3e | 729 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 730 | (cd ./gcc; \ |
2198e4ba | 731 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
732 | else \ |
733 | true ; \ | |
734 | fi | |
4d714963 | 735 | |
c4fb14b7 | 736 | install-gcc: force |
06a07944 | 737 | @if [ -f ./gcc/Makefile ] ; then \ |
77806c3e | 738 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 739 | (cd ./gcc; \ |
2198e4ba | 740 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
741 | else \ |
742 | true ; \ | |
743 | fi | |
23e3e7f9 | 744 | |
4d714963 | 745 | ### readline |
c4fb14b7 | 746 | all-readline: force |
06a07944 | 747 | @if [ -f ./readline/Makefile ] ; then \ |
77806c3e | 748 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 749 | (cd ./readline; \ |
2198e4ba | 750 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
751 | else \ |
752 | true ; \ | |
753 | fi | |
4d714963 RP |
754 | |
755 | clean-readline: force | |
06a07944 | 756 | @if [ -f ./readline/Makefile ] ; then \ |
77806c3e | 757 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 758 | (cd ./readline; \ |
2198e4ba | 759 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
760 | else \ |
761 | true ; \ | |
762 | fi | |
4d714963 RP |
763 | |
764 | install-readline: force | |
06a07944 | 765 | @if [ -f ./readline/Makefile ] ; then \ |
77806c3e | 766 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 767 | (cd ./readline; \ |
2198e4ba | 768 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
769 | else \ |
770 | true ; \ | |
771 | fi | |
23e3e7f9 | 772 | |
4d714963 | 773 | ### glob |
c4fb14b7 | 774 | all-glob: force |
06a07944 | 775 | @if [ -f ./glob/Makefile ] ; then \ |
77806c3e | 776 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 777 | (cd ./glob; \ |
2198e4ba | 778 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
779 | else \ |
780 | true ; \ | |
781 | fi | |
4d714963 RP |
782 | |
783 | clean-glob: force | |
06a07944 | 784 | @if [ -f ./glob/Makefile ] ; then \ |
77806c3e | 785 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 786 | (cd ./glob; \ |
2198e4ba | 787 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
788 | else \ |
789 | true ; \ | |
790 | fi | |
4d714963 RP |
791 | |
792 | install-glob: force | |
06a07944 | 793 | @if [ -f ./glob/Makefile ] ; then \ |
77806c3e | 794 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 795 | (cd ./glob; \ |
2198e4ba | 796 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
797 | else \ |
798 | true ; \ | |
799 | fi | |
23e3e7f9 | 800 | |
4d714963 | 801 | ### gas |
a904db53 | 802 | all-gas: all-libiberty all-opcodes all-bfd |
06a07944 | 803 | @if [ -f ./gas/Makefile ] ; then \ |
77806c3e | 804 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 805 | (cd ./gas; \ |
2198e4ba | 806 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
807 | else \ |
808 | true ; \ | |
809 | fi | |
4d714963 RP |
810 | |
811 | clean-gas: force | |
06a07944 | 812 | @if [ -f ./gas/Makefile ] ; then \ |
77806c3e | 813 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 814 | (cd ./gas; \ |
2198e4ba | 815 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
816 | else \ |
817 | true ; \ | |
818 | fi | |
4d714963 RP |
819 | |
820 | install-gas: force | |
06a07944 | 821 | @if [ -f ./gas/Makefile ] ; then \ |
77806c3e | 822 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 823 | (cd ./gas; \ |
2198e4ba | 824 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
825 | else \ |
826 | true ; \ | |
827 | fi | |
23e3e7f9 | 828 | |
3ad0ef37 SC |
829 | ### gas |
830 | all-tgas: all-libiberty all-bfd | |
831 | @if [ -f ./tgas/Makefile ] ; then \ | |
832 | rootme=`pwd` ; export rootme ; \ | |
833 | (cd ./tgas; \ | |
834 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
835 | else \ | |
836 | true ; \ | |
837 | fi | |
838 | ||
839 | ||
4d714963 | 840 | ### ld |
6995fe83 | 841 | all-ld: all-libiberty all-bfd all-byacc all-flex |
06a07944 | 842 | @if [ -f ./ld/Makefile ] ; then \ |
77806c3e | 843 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 844 | (cd ./ld; \ |
2198e4ba | 845 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
846 | else \ |
847 | true ; \ | |
848 | fi | |
a0f47eb7 | 849 | |
4d714963 | 850 | clean-ld: force |
06a07944 | 851 | @if [ -f ./ld/Makefile ] ; then \ |
77806c3e | 852 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 853 | (cd ./ld; \ |
2198e4ba | 854 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
855 | else \ |
856 | true ; \ | |
857 | fi | |
6a3958b2 | 858 | |
4d714963 | 859 | install-ld: force |
06a07944 | 860 | @if [ -f ./ld/Makefile ] ; then \ |
77806c3e | 861 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 862 | (cd ./ld; \ |
2198e4ba | 863 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
864 | else \ |
865 | true ; \ | |
866 | fi | |
23e3e7f9 | 867 | |
4d714963 | 868 | ### gdb |
a904db53 | 869 | all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc |
06a07944 | 870 | @if [ -f ./gdb/Makefile ] ; then \ |
77806c3e | 871 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 872 | (cd ./gdb; \ |
2198e4ba | 873 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
874 | else \ |
875 | true ; \ | |
876 | fi | |
4d714963 RP |
877 | |
878 | clean-gdb: force | |
06a07944 | 879 | @if [ -f ./gdb/Makefile ] ; then \ |
77806c3e | 880 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 881 | (cd ./gdb; \ |
2198e4ba | 882 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
883 | else \ |
884 | true ; \ | |
885 | fi | |
4d714963 RP |
886 | |
887 | install-gdb: force | |
06a07944 | 888 | @if [ -f ./gdb/Makefile ] ; then \ |
77806c3e | 889 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 890 | (cd ./gdb; \ |
2198e4ba | 891 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
892 | else \ |
893 | true ; \ | |
894 | fi | |
23e3e7f9 | 895 | |
4d714963 | 896 | ### make |
c4fb14b7 | 897 | all-make: all-libiberty |
06a07944 | 898 | @if [ -f ./make/Makefile ] ; then \ |
77806c3e | 899 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 900 | (cd ./make; \ |
2198e4ba | 901 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
902 | else \ |
903 | true ; \ | |
904 | fi | |
4d714963 RP |
905 | |
906 | clean-make: force | |
06a07944 | 907 | @if [ -f ./make/Makefile ] ; then \ |
77806c3e | 908 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 909 | (cd ./make; \ |
2198e4ba | 910 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
911 | else \ |
912 | true ; \ | |
913 | fi | |
4d714963 RP |
914 | |
915 | install-make: force | |
06a07944 | 916 | @if [ -f ./make/Makefile ] ; then \ |
77806c3e | 917 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 918 | (cd ./make; \ |
2198e4ba | 919 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
920 | else \ |
921 | true ; \ | |
922 | fi | |
23e3e7f9 | 923 | |
4d714963 | 924 | ### diff |
c4fb14b7 | 925 | all-diff: force |
06a07944 | 926 | @if [ -f ./diff/Makefile ] ; then \ |
77806c3e | 927 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 928 | (cd ./diff; \ |
2198e4ba | 929 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
930 | else \ |
931 | true ; \ | |
932 | fi | |
4d714963 RP |
933 | |
934 | clean-diff: force | |
06a07944 | 935 | @if [ -f ./diff/Makefile ] ; then \ |
77806c3e | 936 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 937 | (cd ./diff; \ |
2198e4ba | 938 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
939 | else \ |
940 | true ; \ | |
941 | fi | |
4d714963 RP |
942 | |
943 | install-diff: force | |
06a07944 | 944 | @if [ -f ./diff/Makefile ] ; then \ |
77806c3e | 945 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 946 | (cd ./diff/; \ |
2198e4ba | 947 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
948 | else \ |
949 | true ; \ | |
950 | fi | |
23e3e7f9 | 951 | |
4d714963 | 952 | ### grep |
c4fb14b7 | 953 | all-grep: force |
06a07944 | 954 | @if [ -f ./grep/Makefile ] ; then \ |
77806c3e | 955 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 956 | (cd ./grep; \ |
2198e4ba | 957 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
958 | else \ |
959 | true ; \ | |
960 | fi | |
4d714963 RP |
961 | |
962 | clean-grep: force | |
06a07944 | 963 | @if [ -f ./grep/Makefile ] ; then \ |
77806c3e | 964 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 965 | (cd ./grep; \ |
2198e4ba | 966 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
967 | else \ |
968 | true ; \ | |
969 | fi | |
4d714963 RP |
970 | |
971 | install-grep: force | |
06a07944 | 972 | @if [ -f ./grep/Makefile ] ; then \ |
77806c3e | 973 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 974 | (cd ./grep; \ |
2198e4ba MT |
975 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
976 | else \ | |
977 | true ; \ | |
978 | fi | |
979 | ||
980 | ### rcs | |
981 | all-rcs: force | |
06a07944 | 982 | @if [ -f ./rcs/Makefile ] ; then \ |
2198e4ba MT |
983 | rootme=`pwd` ; export rootme ; \ |
984 | (cd ./rcs; \ | |
985 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
b26ff9d8 RP |
986 | else \ |
987 | true ; \ | |
988 | fi | |
4d714963 RP |
989 | |
990 | clean-rcs: force | |
06a07944 | 991 | @if [ -f ./rcs/Makefile ] ; then \ |
77806c3e | 992 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 993 | (cd ./rcs; \ |
2198e4ba | 994 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
995 | else \ |
996 | true ; \ | |
997 | fi | |
4d714963 | 998 | |
c4fb14b7 | 999 | install-rcs: force |
06a07944 | 1000 | @if [ -f ./rcs/Makefile ] ; then \ |
77806c3e | 1001 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1002 | (cd ./rcs; \ |
2198e4ba | 1003 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1004 | else \ |
1005 | true ; \ | |
1006 | fi | |
23e3e7f9 | 1007 | |
4d714963 | 1008 | ### cvs |
c4fb14b7 | 1009 | all-cvs: force |
06a07944 | 1010 | @if [ -f ./cvs/Makefile ] ; then \ |
77806c3e | 1011 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1012 | (cd ./cvs; \ |
2198e4ba | 1013 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1014 | else \ |
1015 | true ; \ | |
1016 | fi | |
4d714963 | 1017 | |
c4fb14b7 | 1018 | clean-cvs: force |
06a07944 | 1019 | @if [ -f ./cvs/Makefile ] ; then \ |
77806c3e | 1020 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1021 | (cd ./cvs; \ |
2198e4ba | 1022 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
1023 | else \ |
1024 | true ; \ | |
1025 | fi | |
4d714963 | 1026 | |
c4fb14b7 | 1027 | install-cvs: force |
06a07944 | 1028 | @if [ -f ./cvs/Makefile ] ; then \ |
77806c3e | 1029 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1030 | (cd ./cvs; \ |
2198e4ba | 1031 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1032 | else \ |
1033 | true ; \ | |
1034 | fi | |
23e3e7f9 | 1035 | |
7c9feeb7 | 1036 | ### patch |
c4fb14b7 | 1037 | all-patch: force |
06a07944 | 1038 | @if [ -f ./patch/Makefile ] ; then \ |
77806c3e | 1039 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1040 | (cd ./patch; \ |
2198e4ba | 1041 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
7c9feeb7 RP |
1042 | else \ |
1043 | true ; \ | |
1044 | fi | |
1045 | ||
c4fb14b7 | 1046 | clean-patch: force |
06a07944 | 1047 | @if [ -f ./patch/Makefile ] ; then \ |
77806c3e | 1048 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1049 | (cd ./patch; \ |
2198e4ba | 1050 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
7c9feeb7 RP |
1051 | else \ |
1052 | true ; \ | |
1053 | fi | |
1054 | ||
c4fb14b7 | 1055 | install-patch: force |
06a07944 | 1056 | @if [ -f ./patch/Makefile ] ; then \ |
77806c3e | 1057 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1058 | (cd ./patch; \ |
2198e4ba | 1059 | $(MAKE) $(FLAGS_TO_PASS) \ |
7c9feeb7 | 1060 | bindir=$(bindir) \ |
2198e4ba | 1061 | man1dir=$(man1dir) install) ; \ |
7c9feeb7 RP |
1062 | else \ |
1063 | true ; \ | |
1064 | fi | |
1065 | ||
4d714963 | 1066 | ### emacs |
c4fb14b7 | 1067 | all-emacs: force |
06a07944 | 1068 | @if [ -f ./emacs/Makefile ] ; then \ |
77806c3e | 1069 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1070 | (cd ./emacs; \ |
2198e4ba | 1071 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1072 | else \ |
1073 | true ; \ | |
1074 | fi | |
4d714963 | 1075 | |
c4fb14b7 | 1076 | clean-emacs: force |
06a07944 | 1077 | @if [ -f ./emacs/Makefile ] ; then \ |
77806c3e | 1078 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1079 | (cd ./emacs; \ |
2198e4ba | 1080 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
1081 | else \ |
1082 | true ; \ | |
1083 | fi | |
4d714963 | 1084 | |
c4fb14b7 | 1085 | install-emacs: force |
06a07944 | 1086 | @if [ -f ./emacs/Makefile ] ; then \ |
77806c3e | 1087 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1088 | (cd ./emacs; \ |
2198e4ba | 1089 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
b26ff9d8 RP |
1090 | else \ |
1091 | true ; \ | |
1092 | fi | |
23e3e7f9 | 1093 | |
4d714963 | 1094 | ### ispell |
c4fb14b7 | 1095 | all-ispell: all-emacs |
06a07944 | 1096 | @if [ -f ./ispell/Makefile ] ; then \ |
77806c3e | 1097 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1098 | (cd ./ispell; \ |
2198e4ba | 1099 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
b26ff9d8 RP |
1100 | else \ |
1101 | true ; \ | |
1102 | fi | |
4d714963 | 1103 | |
c4fb14b7 | 1104 | clean-ispell: force |
06a07944 | 1105 | @if [ -f ./ispell/Makefile ] ; then \ |
77806c3e | 1106 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1107 | (cd ./ispell; \ |
2198e4ba | 1108 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
b26ff9d8 RP |
1109 | else \ |
1110 | true ; \ | |
1111 | fi | |
4d714963 | 1112 | |
c4fb14b7 | 1113 | install-ispell: force |
06a07944 | 1114 | @if [ -f ./ispell/Makefile ] ; then \ |
77806c3e | 1115 | rootme=`pwd` ; export rootme ; \ |
7fcfdcf7 | 1116 | (cd ./ispell; \ |
2198e4ba | 1117 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
079399f6 RP |
1118 | else \ |
1119 | true ; \ | |
1120 | fi | |
23e3e7f9 | 1121 | |
079b2abe | 1122 | ### send_pr |
c4fb14b7 | 1123 | all-send_pr: force |
06a07944 | 1124 | @if [ -f ./send_pr/Makefile ] ; then \ |
079b2abe RP |
1125 | rootme=`pwd` ; export rootme ; \ |
1126 | (cd ./send_pr; \ | |
2198e4ba | 1127 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
079b2abe RP |
1128 | else \ |
1129 | true ; \ | |
1130 | fi | |
079b2abe | 1131 | |
c4fb14b7 | 1132 | clean-send_pr: force |
06a07944 | 1133 | @if [ -f ./send_pr/Makefile ] ; then \ |
079b2abe RP |
1134 | rootme=`pwd` ; export rootme ; \ |
1135 | (cd ./send_pr; \ | |
2198e4ba | 1136 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ |
079b2abe RP |
1137 | else \ |
1138 | true ; \ | |
1139 | fi | |
1140 | ||
c4fb14b7 | 1141 | install-send_pr: force |
06a07944 | 1142 | @if [ -f ./send_pr/Makefile ] ; then \ |
079b2abe RP |
1143 | rootme=`pwd` ; export rootme ; \ |
1144 | (cd ./send_pr; \ | |
2198e4ba | 1145 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
079b2abe RP |
1146 | else \ |
1147 | true ; \ | |
1148 | fi | |
1149 | ||
06a07944 RP |
1150 | ### libm |
1151 | all-libm: force | |
98a33b6d | 1152 | @if [ -f ./libm/Makefile ] ; then \ |
06a07944 RP |
1153 | rootme=`pwd` ; export rootme ; \ |
1154 | (cd ./libm; \ | |
1155 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
1156 | else \ | |
1157 | true ; \ | |
1158 | fi | |
1159 | ||
1160 | clean-libm: force | |
98a33b6d | 1161 | @if [ -f ./libm/Makefile ] ; then \ |
06a07944 RP |
1162 | rootme=`pwd` ; export rootme ; \ |
1163 | (cd ./libm; \ | |
1164 | $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
1165 | else \ | |
1166 | true ; \ | |
1167 | fi | |
1168 | ||
1169 | install-libm: force | |
98a33b6d | 1170 | @if [ -f ./libm/Makefile ] ; then \ |
06a07944 RP |
1171 | rootme=`pwd` ; export rootme ; \ |
1172 | (cd ./libm; \ | |
1173 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
1174 | else \ | |
1175 | true ; \ | |
1176 | fi | |
1177 | ||
ba8abfce | 1178 | ### libg++ |
9d98d2ac | 1179 | |
c4fb14b7 | 1180 | all-libg++: all-gas all-ld all-gcc |
06a07944 | 1181 | @if [ -f ./libg++/Makefile ] ; then \ |
77806c3e | 1182 | rootme=`pwd` ; export rootme ; \ |
51489233 | 1183 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 1184 | (cd ./libg++; \ |
51489233 | 1185 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
ba8abfce JG |
1186 | else \ |
1187 | true ; \ | |
1188 | fi | |
1189 | ||
c4fb14b7 | 1190 | clean-libg++: force |
06a07944 | 1191 | @if [ -f ./libg++/Makefile ] ; then \ |
77806c3e | 1192 | rootme=`pwd` ; export rootme ; \ |
51489233 | 1193 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 1194 | (cd ./libg++; \ |
51489233 | 1195 | $(MAKE) $(TARGET_FLAGS_TO_PASS) clean) ; \ |
ba8abfce JG |
1196 | else \ |
1197 | true ; \ | |
1198 | fi | |
1199 | ||
c4fb14b7 | 1200 | install-libg++: force |
06a07944 | 1201 | @if [ -f ./libg++/Makefile ] ; then \ |
77806c3e | 1202 | rootme=`pwd` ; export rootme ; \ |
51489233 | 1203 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
7fcfdcf7 | 1204 | (cd ./libg++; \ |
51489233 | 1205 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
ba8abfce JG |
1206 | else \ |
1207 | true ; \ | |
1208 | fi | |
23e3e7f9 | 1209 | |
4d714963 | 1210 | ### other supporting targets |
a0f47eb7 SC |
1211 | # this is a bad hack. |
1212 | all.xclib: all.normal | |
98a33b6d | 1213 | if [ -f clib/Makefile ] ; then \ |
2198e4ba | 1214 | (cd clib ; $(MAKE) $(FLAGS_TO_PASS)) ; \ |
a0f47eb7 SC |
1215 | fi |
1216 | ||
02a7ba9a | 1217 | subdir_do: |
1dbe4d41 | 1218 | @for i in $(DODIRS); do \ |
51489233 ILT |
1219 | if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ] ; then \ |
1220 | case $$i in \ | |
1221 | libg++ | xiberty | newlib) \ | |
1222 | if (rootme=`pwd` ; export rootme ; \ | |
1223 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ | |
1224 | cd ./$$i ; \ | |
1225 | $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \ | |
1226 | else exit 1 ; fi \ | |
1227 | ;; \ | |
1228 | *) \ | |
1229 | if (rootme=`pwd` ; export rootme ; \ | |
1230 | cd ./$$i ; \ | |
1231 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ | |
1232 | else exit 1 ; fi \ | |
1233 | ;; \ | |
1234 | esac ; \ | |
1235 | else true ; fi ; \ | |
a01bf1fb | 1236 | done |
eb02fd64 | 1237 | |
abc52b80 JG |
1238 | # The "else true" stuff is for Ultrix; the shell returns the exit code |
1239 | # of the "if" command, if no commands are run in the "then" or "else" part, | |
1240 | # causing Make to quit. | |
4c27527f RP |
1241 | |
1242 | MAKEDIRS= \ | |
4d714963 | 1243 | $(prefix) \ |
7fcfdcf7 | 1244 | $(exec_prefix) \ |
8b361a95 SEF |
1245 | $(tooldir) |
1246 | ||
1247 | # $(bindir) \ | |
1248 | # $(libdir) \ | |
1249 | # $(includedir) \ | |
1250 | # $(datadir) \ | |
1251 | # $(docdir) \ | |
1252 | # $(mandir) \ | |
1253 | # $(man1dir) \ | |
1254 | # $(man5dir) | |
4d714963 RP |
1255 | |
1256 | # $(man2dir) \ | |
1257 | # $(man3dir) \ | |
1258 | # $(man4dir) \ | |
1259 | # $(man6dir) \ | |
1260 | # $(man7dir) \ | |
1261 | # $(man8dir) | |
4c27527f | 1262 | |
02a7ba9a | 1263 | install-dirs: |
4c27527f | 1264 | for i in $(MAKEDIRS) ; do \ |
cd49a4dc | 1265 | echo Making $$i... ; \ |
8b361a95 SEF |
1266 | parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \ |
1267 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \ | |
06a07944 RP |
1268 | if [ ! -d $$i ] ; then \ |
1269 | if mkdir $$i ; then \ | |
1270 | true ; \ | |
1271 | else \ | |
1272 | exit 1 ; \ | |
1273 | fi ; \ | |
1274 | else \ | |
1275 | true ; \ | |
1276 | fi ; \ | |
4c27527f | 1277 | done |
0ec776a5 | 1278 | |
c5f94070 | 1279 | MAKEINFODIRS= \ |
8b361a95 SEF |
1280 | $(prefix) |
1281 | ||
1282 | # $(infodir) | |
c5f94070 | 1283 | |
02a7ba9a | 1284 | install-info-dirs: |
9a9e8e7f | 1285 | if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi |
8b361a95 SEF |
1286 | # if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi |
1287 | # if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi | |
c5f94070 | 1288 | |
02a7ba9a | 1289 | dir.info: |
8b361a95 | 1290 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new |
c466cfab | 1291 | mv -f dir.info.new dir.info |
6b7e5998 | 1292 | |
eb02fd64 RP |
1293 | etags tags: TAGS |
1294 | ||
02a7ba9a | 1295 | TAGS: |
eb02fd64 RP |
1296 | etags `$(MAKE) ls` |
1297 | ||
1298 | ls: | |
1299 | @echo Makefile | |
1300 | @for i in $(SUBDIRS); \ | |
1301 | do \ | |
1302 | (cd $$i; \ | |
1303 | pwd=`pwd`; \ | |
1304 | wd=`basename $$pwd`; \ | |
1305 | for j in `$(MAKE) ls`; \ | |
1306 | do \ | |
1307 | echo $$wd/$$j; \ | |
1308 | done) \ | |
1309 | done | |
1310 | ||
3c81fef5 | 1311 | force: |
eb02fd64 RP |
1312 | |
1313 | # with the gnu make, this is done automatically. | |
1314 | ||
f1eb48b6 | 1315 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
a26878d1 | 1316 | $(SHELL) ./config.status |
eb02fd64 | 1317 | |
11954bf1 JG |
1318 | # |
1319 | # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc | |
1320 | ||
23e3e7f9 | 1321 | DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \ |
fca4f908 MW |
1322 | config.sub config configure.man configure.texi move-if-change \ |
1323 | COPYING.LIB | |
fb90daeb | 1324 | GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob |
abc52b80 | 1325 | GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex |
11954bf1 | 1326 | |
abc52b80 | 1327 | setup-dirs: force_update |
11954bf1 JG |
1328 | ./configure sun4 |
1329 | make clean | |
1330 | ./configure -rm sun4 | |
905bb120 | 1331 | chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print` |
abc52b80 | 1332 | |
abc52b80 JG |
1333 | gdb.tar.Z: setup-dirs |
1334 | (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir) | |
1335 | $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z | |
1336 | ||
1337 | make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex | |
1338 | rm -rf proto-toplev; mkdir proto-toplev | |
1339 | ln -s ../gdb/proto-gdb.dir proto-toplev/gdb | |
1340 | (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \ | |
1341 | ln -s ../$$i . ; \ | |
1342 | done) | |
7c9feeb7 RP |
1343 | # Put only one copy (four hard links) of COPYING in the tar file. |
1344 | rm proto-toplev/bfd/COPYING | |
1345 | ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING | |
1346 | rm proto-toplev/include/COPYING | |
1347 | ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING | |
1348 | rm proto-toplev/readline/COPYING | |
1349 | ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING | |
a3a063a9 JG |
1350 | # Take out texinfo from configurable dirs |
1351 | rm proto-toplev/configure.in | |
1352 | sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in | |
4d714963 RP |
1353 | # Take out glob from buildable dirs |
1354 | rm proto-toplev/Makefile.in | |
6995fe83 SG |
1355 | |
1356 | sed -e '/^SUBDIRS =/s/glob //' \ | |
1357 | -e '/^all\.normal: /s/\all-texinfo //' \ | |
1358 | -e '/^clean: /s/clean-texinfo //' \ | |
1359 | -e '/^install\.all: /s/install-texinfo //' \ | |
1360 | <Makefile.in >proto-toplev/Makefile.in | |
1361 | ||
abc52b80 JG |
1362 | mkdir proto-toplev/texinfo |
1363 | mkdir proto-toplev/texinfo/fsf | |
1364 | ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/ | |
905bb120 | 1365 | chmod og=u `find proto-toplev -print` |
abc52b80 JG |
1366 | (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \ |
1367 | echo "==> Making gdb-$$VER.tar.Z"; \ | |
1368 | ln -s proto-toplev gdb-$$VER; \ | |
1369 | tar cfh - gdb-$$VER \ | |
1370 | | compress -v >gdb-$$VER.tar.Z) | |
1371 | ||
11954bf1 JG |
1372 | force_update: |
1373 | ||
0ec776a5 SC |
1374 | nothing: |
1375 | ||
eb02fd64 | 1376 | # end of Makefile.in |