I think this solves the MAKEINFO and BISON rooting problems.
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991 Cygnus Support
4 #
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 #
19
20 srcdir = .
21
22 prefix = /usr/local
23
24 datadir = $(prefix)/lib
25 bindir = $(prefix)/bin
26 libdir = $(prefix)/lib
27 mandir = $(datadir)/man
28 man1dir = $(mandir)/man1
29 man2dir = $(mandir)/man2
30 man3dir = $(mandir)/man3
31 man4dir = $(mandir)/man4
32 man5dir = $(mandir)/man5
33 man6dir = $(mandir)/man6
34 man7dir = $(mandir)/man7
35 man8dir = $(mandir)/man8
36 man9dir = $(mandir)/man9
37 infodir = $(datadir)/info
38 includedir = $(prefix)/include
39 docdir = $(datadir)/doc
40
41 SHELL = /bin/sh
42
43 INSTALL = install -c
44 INSTALL_PROGRAM = $(INSTALL)
45 INSTALL_DATA = $(INSTALL)
46
47 AR = ar
48 AR_FLAGS = qc
49 RANLIB = ranlib
50
51 BISON = `if [ -d $${rootme}/bison ] ; \
52 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
53 else echo bison -y ; fi`
54
55 MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
56 then echo $${rootme}/texinfo/C/makeinfo ; \
57 else echo makeinfo ; fi`
58
59 SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
60 OTHERS =
61
62 ALL = all.normal
63 INSTALL_TARGET = install.all
64
65 ### for debugging
66 #GCCVERBOSE=-v
67
68
69 #### host and target specific makefile fragments come in here.
70 ###
71
72 .PHONY: all info install-info clean-info
73
74 all: $(ALL)
75
76 info: cfg-paper.info
77 rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
78
79 clean-info:
80 $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
81 rm -f cfg-paper.info
82
83 cfg-paper.info: cfg-paper.texi
84 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
85
86 configure.info: configure.texi
87 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
88
89 install-info: install-info-dirs force
90 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
91 $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
92 $(INSTALL_DATA) configure.info $(infodir)/configure.info
93 $(MAKE) dir.info install-dir.info
94
95 install-dir.info:
96 $(INSTALL_DATA) dir.info $(infodir)/dir.info
97
98 # clib prms
99 # all-gnulib
100 all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
101 all-gas all-gcc all-binutils \
102 all-libg++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
103 all.cross: all-bison all-ld all-gnulib all-gdb
104 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
105
106 clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
107 clean-bison clean-byacc clean-flex clean-ld clean-gas \
108 clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
109 clean-make clean-diff clean-grep clean-rcs clean-gdbm \
110 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
111 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
112
113 install: $(INSTALL_TARGET) $(srcdir)/configure.man
114 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
115
116 install.all: install-dirs install-libiberty install-texinfo \
117 install-binutils install-bison install-byacc install-flex \
118 install-ld install-gas install-gcc install-gnulib \
119 install-readline install-glob install-gdb install-make \
120 install-cvs install-patch install-emacs install-ispell install-fileutils
121 install.cross: install-dirs install-libiberty install-binutils install-bison \
122 install-byacc install-ld install-gas install-gnulib \
123 install-readline install-glob install-gdb
124
125 ### libiberty
126 .PHONY: all-libiberty just-libiberty
127 all-libiberty: just-libiberty
128 just-libiberty: force
129 if [ -d $(unsubdir)/libiberty ] ; then \
130 rootme=`pwd` ; export rootme ; \
131 (cd $(unsubdir)/libiberty$(subdir); \
132 $(MAKE) \
133 "against=$(against)" \
134 "AR=$(AR)" \
135 "AR_FLAGS=$(AR_FLAGS)" \
136 "CC=$(CC)" \
137 "RANLIB=$(RANLIB)" \
138 "LOADLIBES=$(LOADLIBES)" \
139 "LDFLAGS=$(LDFLAGS)" \
140 "BISON=$(BISON)" \
141 "MAKEINFO=$(MAKEINFO)" \
142 all) ; \
143 else \
144 true ; \
145 fi
146
147 clean-libiberty: force
148 if [ -d $(unsubdir)/libiberty ] ; then \
149 rootme=`pwd` ; export rootme ; \
150 (cd $(unsubdir)/libiberty$(subdir); \
151 $(MAKE) \
152 "against=$(against)" \
153 "AR=$(AR)" \
154 "AR_FLAGS=$(AR_FLAGS)" \
155 "CC=$(CC)" \
156 "RANLIB=$(RANLIB)" \
157 "LOADLIBES=$(LOADLIBES)" \
158 "LDFLAGS=$(LDFLAGS)" \
159 "BISON=$(BISON)" \
160 "MAKEINFO=$(MAKEINFO)" \
161 clean) ; \
162 else \
163 true ; \
164 fi
165
166 install-libiberty: force
167 if [ -d $(unsubdir)/libiberty ] ; then \
168 rootme=`pwd` ; export rootme ; \
169 (cd $(unsubdir)/libiberty$(subdir); \
170 $(MAKE) \
171 "against=$(against)" \
172 "AR=$(AR)" \
173 "AR_FLAGS=$(AR_FLAGS)" \
174 "CC=$(CC)" \
175 "RANLIB=$(RANLIB)" \
176 "LOADLIBES=$(LOADLIBES)" \
177 "LDFLAGS=$(LDFLAGS)" \
178 "BISON=$(BISON)" \
179 "MAKEINFO=$(MAKEINFO)" \
180 install) ; \
181 else \
182 true ; \
183 fi
184
185 ### texinfo
186 .PHONY: all-texinfo just-texinfo
187 all-texinfo: just-texinfo
188 just-texinfo: just-libiberty force
189 if [ -d $(unsubdir)/texinfo ] ; then \
190 rootme=`pwd` ; export rootme ; \
191 rootme=`pwd` ; export rootme ; \
192 (cd $(unsubdir)/texinfo$(subdir); \
193 $(MAKE) \
194 "against=$(against)" \
195 "AR=$(AR)" \
196 "AR_FLAGS=$(AR_FLAGS)" \
197 "CC=$(CC)" \
198 "RANLIB=$(RANLIB)" \
199 "LOADLIBES=$(LOADLIBES)" \
200 "LDFLAGS=$(LDFLAGS)" \
201 "BISON=$(BISON)" \
202 "MAKEINFO=$(MAKEINFO)" \
203 all) ; \
204 else \
205 true ; \
206 fi
207
208 clean-texinfo: force
209 if [ -d $(unsubdir)/texinfo ] ; then \
210 rootme=`pwd` ; export rootme ; \
211 (cd $(unsubdir)/texinfo$(subdir); \
212 $(MAKE) \
213 "against=$(against)" \
214 "AR=$(AR)" \
215 "AR_FLAGS=$(AR_FLAGS)" \
216 "CC=$(CC)" \
217 "RANLIB=$(RANLIB)" \
218 "LOADLIBES=$(LOADLIBES)" \
219 "LDFLAGS=$(LDFLAGS)" \
220 "BISON=$(BISON)" \
221 "MAKEINFO=$(MAKEINFO)" \
222 clean) ; \
223 else \
224 true ; \
225 fi
226
227 install-texinfo: force
228 if [ -d $(unsubdir)/texinfo ] ; then \
229 rootme=`pwd` ; export rootme ; \
230 (cd $(unsubdir)/texinfo$(subdir); \
231 $(MAKE) \
232 "against=$(against)" \
233 "AR=$(AR)" \
234 "AR_FLAGS=$(AR_FLAGS)" \
235 "CC=$(CC)" \
236 "RANLIB=$(RANLIB)" \
237 "LOADLIBES=$(LOADLIBES)" \
238 "LDFLAGS=$(LDFLAGS)" \
239 "BISON=$(BISON)" \
240 "MAKEINFO=$(MAKEINFO)" \
241 install) ; \
242 else \
243 true ; \
244 fi
245
246 ### bfd
247 .PHONY: all-bfd just-bfd
248 all-bfd: just-bfd
249 just-bfd: force
250 if [ -d $(unsubdir)/bfd ] ; then \
251 rootme=`pwd` ; export rootme ; \
252 (cd $(unsubdir)/bfd$(subdir); \
253 $(MAKE) \
254 "against=$(against)" \
255 "AR=$(AR)" \
256 "AR_FLAGS=$(AR_FLAGS)" \
257 "CC=$(CC)" \
258 "RANLIB=$(RANLIB)" \
259 "LOADLIBES=$(LOADLIBES)" \
260 "LDFLAGS=$(LDFLAGS)" \
261 "BISON=$(BISON)" \
262 "MAKEINFO=$(MAKEINFO)" \
263 all) ; \
264 else \
265 true ; \
266 fi
267
268 clean-bfd: force
269 if [ -d $(unsubdir)/bfd ] ; then \
270 rootme=`pwd` ; export rootme ; \
271 (cd $(unsubdir)/bfd$(subdir); \
272 $(MAKE) \
273 "against=$(against)" \
274 "AR=$(AR)" \
275 "AR_FLAGS=$(AR_FLAGS)" \
276 "CC=$(CC)" \
277 "RANLIB=$(RANLIB)" \
278 "LOADLIBES=$(LOADLIBES)" \
279 "LDFLAGS=$(LDFLAGS)" \
280 "BISON=$(BISON)" \
281 "MAKEINFO=$(MAKEINFO)" \
282 clean) ; \
283 else \
284 true ; \
285 fi
286
287 install-bfd: force
288 if [ -d $(unsubdir)/bfd ] ; then \
289 rootme=`pwd` ; export rootme ; \
290 (cd $(unsubdir)/bfd$(subdir); \
291 $(MAKE) \
292 "against=$(against)" \
293 "AR=$(AR)" \
294 "AR_FLAGS=$(AR_FLAGS)" \
295 "CC=$(CC)" \
296 "RANLIB=$(RANLIB)" \
297 "LOADLIBES=$(LOADLIBES)" \
298 "LDFLAGS=$(LDFLAGS)" \
299 "BISON=$(BISON)" \
300 "MAKEINFO=$(MAKEINFO)" \
301 install) ; \
302 else \
303 true ; \
304 fi
305
306 ### binutils
307 .PHONY: all-binutils just-binutils
308 all-binutils: just-binutils
309 just-binutils: just-libiberty just-bfd force
310 if [ -d $(unsubdir)/binutils ] ; then \
311 rootme=`pwd` ; export rootme ; \
312 (cd $(unsubdir)/binutils$(subdir); \
313 $(MAKE) \
314 "against=$(against)" \
315 "AR=$(AR)" \
316 "AR_FLAGS=$(AR_FLAGS)" \
317 "CC=$(CC)" \
318 "RANLIB=$(RANLIB)" \
319 "LOADLIBES=$(LOADLIBES)" \
320 "LDFLAGS=$(LDFLAGS)" \
321 "BISON=$(BISON)" \
322 "MAKEINFO=$(MAKEINFO)" \
323 all) ; \
324 else \
325 true ; \
326 fi
327
328 clean-binutils: force
329 if [ -d $(unsubdir)/binutils ] ; then \
330 rootme=`pwd` ; export rootme ; \
331 (cd $(unsubdir)/binutils$(subdir); \
332 $(MAKE) \
333 "against=$(against)" \
334 "AR=$(AR)" \
335 "AR_FLAGS=$(AR_FLAGS)" \
336 "CC=$(CC)" \
337 "RANLIB=$(RANLIB)" \
338 "LOADLIBES=$(LOADLIBES)" \
339 "LDFLAGS=$(LDFLAGS)" \
340 "BISON=$(BISON)" \
341 "MAKEINFO=$(MAKEINFO)" \
342 clean) ; \
343 else \
344 true ; \
345 fi
346
347 install-binutils: force
348 if [ -d $(unsubdir)/binutils ] ; then \
349 rootme=`pwd` ; export rootme ; \
350 (cd $(unsubdir)/binutils$(subdir); \
351 $(MAKE) \
352 "against=$(against)" \
353 "AR=$(AR)" \
354 "AR_FLAGS=$(AR_FLAGS)" \
355 "CC=$(CC)" \
356 "RANLIB=$(RANLIB)" \
357 "LOADLIBES=$(LOADLIBES)" \
358 "LDFLAGS=$(LDFLAGS)" \
359 "BISON=$(BISON)" \
360 "MAKEINFO=$(MAKEINFO)" \
361 install) ; \
362 else \
363 true ; \
364 fi
365
366 ### byacc
367 .PHONY: all-byacc just-byacc
368 all-byacc: just-byacc
369 just-byacc: force
370 if [ -d $(unsubdir)/byacc ] ; then \
371 rootme=`pwd` ; export rootme ; \
372 (cd $(unsubdir)/byacc$(subdir); \
373 $(MAKE) \
374 "against=$(against)" \
375 "AR=$(AR)" \
376 "AR_FLAGS=$(AR_FLAGS)" \
377 "CC=$(CC)" \
378 "RANLIB=$(RANLIB)" \
379 "LOADLIBES=$(LOADLIBES)" \
380 "LDFLAGS=$(LDFLAGS)" \
381 "BISON=$(BISON)" \
382 "MAKEINFO=$(MAKEINFO)" \
383 all) ; \
384 else \
385 true ; \
386 fi
387
388 clean-byacc: force
389 if [ -d $(unsubdir)/byacc ] ; then \
390 rootme=`pwd` ; export rootme ; \
391 (cd $(unsubdir)/byacc$(subdir); \
392 $(MAKE) \
393 "against=$(against)" \
394 "AR=$(AR)" \
395 "AR_FLAGS=$(AR_FLAGS)" \
396 "CC=$(CC)" \
397 "RANLIB=$(RANLIB)" \
398 "LOADLIBES=$(LOADLIBES)" \
399 "LDFLAGS=$(LDFLAGS)" \
400 "BISON=$(BISON)" \
401 "MAKEINFO=$(MAKEINFO)" \
402 clean) ; \
403 else \
404 true ; \
405 fi
406
407 install-byacc: force
408 if [ -d $(unsubdir)/byacc ] ; then \
409 rootme=`pwd` ; export rootme ; \
410 (cd $(unsubdir)/byacc$(subdir); \
411 $(MAKE) \
412 "against=$(against)" \
413 "AR=$(AR)" \
414 "AR_FLAGS=$(AR_FLAGS)" \
415 "CC=$(CC)" \
416 "RANLIB=$(RANLIB)" \
417 "LOADLIBES=$(LOADLIBES)" \
418 "LDFLAGS=$(LDFLAGS)" \
419 "BISON=$(BISON)" \
420 "MAKEINFO=$(MAKEINFO)" \
421 install) ; \
422 else \
423 true ; \
424 fi
425
426 ### bison
427 .PHONY: all-bison just-bison
428 all-bison: just-bison
429 just-bison: just-libiberty force
430 if [ -d $(unsubdir)/bison ] ; then \
431 rootme=`pwd` ; export rootme ; \
432 (cd $(unsubdir)/bison$(subdir); \
433 $(MAKE) \
434 "against=$(against)" \
435 "AR=$(AR)" \
436 "AR_FLAGS=$(AR_FLAGS)" \
437 "CC=$(CC)" \
438 "RANLIB=$(RANLIB)" \
439 "LOADLIBES=$(LOADLIBES)" \
440 "LDFLAGS=$(LDFLAGS)" \
441 "BISON=$(BISON)" \
442 "MAKEINFO=$(MAKEINFO)" \
443 all) ; \
444 else \
445 true ; \
446 fi
447
448 clean-bison: force
449 if [ -d $(unsubdir)/bison ] ; then \
450 rootme=`pwd` ; export rootme ; \
451 (cd $(unsubdir)/bison$(subdir); \
452 $(MAKE) \
453 "against=$(against)" \
454 "AR=$(AR)" \
455 "AR_FLAGS=$(AR_FLAGS)" \
456 "CC=$(CC)" \
457 "RANLIB=$(RANLIB)" \
458 "LOADLIBES=$(LOADLIBES)" \
459 "LDFLAGS=$(LDFLAGS)" \
460 "BISON=$(BISON)" \
461 "MAKEINFO=$(MAKEINFO)" \
462 clean) ; \
463 else \
464 true ; \
465 fi
466
467 install-bison: force
468 if [ -d $(unsubdir)/bison ] ; then \
469 rootme=`pwd` ; export rootme ; \
470 (cd $(unsubdir)/bison$(subdir); \
471 $(MAKE) \
472 "against=$(against)" \
473 "AR=$(AR)" \
474 "AR_FLAGS=$(AR_FLAGS)" \
475 "CC=$(CC)" \
476 "RANLIB=$(RANLIB)" \
477 "LOADLIBES=$(LOADLIBES)" \
478 "LDFLAGS=$(LDFLAGS)" \
479 "BISON=$(BISON)" \
480 "MAKEINFO=$(MAKEINFO)" \
481 install) ; \
482 else \
483 true ; \
484 fi
485
486 ### gcc
487 .PHONY: all-gcc just-gcc
488 all-gcc: just-gcc
489 #just-gcc: just-libiberty just-bison just-gnulib1 force
490 just-gcc: just-libiberty just-bison just-gas force
491 if [ -d $(unsubdir)/gcc ] ; then \
492 rootme=`pwd` ; export rootme ; \
493 (cd $(unsubdir)/gcc$(subdir); \
494 $(MAKE) \
495 "against=$(against)" \
496 "AR=$(AR)" \
497 "AR_FLAGS=$(AR_FLAGS)" \
498 "CC=$(CC)" \
499 "RANLIB=$(RANLIB)" \
500 "LOADLIBES=$(LOADLIBES)" \
501 "LDFLAGS=$(LDFLAGS)" \
502 "BISON=$(BISON)" \
503 "MAKEINFO=$(MAKEINFO)" \
504 all) ; \
505 else \
506 true ; \
507 fi
508
509 clean-gcc: force
510 if [ -d $(unsubdir)/gcc ] ; then \
511 rootme=`pwd` ; export rootme ; \
512 (cd $(unsubdir)/gcc$(subdir); \
513 $(MAKE) \
514 "against=$(against)" \
515 "AR=$(AR)" \
516 "AR_FLAGS=$(AR_FLAGS)" \
517 "CC=$(CC)" \
518 "RANLIB=$(RANLIB)" \
519 "LOADLIBES=$(LOADLIBES)" \
520 "LDFLAGS=$(LDFLAGS)" \
521 "BISON=$(BISON)" \
522 "MAKEINFO=$(MAKEINFO)" \
523 clean) ; \
524 else \
525 true ; \
526 fi
527
528 install-gcc:
529 if [ -d $(unsubdir)/gcc ] ; then \
530 rootme=`pwd` ; export rootme ; \
531 (cd $(unsubdir)/gcc$(subdir); \
532 $(MAKE) \
533 "against=$(against)" \
534 "AR=$(AR)" \
535 "AR_FLAGS=$(AR_FLAGS)" \
536 "CC=$(CC)" \
537 "RANLIB=$(RANLIB)" \
538 "LOADLIBES=$(LOADLIBES)" \
539 "LDFLAGS=$(LDFLAGS)" \
540 "BISON=$(BISON)" \
541 "MAKEINFO=$(MAKEINFO)" \
542 install) ; \
543 else \
544 true ; \
545 fi
546
547 ### readline
548 .PHONY: all-readline just-readline
549 all-readline: just-readline
550 just-readline: force
551 if [ -d $(unsubdir)/readline ] ; then \
552 rootme=`pwd` ; export rootme ; \
553 (cd $(unsubdir)/readline$(subdir); \
554 $(MAKE) \
555 "against=$(against)" \
556 "AR=$(AR)" \
557 "AR_FLAGS=$(AR_FLAGS)" \
558 "CC=$(CC)" \
559 "RANLIB=$(RANLIB)" \
560 "LOADLIBES=$(LOADLIBES)" \
561 "LDFLAGS=$(LDFLAGS)" \
562 "BISON=$(BISON)" \
563 "MAKEINFO=$(MAKEINFO)" \
564 all) ; \
565 else \
566 true ; \
567 fi
568
569 clean-readline: force
570 if [ -d $(unsubdir)/readline ] ; then \
571 rootme=`pwd` ; export rootme ; \
572 (cd $(unsubdir)/readline$(subdir); \
573 $(MAKE) \
574 "against=$(against)" \
575 "AR=$(AR)" \
576 "AR_FLAGS=$(AR_FLAGS)" \
577 "CC=$(CC)" \
578 "RANLIB=$(RANLIB)" \
579 "LOADLIBES=$(LOADLIBES)" \
580 "LDFLAGS=$(LDFLAGS)" \
581 "BISON=$(BISON)" \
582 "MAKEINFO=$(MAKEINFO)" \
583 clean) ; \
584 else \
585 true ; \
586 fi
587
588 install-readline: force
589 if [ -d $(unsubdir)/readline ] ; then \
590 rootme=`pwd` ; export rootme ; \
591 (cd $(unsubdir)/readline$(subdir); \
592 $(MAKE) \
593 "against=$(against)" \
594 "AR=$(AR)" \
595 "AR_FLAGS=$(AR_FLAGS)" \
596 "CC=$(CC)" \
597 "RANLIB=$(RANLIB)" \
598 "LOADLIBES=$(LOADLIBES)" \
599 "LDFLAGS=$(LDFLAGS)" \
600 "BISON=$(BISON)" \
601 "MAKEINFO=$(MAKEINFO)" \
602 install) ; \
603 else \
604 true ; \
605 fi
606
607 ### glob
608 .PHONY: all-glob just-glob
609 all-glob: just-glob
610 just-glob: force
611 if [ -d $(unsubdir)/glob ] ; then \
612 rootme=`pwd` ; export rootme ; \
613 (cd $(unsubdir)/glob$(subdir); \
614 $(MAKE) \
615 "against=$(against)" \
616 "AR=$(AR)" \
617 "AR_FLAGS=$(AR_FLAGS)" \
618 "CC=$(CC)" \
619 "RANLIB=$(RANLIB)" \
620 "LOADLIBES=$(LOADLIBES)" \
621 "LDFLAGS=$(LDFLAGS)" \
622 "BISON=$(BISON)" \
623 "MAKEINFO=$(MAKEINFO)" \
624 all) ; \
625 else \
626 true ; \
627 fi
628
629 clean-glob: force
630 if [ -d $(unsubdir)/glob ] ; then \
631 rootme=`pwd` ; export rootme ; \
632 (cd $(unsubdir)/glob$(subdir); \
633 $(MAKE) \
634 "against=$(against)" \
635 "AR=$(AR)" \
636 "AR_FLAGS=$(AR_FLAGS)" \
637 "CC=$(CC)" \
638 "RANLIB=$(RANLIB)" \
639 "LOADLIBES=$(LOADLIBES)" \
640 "LDFLAGS=$(LDFLAGS)" \
641 "BISON=$(BISON)" \
642 "MAKEINFO=$(MAKEINFO)" \
643 clean) ; \
644 else \
645 true ; \
646 fi
647
648 install-glob: force
649 if [ -d $(unsubdir)/glob ] ; then \
650 rootme=`pwd` ; export rootme ; \
651 (cd $(unsubdir)/glob$(subdir); \
652 $(MAKE) \
653 "against=$(against)" \
654 "AR=$(AR)" \
655 "AR_FLAGS=$(AR_FLAGS)" \
656 "CC=$(CC)" \
657 "RANLIB=$(RANLIB)" \
658 "LOADLIBES=$(LOADLIBES)" \
659 "LDFLAGS=$(LDFLAGS)" \
660 "BISON=$(BISON)" \
661 "MAKEINFO=$(MAKEINFO)" \
662 install) ; \
663 else \
664 true ; \
665 fi
666
667 ### gas
668 .PHONY: all-gas just-gas
669 all-gas: just-gas
670 just-gas: just-libiberty just-bfd force
671 if [ -d $(unsubdir)/gas ] ; then \
672 rootme=`pwd` ; export rootme ; \
673 (cd $(unsubdir)/gas$(subdir); \
674 $(MAKE) \
675 "against=$(against)" \
676 "AR=$(AR)" \
677 "AR_FLAGS=$(AR_FLAGS)" \
678 "CC=$(CC)" \
679 "RANLIB=$(RANLIB)" \
680 "LOADLIBES=$(LOADLIBES)" \
681 "LDFLAGS=$(LDFLAGS)" \
682 "BISON=$(BISON)" \
683 "MAKEINFO=$(MAKEINFO)" \
684 all) ; \
685 else \
686 true ; \
687 fi
688
689 clean-gas: force
690 if [ -d $(unsubdir)/gas ] ; then \
691 rootme=`pwd` ; export rootme ; \
692 (cd $(unsubdir)/gas$(subdir); \
693 $(MAKE) \
694 "against=$(against)" \
695 "AR=$(AR)" \
696 "AR_FLAGS=$(AR_FLAGS)" \
697 "CC=$(CC)" \
698 "RANLIB=$(RANLIB)" \
699 "LOADLIBES=$(LOADLIBES)" \
700 "LDFLAGS=$(LDFLAGS)" \
701 "BISON=$(BISON)" \
702 "MAKEINFO=$(MAKEINFO)" \
703 clean) ; \
704 else \
705 true ; \
706 fi
707
708 install-gas: force
709 if [ -d $(unsubdir)/gas ] ; then \
710 rootme=`pwd` ; export rootme ; \
711 (cd $(unsubdir)/gas$(subdir); \
712 $(MAKE) \
713 "against=$(against)" \
714 "AR=$(AR)" \
715 "AR_FLAGS=$(AR_FLAGS)" \
716 "CC=$(CC)" \
717 "RANLIB=$(RANLIB)" \
718 "LOADLIBES=$(LOADLIBES)" \
719 "LDFLAGS=$(LDFLAGS)" \
720 "BISON=$(BISON)" \
721 "MAKEINFO=$(MAKEINFO)" \
722 install) ; \
723 else \
724 true ; \
725 fi
726
727 ### ld
728 .PHONY: all-ld just-ld
729 all-ld: just-ld
730 just-ld: just-libiberty just-bfd just-bison force
731 if [ -d $(unsubdir)/ld ] ; then \
732 rootme=`pwd` ; export rootme ; \
733 (cd $(unsubdir)/ld$(subdir); \
734 $(MAKE) \
735 "against=$(against)" \
736 "AR=$(AR)" \
737 "AR_FLAGS=$(AR_FLAGS)" \
738 "CC=$(CC)" \
739 "RANLIB=$(RANLIB)" \
740 "LOADLIBES=$(LOADLIBES)" \
741 "LDFLAGS=$(LDFLAGS)" \
742 "BISON=$(BISON)" \
743 "MAKEINFO=$(MAKEINFO)" \
744 all) ; \
745 else \
746 true ; \
747 fi
748
749 clean-ld: force
750 if [ -d $(unsubdir)/ld ] ; then \
751 rootme=`pwd` ; export rootme ; \
752 (cd $(unsubdir)/ld$(subdir); \
753 $(MAKE) \
754 "against=$(against)" \
755 "AR=$(AR)" \
756 "AR_FLAGS=$(AR_FLAGS)" \
757 "CC=$(CC)" \
758 "RANLIB=$(RANLIB)" \
759 "LOADLIBES=$(LOADLIBES)" \
760 "LDFLAGS=$(LDFLAGS)" \
761 "BISON=$(BISON)" \
762 "MAKEINFO=$(MAKEINFO)" \
763 clean) ; \
764 else \
765 true ; \
766 fi
767
768 install-ld: force
769 if [ -d $(unsubdir)/ld ] ; then \
770 rootme=`pwd` ; export rootme ; \
771 (cd $(unsubdir)/ld$(subdir); \
772 $(MAKE) \
773 "against=$(against)" \
774 "AR=$(AR)" \
775 "AR_FLAGS=$(AR_FLAGS)" \
776 "CC=$(CC)" \
777 "RANLIB=$(RANLIB)" \
778 "LOADLIBES=$(LOADLIBES)" \
779 "LDFLAGS=$(LDFLAGS)" \
780 "BISON=$(BISON)" \
781 "MAKEINFO=$(MAKEINFO)" \
782 install) ; \
783 else \
784 true ; \
785 fi
786
787 ### gnulib (and gnulib1)
788 .PHONY: all-gnulib just-gnulib1 just-gnulib
789 just-gnulib1: all-gas all-binutils force
790 if [ -d $(unsubdir)/gnulib ] ; then \
791 rootme=`pwd` ; export rootme ; \
792 (cd $(unsubdir)/gnulib$(subdir); \
793 $(MAKE) \
794 "against=$(against)" \
795 "AR=$(AR)" \
796 "AR_FLAGS=$(AR_FLAGS)" \
797 "CC=$(CC)" \
798 "RANLIB=$(RANLIB)" \
799 "LOADLIBES=$(LOADLIBES)" \
800 "LDFLAGS=$(LDFLAGS)" \
801 "BISON=$(BISON)" \
802 "MAKEINFO=$(MAKEINFO)" \
803 gnulib1.a) ; \
804 else \
805 true ; \
806 fi
807
808 clean-gnulib1: force
809 if [ -d $(unsubdir)/gnulib ] ; then \
810 rootme=`pwd` ; export rootme ; \
811 (cd $(unsubdir)/gnulib$(subdir); \
812 $(MAKE) \
813 "against=$(against)" \
814 "AR=$(AR)" \
815 "AR_FLAGS=$(AR_FLAGS)" \
816 "CC=$(CC)" \
817 "RANLIB=$(RANLIB)" \
818 "LOADLIBES=$(LOADLIBES)" \
819 "LDFLAGS=$(LDFLAGS)" \
820 "BISON=$(BISON)" \
821 "MAKEINFO=$(MAKEINFO)" \
822 clean-gnulib1) ; \
823 else \
824 true ; \
825 fi
826
827 install-gnulib1: force
828 echo gnulib1 is a component, not an installable target
829
830 all-gnulib: just-gnulib
831 just-gnulib: all-gas all-gcc all-binutils force
832 true
833 if [ -d $(unsubdir)/gnulib ] ; then \
834 rootme=`pwd` ; export rootme ; \
835 (cd $(unsubdir)/gnulib$(subdir); \
836 $(MAKE) \
837 "against=$(against)" \
838 "AR=$(AR)" \
839 "AR_FLAGS=$(AR_FLAGS)" \
840 "CC=$(CC)" \
841 "RANLIB=$(RANLIB)" \
842 "LOADLIBES=$(LOADLIBES)" \
843 "LDFLAGS=$(LDFLAGS)" \
844 "BISON=$(BISON)" \
845 "MAKEINFO=$(MAKEINFO)" \
846 all) ; \
847 else \
848 true ; \
849 fi
850
851 clean-gnulib: force
852 if [ -d $(unsubdir)/gnulib ] ; then \
853 rootme=`pwd` ; export rootme ; \
854 (cd $(unsubdir)/gnulib$(subdir); \
855 $(MAKE) \
856 "against=$(against)" \
857 "AR=$(AR)" \
858 "AR_FLAGS=$(AR_FLAGS)" \
859 "CC=$(CC)" \
860 "RANLIB=$(RANLIB)" \
861 "LOADLIBES=$(LOADLIBES)" \
862 "LDFLAGS=$(LDFLAGS)" \
863 "BISON=$(BISON)" \
864 "MAKEINFO=$(MAKEINFO)" \
865 clean) ; \
866 else \
867 true ; \
868 fi
869
870 install-gnulib: force
871 if [ -d $(unsubdir)/gnulib ] ; then \
872 rootme=`pwd` ; export rootme ; \
873 (cd $(unsubdir)/gnulib$(subdir); \
874 $(MAKE) \
875 "against=$(against)" \
876 "AR=$(AR)" \
877 "AR_FLAGS=$(AR_FLAGS)" \
878 "CC=$(CC)" \
879 "RANLIB=$(RANLIB)" \
880 "LOADLIBES=$(LOADLIBES)" \
881 "LDFLAGS=$(LDFLAGS)" \
882 "BISON=$(BISON)" \
883 "MAKEINFO=$(MAKEINFO)" \
884 install) ; \
885 else \
886 true ; \
887 fi
888
889 ### gdb
890 .PHONY: all-gdb just-gdb
891 all-gdb: just-gdb
892 just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
893 if [ -d $(unsubdir)/gdb ] ; then \
894 rootme=`pwd` ; export rootme ; \
895 (cd $(unsubdir)/gdb$(subdir); \
896 $(MAKE) \
897 "against=$(against)" \
898 "AR=$(AR)" \
899 "AR_FLAGS=$(AR_FLAGS)" \
900 "CC=$(CC)" \
901 "RANLIB=$(RANLIB)" \
902 "LOADLIBES=$(LOADLIBES)" \
903 "LDFLAGS=$(LDFLAGS)" \
904 "BISON=$(BISON)" \
905 "MAKEINFO=$(MAKEINFO)" \
906 all) ; \
907 else \
908 true ; \
909 fi
910
911 clean-gdb: force
912 if [ -d $(unsubdir)/gdb ] ; then \
913 rootme=`pwd` ; export rootme ; \
914 (cd $(unsubdir)/gdb$(subdir); \
915 $(MAKE) \
916 "against=$(against)" \
917 "AR=$(AR)" \
918 "AR_FLAGS=$(AR_FLAGS)" \
919 "CC=$(CC)" \
920 "RANLIB=$(RANLIB)" \
921 "LOADLIBES=$(LOADLIBES)" \
922 "LDFLAGS=$(LDFLAGS)" \
923 "BISON=$(BISON)" \
924 "MAKEINFO=$(MAKEINFO)" \
925 clean) ; \
926 else \
927 true ; \
928 fi
929
930 install-gdb: force
931 if [ -d $(unsubdir)/gdb ] ; then \
932 rootme=`pwd` ; export rootme ; \
933 (cd $(unsubdir)/gdb$(subdir); \
934 $(MAKE) \
935 "against=$(against)" \
936 "AR=$(AR)" \
937 "AR_FLAGS=$(AR_FLAGS)" \
938 "CC=$(CC)" \
939 "RANLIB=$(RANLIB)" \
940 "LOADLIBES=$(LOADLIBES)" \
941 "LDFLAGS=$(LDFLAGS)" \
942 "BISON=$(BISON)" \
943 "MAKEINFO=$(MAKEINFO)" \
944 install) ; \
945 else \
946 true ; \
947 fi
948
949 ### make
950 .PHONY: all-make just-make
951 all-make: just-make
952 just-make: all-libiberty force
953 if [ -d $(unsubdir)/make ] ; then \
954 rootme=`pwd` ; export rootme ; \
955 (cd $(unsubdir)/make$(subdir); \
956 $(MAKE) \
957 "against=$(against)" \
958 "AR=$(AR)" \
959 "AR_FLAGS=$(AR_FLAGS)" \
960 "CC=$(CC)" \
961 "RANLIB=$(RANLIB)" \
962 "LOADLIBES=$(LOADLIBES)" \
963 "LDFLAGS=$(LDFLAGS)" \
964 "BISON=$(BISON)" \
965 "MAKEINFO=$(MAKEINFO)" \
966 all) ; \
967 else \
968 true ; \
969 fi
970
971 clean-make: force
972 if [ -d $(unsubdir)/make ] ; then \
973 rootme=`pwd` ; export rootme ; \
974 (cd $(unsubdir)/make$(subdir); \
975 $(MAKE) \
976 "against=$(against)" \
977 "AR=$(AR)" \
978 "AR_FLAGS=$(AR_FLAGS)" \
979 "CC=$(CC)" \
980 "RANLIB=$(RANLIB)" \
981 "LOADLIBES=$(LOADLIBES)" \
982 "LDFLAGS=$(LDFLAGS)" \
983 "BISON=$(BISON)" \
984 "MAKEINFO=$(MAKEINFO)" \
985 clean) ; \
986 else \
987 true ; \
988 fi
989
990 install-make: force
991 if [ -d $(unsubdir)/make ] ; then \
992 rootme=`pwd` ; export rootme ; \
993 (cd $(unsubdir)/make$(subdir); \
994 $(MAKE) \
995 "against=$(against)" \
996 "AR=$(AR)" \
997 "AR_FLAGS=$(AR_FLAGS)" \
998 "CC=$(CC)" \
999 "RANLIB=$(RANLIB)" \
1000 "LOADLIBES=$(LOADLIBES)" \
1001 "LDFLAGS=$(LDFLAGS)" \
1002 "BISON=$(BISON)" \
1003 "MAKEINFO=$(MAKEINFO)" \
1004 install) ; \
1005 else \
1006 true ; \
1007 fi
1008
1009 ### diff
1010 .PHONY: all-diff just-diff
1011 all-diff: just-diff
1012 just-diff: force
1013 if [ -d $(unsubdir)/diff ] ; then \
1014 rootme=`pwd` ; export rootme ; \
1015 (cd $(unsubdir)/diff$(subdir); \
1016 $(MAKE) \
1017 "against=$(against)" \
1018 "AR=$(AR)" \
1019 "AR_FLAGS=$(AR_FLAGS)" \
1020 "CC=$(CC)" \
1021 "RANLIB=$(RANLIB)" \
1022 "LOADLIBES=$(LOADLIBES)" \
1023 "LDFLAGS=$(LDFLAGS)" \
1024 "BISON=$(BISON)" \
1025 "MAKEINFO=$(MAKEINFO)" \
1026 all) ; \
1027 else \
1028 true ; \
1029 fi
1030
1031 clean-diff: force
1032 if [ -d $(unsubdir)/diff ] ; then \
1033 rootme=`pwd` ; export rootme ; \
1034 (cd $(unsubdir)/diff$(subdir); \
1035 $(MAKE) \
1036 "against=$(against)" \
1037 "AR=$(AR)" \
1038 "AR_FLAGS=$(AR_FLAGS)" \
1039 "CC=$(CC)" \
1040 "RANLIB=$(RANLIB)" \
1041 "LOADLIBES=$(LOADLIBES)" \
1042 "LDFLAGS=$(LDFLAGS)" \
1043 "BISON=$(BISON)" \
1044 "MAKEINFO=$(MAKEINFO)" \
1045 clean) ; \
1046 else \
1047 true ; \
1048 fi
1049
1050 install-diff: force
1051 if [ -d $(unsubdir)/diff ] ; then \
1052 rootme=`pwd` ; export rootme ; \
1053 (cd $(unsubdir)/diff/$(subdir); \
1054 $(MAKE) \
1055 "against=$(against)" \
1056 "AR=$(AR)" \
1057 "AR_FLAGS=$(AR_FLAGS)" \
1058 "CC=$(CC)" \
1059 "RANLIB=$(RANLIB)" \
1060 "LOADLIBES=$(LOADLIBES)" \
1061 "LDFLAGS=$(LDFLAGS)" \
1062 "BISON=$(BISON)" \
1063 "MAKEINFO=$(MAKEINFO)" \
1064 install) ; \
1065 else \
1066 true ; \
1067 fi
1068
1069 ### grep
1070 .PHONY: all-grep just-grep
1071 all-grep: just-grep
1072 just-grep: force
1073 if [ -d $(unsubdir)/grep ] ; then \
1074 rootme=`pwd` ; export rootme ; \
1075 (cd $(unsubdir)/grep$(subdir); \
1076 $(MAKE) \
1077 "against=$(against)" \
1078 "AR=$(AR)" \
1079 "AR_FLAGS=$(AR_FLAGS)" \
1080 "CC=$(CC)" \
1081 "RANLIB=$(RANLIB)" \
1082 "LOADLIBES=$(LOADLIBES)" \
1083 "LDFLAGS=$(LDFLAGS)" \
1084 "BISON=$(BISON)" \
1085 "MAKEINFO=$(MAKEINFO)" \
1086 all) ; \
1087 else \
1088 true ; \
1089 fi
1090
1091 clean-grep: force
1092 if [ -d $(unsubdir)/grep ] ; then \
1093 rootme=`pwd` ; export rootme ; \
1094 (cd $(unsubdir)/grep$(subdir); \
1095 $(MAKE) \
1096 "against=$(against)" \
1097 "AR=$(AR)" \
1098 "AR_FLAGS=$(AR_FLAGS)" \
1099 "CC=$(CC)" \
1100 "RANLIB=$(RANLIB)" \
1101 "LOADLIBES=$(LOADLIBES)" \
1102 "LDFLAGS=$(LDFLAGS)" \
1103 "BISON=$(BISON)" \
1104 "MAKEINFO=$(MAKEINFO)" \
1105 clean) ; \
1106 else \
1107 true ; \
1108 fi
1109
1110 install-grep: force
1111 if [ -d $(unsubdir)/grep ] ; then \
1112 rootme=`pwd` ; export rootme ; \
1113 (cd $(unsubdir)/grep$(subdir); \
1114 $(MAKE) \
1115 "against=$(against)" \
1116 "AR=$(AR)" \
1117 "AR_FLAGS=$(AR_FLAGS)" \
1118 "CC=$(CC)" \
1119 "RANLIB=$(RANLIB)" \
1120 "LOADLIBES=$(LOADLIBES)" \
1121 "LDFLAGS=$(LDFLAGS)" \
1122 "BISON=$(BISON)" \
1123 "MAKEINFO=$(MAKEINFO)" \
1124 install) ; \
1125 else \
1126 true ; \
1127 fi
1128
1129 ### rcs
1130 .PHONY: all-rcs just-rcs
1131 all-rcs: just-rcs
1132 just-rcs: just-diff just-grep force
1133 if [ -d $(unsubdir)/rcs ] ; then \
1134 rootme=`pwd` ; export rootme ; \
1135 (cd $(unsubdir)/rcs$(subdir); \
1136 $(MAKE) \
1137 "against=$(against)" \
1138 "AR=$(AR)" \
1139 "AR_FLAGS=$(AR_FLAGS)" \
1140 "CC=$(CC)" \
1141 "RANLIB=$(RANLIB)" \
1142 "LOADLIBES=$(LOADLIBES)" \
1143 "LDFLAGS=$(LDFLAGS)" \
1144 "BISON=$(BISON)" \
1145 "MAKEINFO=$(MAKEINFO)" \
1146 all) ; \
1147 else \
1148 true ; \
1149 fi
1150
1151 clean-rcs: force
1152 if [ -d $(unsubdir)/rcs ] ; then \
1153 rootme=`pwd` ; export rootme ; \
1154 (cd $(unsubdir)/rcs$(subdir); \
1155 $(MAKE) \
1156 "against=$(against)" \
1157 "AR=$(AR)" \
1158 "AR_FLAGS=$(AR_FLAGS)" \
1159 "CC=$(CC)" \
1160 "RANLIB=$(RANLIB)" \
1161 "LOADLIBES=$(LOADLIBES)" \
1162 "LDFLAGS=$(LDFLAGS)" \
1163 "BISON=$(BISON)" \
1164 "MAKEINFO=$(MAKEINFO)" \
1165 clean) ; \
1166 else \
1167 true ; \
1168 fi
1169
1170 install-rcs: install-grep install-diff force
1171 if [ -d $(unsubdir)/rcs ] ; then \
1172 rootme=`pwd` ; export rootme ; \
1173 (cd $(unsubdir)/rcs$(subdir); \
1174 $(MAKE) \
1175 "against=$(against)" \
1176 "AR=$(AR)" \
1177 "AR_FLAGS=$(AR_FLAGS)" \
1178 "CC=$(CC)" \
1179 "RANLIB=$(RANLIB)" \
1180 "LOADLIBES=$(LOADLIBES)" \
1181 "LDFLAGS=$(LDFLAGS)" \
1182 "BISON=$(BISON)" \
1183 "MAKEINFO=$(MAKEINFO)" \
1184 install) ; \
1185 else \
1186 true ; \
1187 fi
1188
1189 ### gdbm
1190 .PHONY: all-gdbm just-gdbm
1191 all-gdbm: just-gdbm
1192 just-gdbm: force
1193 if [ -d $(unsubdir)/gdbm ] ; then \
1194 rootme=`pwd` ; export rootme ; \
1195 (cd $(unsubdir)/gdbm$(subdir); \
1196 $(MAKE) \
1197 "against=$(against)" \
1198 "AR=$(AR)" \
1199 "AR_FLAGS=$(AR_FLAGS)" \
1200 "CC=$(CC)" \
1201 "RANLIB=$(RANLIB)" \
1202 "LOADLIBES=$(LOADLIBES)" \
1203 "LDFLAGS=$(LDFLAGS)" \
1204 "BISON=$(BISON)" \
1205 "MAKEINFO=$(MAKEINFO)" \
1206 all) ; \
1207 else \
1208 true ; \
1209 fi
1210
1211 clean-gdbm: force
1212 if [ -d $(unsubdir)/gdbm ] ; then \
1213 rootme=`pwd` ; export rootme ; \
1214 (cd $(unsubdir)/gdbm$(subdir); \
1215 $(MAKE) \
1216 "against=$(against)" \
1217 "AR=$(AR)" \
1218 "AR_FLAGS=$(AR_FLAGS)" \
1219 "CC=$(CC)" \
1220 "RANLIB=$(RANLIB)" \
1221 "LOADLIBES=$(LOADLIBES)" \
1222 "LDFLAGS=$(LDFLAGS)" \
1223 "BISON=$(BISON)" \
1224 "MAKEINFO=$(MAKEINFO)" \
1225 clean) ; \
1226 else \
1227 true ; \
1228 fi
1229
1230 install-gdbm: force
1231 if [ -d $(unsubdir)/gdbm ] ; then \
1232 rootme=`pwd` ; export rootme ; \
1233 (cd $(unsubdir)/gdbm$(subdir); \
1234 $(MAKE) \
1235 "against=$(against)" \
1236 "AR=$(AR)" \
1237 "AR_FLAGS=$(AR_FLAGS)" \
1238 "CC=$(CC)" \
1239 "RANLIB=$(RANLIB)" \
1240 "LOADLIBES=$(LOADLIBES)" \
1241 "LDFLAGS=$(LDFLAGS)" \
1242 "BISON=$(BISON)" \
1243 "MAKEINFO=$(MAKEINFO)" \
1244 install) ; \
1245 else \
1246 true ; \
1247 fi
1248
1249 ### cvs
1250 .PHONY: all-cvs just-cvs
1251 all-cvs: just-cvs just-rcs just-grep just-diff
1252 just-cvs: just-gdbm force
1253 if [ -d $(unsubdir)/cvs ] ; then \
1254 rootme=`pwd` ; export rootme ; \
1255 (cd $(unsubdir)/cvs$(subdir); \
1256 $(MAKE) \
1257 "against=$(against)" \
1258 "AR=$(AR)" \
1259 "AR_FLAGS=$(AR_FLAGS)" \
1260 "CC=$(CC)" \
1261 "RANLIB=$(RANLIB)" \
1262 "LOADLIBES=$(LOADLIBES)" \
1263 "LDFLAGS=$(LDFLAGS)" \
1264 "BISON=$(BISON)" \
1265 "MAKEINFO=$(MAKEINFO)" \
1266 all) ; \
1267 else \
1268 true ; \
1269 fi
1270
1271 clean-cvs: clean-gdbm force
1272 if [ -d $(unsubdir)/cvs ] ; then \
1273 rootme=`pwd` ; export rootme ; \
1274 (cd $(unsubdir)/cvs$(subdir); \
1275 $(MAKE) \
1276 "against=$(against)" \
1277 "AR=$(AR)" \
1278 "AR_FLAGS=$(AR_FLAGS)" \
1279 "CC=$(CC)" \
1280 "RANLIB=$(RANLIB)" \
1281 "LOADLIBES=$(LOADLIBES)" \
1282 "LDFLAGS=$(LDFLAGS)" \
1283 "BISON=$(BISON)" \
1284 "MAKEINFO=$(MAKEINFO)" \
1285 clean) ; \
1286 else \
1287 true ; \
1288 fi
1289
1290 install-cvs: install-rcs install-gdbm force
1291 if [ -d $(unsubdir)/cvs ] ; then \
1292 rootme=`pwd` ; export rootme ; \
1293 (cd $(unsubdir)/cvs$(subdir); \
1294 $(MAKE) \
1295 "bindir=$(bindir)" \
1296 "mandir=$(man1dir)" \
1297 "against=$(against)" \
1298 "AR=$(AR)" \
1299 "AR_FLAGS=$(AR_FLAGS)" \
1300 "CC=$(CC)" \
1301 "RANLIB=$(RANLIB)" \
1302 "LOADLIBES=$(LOADLIBES)" \
1303 "LDFLAGS=$(LDFLAGS)" \
1304 "BISON=$(BISON)" \
1305 "MAKEINFO=$(MAKEINFO)" \
1306 install) ; \
1307 else \
1308 true ; \
1309 fi
1310
1311 ### patch
1312 .PHONY: all-patch just-patch
1313 all-patch: just-patch
1314 just-patch: force
1315 if [ -d $(unsubdir)/patch ] ; then \
1316 rootme=`pwd` ; export rootme ; \
1317 (cd $(unsubdir)/patch$(subdir); \
1318 $(MAKE) \
1319 "against=$(against)" \
1320 "AR=$(AR)" \
1321 "AR_FLAGS=$(AR_FLAGS)" \
1322 "CC=$(CC)" \
1323 "RANLIB=$(RANLIB)" \
1324 "LOADLIBES=$(LOADLIBES)" \
1325 "LDFLAGS=$(LDFLAGS)" \
1326 "BISON=$(BISON)" \
1327 "MAKEINFO=$(MAKEINFO)" \
1328 all) ; \
1329 else \
1330 true ; \
1331 fi
1332
1333 clean-patch: force
1334 if [ -d $(unsubdir)/patch ] ; then \
1335 rootme=`pwd` ; export rootme ; \
1336 (cd $(unsubdir)/patch$(subdir); \
1337 $(MAKE) \
1338 "against=$(against)" \
1339 "AR=$(AR)" \
1340 "AR_FLAGS=$(AR_FLAGS)" \
1341 "CC=$(CC)" \
1342 "RANLIB=$(RANLIB)" \
1343 "LOADLIBES=$(LOADLIBES)" \
1344 "LDFLAGS=$(LDFLAGS)" \
1345 "BISON=$(BISON)" \
1346 "MAKEINFO=$(MAKEINFO)" \
1347 clean) ; \
1348 else \
1349 true ; \
1350 fi
1351
1352 install-patch: force
1353 if [ -d $(unsubdir)/patch ] ; then \
1354 rootme=`pwd` ; export rootme ; \
1355 (cd $(unsubdir)/patch$(subdir); \
1356 $(MAKE) \
1357 bindir=$(bindir) \
1358 man1dir=$(man1dir) \
1359 "AR=$(AR)" \
1360 "AR_FLAGS=$(AR_FLAGS)" \
1361 "CC=$(CC)" \
1362 "RANLIB=$(RANLIB)" \
1363 "LOADLIBES=$(LOADLIBES)" \
1364 "LDFLAGS=$(LDFLAGS)" \
1365 "BISON=$(BISON)" \
1366 "MAKEINFO=$(MAKEINFO)" \
1367 install) ; \
1368 else \
1369 true ; \
1370 fi
1371
1372 ### emacs
1373 .PHONY: all-emacs just-emacs
1374 all-emacs: just-emacs
1375 just-emacs: force
1376 if [ -d $(unsubdir)/emacs ] ; then \
1377 rootme=`pwd` ; export rootme ; \
1378 (cd $(unsubdir)/emacs$(subdir); \
1379 $(MAKE) \
1380 "against=$(against)" \
1381 "AR=$(AR)" \
1382 "AR_FLAGS=$(AR_FLAGS)" \
1383 "CC=$(CC)" \
1384 "RANLIB=$(RANLIB)" \
1385 "LOADLIBES=$(LOADLIBES)" \
1386 "LDFLAGS=$(LDFLAGS)" \
1387 "BISON=$(BISON)" \
1388 "MAKEINFO=$(MAKEINFO)" \
1389 all) ; \
1390 else \
1391 true ; \
1392 fi
1393
1394 clean-emacs: force
1395 if [ -d $(unsubdir)/emacs ] ; then \
1396 rootme=`pwd` ; export rootme ; \
1397 (cd $(unsubdir)/emacs$(subdir); \
1398 $(MAKE) \
1399 "against=$(against)" \
1400 "AR=$(AR)" \
1401 "AR_FLAGS=$(AR_FLAGS)" \
1402 "CC=$(CC)" \
1403 "RANLIB=$(RANLIB)" \
1404 "LOADLIBES=$(LOADLIBES)" \
1405 "LDFLAGS=$(LDFLAGS)" \
1406 "BISON=$(BISON)" \
1407 "MAKEINFO=$(MAKEINFO)" \
1408 clean) ; \
1409 else \
1410 true ; \
1411 fi
1412
1413 install-emacs: install-rcs install-gdbm force
1414 if [ -d $(unsubdir)/emacs ] ; then \
1415 rootme=`pwd` ; export rootme ; \
1416 (cd $(unsubdir)/emacs$(subdir); \
1417 $(MAKE) \
1418 "against=$(against)" \
1419 "AR=$(AR)" \
1420 "AR_FLAGS=$(AR_FLAGS)" \
1421 "CC=$(CC)" \
1422 "RANLIB=$(RANLIB)" \
1423 "LOADLIBES=$(LOADLIBES)" \
1424 "LDFLAGS=$(LDFLAGS)" \
1425 "BISON=$(BISON)" \
1426 "MAKEINFO=$(MAKEINFO)" \
1427 install) ; \
1428 else \
1429 true ; \
1430 fi
1431
1432 ### ispell
1433 .PHONY: all-ispell just-ispell
1434 all-ispell: just-ispell
1435 just-ispell: all-emacs force
1436 if [ -d $(unsubdir)/ispell ] ; then \
1437 rootme=`pwd` ; export rootme ; \
1438 (cd $(unsubdir)/ispell$(subdir); \
1439 $(MAKE) \
1440 "against=$(against)" \
1441 "AR=$(AR)" \
1442 "AR_FLAGS=$(AR_FLAGS)" \
1443 "CC=$(CC)" \
1444 "RANLIB=$(RANLIB)" \
1445 "LOADLIBES=$(LOADLIBES)" \
1446 "LDFLAGS=$(LDFLAGS)" \
1447 "BISON=$(BISON)" \
1448 "MAKEINFO=$(MAKEINFO)" \
1449 all) ; \
1450 else \
1451 true ; \
1452 fi
1453
1454 clean-ispell: force
1455 if [ -d $(unsubdir)/ispell ] ; then \
1456 rootme=`pwd` ; export rootme ; \
1457 (cd $(unsubdir)/ispell$(subdir); \
1458 $(MAKE) \
1459 "against=$(against)" \
1460 "AR=$(AR)" \
1461 "AR_FLAGS=$(AR_FLAGS)" \
1462 "CC=$(CC)" \
1463 "RANLIB=$(RANLIB)" \
1464 "LOADLIBES=$(LOADLIBES)" \
1465 "LDFLAGS=$(LDFLAGS)" \
1466 "BISON=$(BISON)" \
1467 "MAKEINFO=$(MAKEINFO)" \
1468 clean) ; \
1469 else \
1470 true ; \
1471 fi
1472
1473 install-ispell: install-rcs install-gdbm force
1474 if [ -d $(unsubdir)/ispell ] ; then \
1475 rootme=`pwd` ; export rootme ; \
1476 (cd $(unsubdir)/ispell$(subdir); \
1477 $(MAKE) \
1478 "against=$(against)" \
1479 "AR=$(AR)" \
1480 "AR_FLAGS=$(AR_FLAGS)" \
1481 "CC=$(CC)" \
1482 "RANLIB=$(RANLIB)" \
1483 "LOADLIBES=$(LOADLIBES)" \
1484 "LDFLAGS=$(LDFLAGS)" \
1485 "BISON=$(BISON)" \
1486 "MAKEINFO=$(MAKEINFO)" \
1487 install) ; \
1488 else \
1489 true ; \
1490 fi
1491
1492 ### flex
1493 .PHONY: all-flex just-flex
1494 all-flex: just-flex
1495 just-flex: force
1496 if [ -d $(unsubdir)/flex ] ; then \
1497 rootme=`pwd` ; export rootme ; \
1498 (cd $(unsubdir)/flex$(subdir); \
1499 $(MAKE) \
1500 "against=$(against)" \
1501 "AR=$(AR)" \
1502 "AR_FLAGS=$(AR_FLAGS)" \
1503 "CC=$(CC)" \
1504 "RANLIB=$(RANLIB)" \
1505 "LOADLIBES=$(LOADLIBES)" \
1506 "LDFLAGS=$(LDFLAGS)" \
1507 "BISON=$(BISON)" \
1508 "MAKEINFO=$(MAKEINFO)" \
1509 all) ; \
1510 else \
1511 true ; \
1512 fi
1513
1514 clean-flex: force
1515 if [ -d $(unsubdir)/flex ] ; then \
1516 rootme=`pwd` ; export rootme ; \
1517 (cd $(unsubdir)/flex$(subdir); \
1518 $(MAKE) \
1519 "against=$(against)" \
1520 "AR=$(AR)" \
1521 "AR_FLAGS=$(AR_FLAGS)" \
1522 "CC=$(CC)" \
1523 "RANLIB=$(RANLIB)" \
1524 "LOADLIBES=$(LOADLIBES)" \
1525 "LDFLAGS=$(LDFLAGS)" \
1526 "BISON=$(BISON)" \
1527 "MAKEINFO=$(MAKEINFO)" \
1528 clean) ; \
1529 else \
1530 true ; \
1531 fi
1532
1533 install-flex: force
1534 if [ -d $(unsubdir)/flex ] ; then \
1535 rootme=`pwd` ; export rootme ; \
1536 (cd $(unsubdir)/flex$(subdir); \
1537 $(MAKE) \
1538 "against=$(against)" \
1539 "AR=$(AR)" \
1540 "AR_FLAGS=$(AR_FLAGS)" \
1541 "CC=$(CC)" \
1542 "RANLIB=$(RANLIB)" \
1543 "LOADLIBES=$(LOADLIBES)" \
1544 "LDFLAGS=$(LDFLAGS)" \
1545 "BISON=$(BISON)" \
1546 "MAKEINFO=$(MAKEINFO)" \
1547 install) ; \
1548 else \
1549 true ; \
1550 fi
1551
1552 ### fileutils
1553 .PHONY: all-fileutils just-fileutils
1554 all-fileutils: just-fileutils
1555 just-fileutils: force
1556 if [ -d $(unsubdir)/fileutils ] ; then \
1557 rootme=`pwd` ; export rootme ; \
1558 (cd $(unsubdir)/fileutils$(subdir); \
1559 $(MAKE) \
1560 "prefix=$(prefix)" \
1561 "datadir=$(datadir)" \
1562 "mandir=$(mandir)" \
1563 "against=$(against)" \
1564 "AR=$(AR)" \
1565 "AR_FLAGS=$(AR_FLAGS)" \
1566 "CC=$(CC)" \
1567 "RANLIB=$(RANLIB)" \
1568 "LOADLIBES=$(LOADLIBES)" \
1569 "LDFLAGS=$(LDFLAGS)" \
1570 "BISON=$(BISON)" \
1571 "MAKEINFO=$(MAKEINFO)" \
1572 all) ; \
1573 else \
1574 true ; \
1575 fi
1576
1577 clean-fileutils: force
1578 if [ -d $(unsubdir)/fileutils ] ; then \
1579 rootme=`pwd` ; export rootme ; \
1580 (cd $(unsubdir)/fileutils$(subdir); \
1581 $(MAKE) \
1582 "prefix=$(prefix)" \
1583 "datadir=$(datadir)" \
1584 "mandir=$(mandir)" \
1585 "against=$(against)" \
1586 "AR=$(AR)" \
1587 "AR_FLAGS=$(AR_FLAGS)" \
1588 "CC=$(CC)" \
1589 "RANLIB=$(RANLIB)" \
1590 "LOADLIBES=$(LOADLIBES)" \
1591 "LDFLAGS=$(LDFLAGS)" \
1592 "BISON=$(BISON)" \
1593 "MAKEINFO=$(MAKEINFO)" \
1594 clean) ; \
1595 else \
1596 true ; \
1597 fi
1598
1599 install-fileutils: force
1600 if [ -d $(unsubdir)/fileutils ] ; then \
1601 rootme=`pwd` ; export rootme ; \
1602 (cd $(unsubdir)/fileutils$(subdir); \
1603 $(MAKE) \
1604 "prefix=$(prefix)" \
1605 "datadir=$(datadir)" \
1606 "mandir=$(mandir)" \
1607 "against=$(against)" \
1608 "AR=$(AR)" \
1609 "AR_FLAGS=$(AR_FLAGS)" \
1610 "CC=$(CC)" \
1611 "RANLIB=$(RANLIB)" \
1612 "LOADLIBES=$(LOADLIBES)" \
1613 "LDFLAGS=$(LDFLAGS)" \
1614 "BISON=$(BISON)" \
1615 "MAKEINFO=$(MAKEINFO)" \
1616 install) ; \
1617 else \
1618 true ; \
1619 fi
1620
1621 ### libg++
1622 .PHONY: all-libg++ just-libg++
1623 all-libg++: just-gas just-ld just-gcc just-make just-libg++
1624 # NOTE! We have added GXX= and XTRAFLAGS to the $(MAKE) line!!!
1625 # and CC == GXX
1626 # Do not clone this one.
1627 just-libg++: just-make force
1628 if [ -d $(unsubdir)/libg++ ] ; then \
1629 rootme=`pwd` ; export rootme ; \
1630 (cd $(unsubdir)/libg++$(subdir); \
1631 $(MAKE) \
1632 GXX=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
1633 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
1634 "XTRAFLAGS=-I"`cd $(unsubdir)/..$(subdir); pwd`/gcc/include\
1635 "prefix=$(prefix)" \
1636 "datadir=$(datadir)" \
1637 "mandir=$(mandir)" \
1638 "against=$(against)" \
1639 "AR=$(AR)" \
1640 "AR_FLAGS=$(AR_FLAGS)" \
1641 CC=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
1642 "RANLIB=$(RANLIB)" \
1643 "LOADLIBES=$(LOADLIBES)" \
1644 "LDFLAGS=$(LDFLAGS)" \
1645 "BISON=$(BISON)" \
1646 "MAKEINFO=$(MAKEINFO)" \
1647 all) ; \
1648 else \
1649 true ; \
1650 fi
1651
1652 clean-libg++: force
1653 if [ -d $(unsubdir)/libg++ ] ; then \
1654 rootme=`pwd` ; export rootme ; \
1655 (cd $(unsubdir)/libg++$(subdir); \
1656 $(MAKE) \
1657 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
1658 "prefix=$(prefix)" \
1659 "datadir=$(datadir)" \
1660 "mandir=$(mandir)" \
1661 "against=$(against)" \
1662 "AR=$(AR)" \
1663 "AR_FLAGS=$(AR_FLAGS)" \
1664 "CC=$(CC)" \
1665 "RANLIB=$(RANLIB)" \
1666 "LOADLIBES=$(LOADLIBES)" \
1667 "LDFLAGS=$(LDFLAGS)" \
1668 "BISON=$(BISON)" \
1669 "MAKEINFO=$(MAKEINFO)" \
1670 clean) ; \
1671 else \
1672 true ; \
1673 fi
1674
1675 install-libg++: force
1676 if [ -d $(unsubdir)/libg++ ] ; then \
1677 rootme=`pwd` ; export rootme ; \
1678 (cd $(unsubdir)/libg++$(subdir); \
1679 $(MAKE) \
1680 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
1681 "prefix=$(prefix)" \
1682 "datadir=$(datadir)" \
1683 "mandir=$(mandir)" \
1684 "against=$(against)" \
1685 "AR=$(AR)" \
1686 "AR_FLAGS=$(AR_FLAGS)" \
1687 "CC=$(CC)" \
1688 "RANLIB=$(RANLIB)" \
1689 "LOADLIBES=$(LOADLIBES)" \
1690 "LDFLAGS=$(LDFLAGS)" \
1691 "BISON=$(BISON)" \
1692 "MAKEINFO=$(MAKEINFO)" \
1693 install) ; \
1694 else \
1695 true ; \
1696 fi
1697
1698 ### other supporting targets
1699 # this is a bad hack.
1700 all.xclib: all.normal
1701 if [ -d clib ] ; then \
1702 (cd clib ; $(MAKE)) ; \
1703 fi
1704
1705 subdir_do: force
1706 for i in $(DODIRS); do \
1707 if [ -f $(unsubdir)/$$i/localenv ] ; then \
1708 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
1709 $(MAKE) \
1710 "against=$(against)" \
1711 "BISON=$(BISON)" \
1712 "MAKEINFO=$(MAKEINFO)" \
1713 $(DO)) ; then true ; \
1714 else exit 1 ; fi ; \
1715 else if [ -d $(unsubdir)/$$i ] ; then \
1716 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
1717 $(MAKE) \
1718 "against=$(against)" \
1719 "AR=$(AR)" \
1720 "AR_FLAGS=$(AR_FLAGS)" \
1721 "CC=$(CC)" \
1722 "RANLIB=$(RANLIB)" \
1723 "LOADLIBES=$(LOADLIBES)" \
1724 "LDFLAGS=$(LDFLAGS)" \
1725 "BISON=$(BISON)" \
1726 "MAKEINFO=$(MAKEINFO)" \
1727 $(DO)) ; then true ; \
1728 else exit 1 ; fi ; \
1729 else true ; fi ; \
1730 fi ; \
1731 done
1732
1733 bootstrap:
1734 $(MAKE) all info
1735 $(MAKE) stage1
1736 $(MAKE) pass "stagepass=stage1"
1737 $(MAKE) stage2
1738 $(MAKE) pass "stagepass=stage2"
1739 $(MAKE) comparison
1740
1741 bootstrap2:
1742 $(MAKE) pass "stagepass=stage1"
1743 $(MAKE) stage2
1744 $(MAKE) pass "stagepass=stage2"
1745 $(MAKE) comparison
1746
1747 bootstrap3:
1748 $(MAKE) pass "stagepass=stage2"
1749 $(MAKE) comparison
1750
1751 pass:
1752 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
1753 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
1754 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
1755 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
1756 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1757 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1758 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
1759 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
1760 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
1761 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1762 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
1763 "LDFLAGS=-nostdlib /lib/crt0.o \
1764 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1765 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
1766
1767
1768 stage1:
1769 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
1770
1771 stage2:
1772 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
1773
1774 stage3:
1775 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
1776
1777 stage4:
1778 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
1779
1780 against=stage2
1781
1782 comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1783
1784 de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1785 de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1786 de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1787 de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
1788
1789 # The "else true" stuff is for Ultrix; the shell returns the exit code
1790 # of the "if" command, if no commands are run in the "then" or "else" part,
1791 # causing Make to quit.
1792
1793 MAKEDIRS= \
1794 $(prefix) \
1795 $(bindir) \
1796 $(libdir) \
1797 $(includedir) \
1798 $(datadir) \
1799 $(docdir) \
1800 $(mandir) \
1801 $(man1dir) \
1802 $(man5dir)
1803
1804 # $(man2dir) \
1805 # $(man3dir) \
1806 # $(man4dir) \
1807 # $(man6dir) \
1808 # $(man7dir) \
1809 # $(man8dir)
1810
1811 install-dirs: force
1812 for i in $(MAKEDIRS) ; do \
1813 echo Making $$i... ; \
1814 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
1815 done
1816
1817 MAKEINFODIRS= \
1818 $(prefix) \
1819 $(infodir)
1820
1821 install-info-dirs: force
1822 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1823 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1824 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1825
1826 dir.info: force
1827 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1828 mv -f dir.info.new dir.info
1829
1830 etags tags: TAGS
1831
1832 TAGS: FORCE
1833 etags `$(MAKE) ls`
1834
1835 ls:
1836 @echo Makefile
1837 @for i in $(SUBDIRS); \
1838 do \
1839 (cd $$i; \
1840 pwd=`pwd`; \
1841 wd=`basename $$pwd`; \
1842 for j in `$(MAKE) ls`; \
1843 do \
1844 echo $$wd/$$j; \
1845 done) \
1846 done
1847
1848 force:
1849
1850 # with the gnu make, this is done automatically.
1851
1852 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1853 $(SHELL) ./config.status
1854
1855 #
1856 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1857
1858 DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
1859 config.sub config configure.man
1860 GDB_SUPPORT_DIRS= bfd include libiberty readline glob
1861 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
1862
1863 setup-dirs: force_update
1864 ./configure sun4
1865 make clean
1866 ./configure -rm sun4
1867 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1868
1869 bfd.ilrt.tar.Z: setup-dirs
1870 rm -f bfd.ilrt.tar.Z
1871 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
1872 | compress -v >bfd.ilrt.tar.Z
1873
1874 gdb.tar.Z: setup-dirs
1875 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1876 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1877
1878 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1879 rm -rf proto-toplev; mkdir proto-toplev
1880 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1881 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1882 ln -s ../$$i . ; \
1883 done)
1884 # Put only one copy (four hard links) of COPYING in the tar file.
1885 rm proto-toplev/bfd/COPYING
1886 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1887 rm proto-toplev/include/COPYING
1888 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1889 rm proto-toplev/readline/COPYING
1890 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1891 # Take out texinfo from configurable dirs
1892 rm proto-toplev/configure.in
1893 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
1894 # Take out glob from buildable dirs
1895 rm proto-toplev/Makefile.in
1896 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
1897 # Take out texinfo from buildable dirs
1898 cp proto-toplev/Makefile.in temp.$$
1899 sed '/^all\.normal: /s/all-texinfo //' <temp.$$ >temp1.$$
1900 sed '/^clean: /s/clean-texinfo //' <temp1.$$ >temp.$$
1901 sed '/^install\.all: /s/install-texinfo //' <temp.$$ >proto-toplev/Makefile.in
1902 rm temp.$$ temp1.$$
1903 mkdir proto-toplev/texinfo
1904 mkdir proto-toplev/texinfo/fsf
1905 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
1906 chmod og=u `find proto-toplev -print`
1907 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1908 echo "==> Making gdb-$$VER.tar.Z"; \
1909 ln -s proto-toplev gdb-$$VER; \
1910 tar cfh - gdb-$$VER \
1911 | compress -v >gdb-$$VER.tar.Z)
1912
1913 force_update:
1914
1915 nothing:
1916
1917 # end of Makefile.in
This page took 0.072859 seconds and 5 git commands to generate.