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