revised install for dir.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 = qv
49 RANLIB = ranlib
50
51 BISON = `if [ -d $(unsubdir)/../bison ] ; \
52 then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ -y ; \
53 else echo yacc ; fi`
54
55 MAKEINFO = makeinfo
56 FRESHMAKEINFO = `if [ -d $(unsubdir)/../texinfo/C ] ; \
57 then echo \`pwd\`/$(unsubdir)/../texinfo/C$(subdir)/makeinfo ; \
58 else echo echo ; fi`
59
60 #\`(cd $(srcdir)/bison ; \\`pwd\\`)\`
61 SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc gnulib clib
62 OTHERS =
63
64 ALL = all.normal
65 INSTALL_TARGET = install.all
66
67 ### for debugging
68 #GCCVERBOSE=-v
69
70 \f
71 #### host and target specific makefile fragments come in here.
72 ###
73
74 .PHONY: all info install-info clean-info
75
76 all: $(ALL)
77
78 info: doc.info
79 $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
80
81 doc.info: doc.texi
82 $(MAKEINFO) -o doc.info $(srcdir)/doc.texi
83
84 install-info: install-info-dirs force
85 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
86 $(MAKE) dir.info install-dir.info
87
88 install-dir.info:
89 $(INSTALL_DATA) dir.info $(infodir)/dir.info
90
91 # clib prms
92 all.normal: all-texinfo all-bison all-byacc all-ld all-gnulib all-gdb all-make \
93 all-cvs all-emacs all-ispell
94 all.cross: all-bison all-ld all-gnulib all-gdb
95 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
96
97 clean: clean-libiberty clean-texinfo clean-bfd clean-binutils clean-bison \
98 clean-byacc clean-ld clean-gas clean-gcc clean-gnulib clean-readline \
99 clean-glob clean-gdb clean-make clean-diff clean-grep clean-rcs \
100 clean-gdbm clean-cvs clean-emacs clean-ispell
101 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
102
103 install: $(INSTALL_TARGET)
104
105 install.all: install-dirs install-libiberty install-texinfo install-binutils install-bison \
106 install-byacc install-ld install-gas install-gcc install-gnulib \
107 install-readline install-glob install-gdb install-make install-cvs \
108 install-emacs install-ispell
109 install.cross: install-dirs install-libiberty install-binutils install-bison \
110 install-byacc install-ld install-gas install-gnulib \
111 install-readline install-glob install-gdb
112 \f
113 ### libiberty
114 .PHONY: all-libiberty just-libiberty
115 all-libiberty: just-libiberty
116 just-libiberty: force
117 if [ -d $(unsubdir)/libiberty ] ; then \
118 (cd $(unsubdir)/libiberty$(subdir); \
119 $(MAKE) \
120 "against=$(against)" \
121 "AR=$(AR)" \
122 "AR_FLAGS=$(AR_FLAGS)" \
123 "CC=$(CC)" \
124 "RANLIB=$(RANLIB)" \
125 "LOADLIBES=$(LOADLIBES)" \
126 "LDFLAGS=$(LDFLAGS)" \
127 "BISON=$(BISON)" \
128 "MAKEINFO=$(MAKEINFO)" \
129 all) ; \
130 else \
131 true ; \
132 fi
133
134 clean-libiberty: force
135 if [ -d $(unsubdir)/libiberty ] ; then \
136 (cd $(unsubdir)/libiberty$(subdir); \
137 $(MAKE) \
138 "against=$(against)" \
139 "AR=$(AR)" \
140 "AR_FLAGS=$(AR_FLAGS)" \
141 "CC=$(CC)" \
142 "RANLIB=$(RANLIB)" \
143 "LOADLIBES=$(LOADLIBES)" \
144 "LDFLAGS=$(LDFLAGS)" \
145 "BISON=$(BISON)" \
146 "MAKEINFO=$(MAKEINFO)" \
147 clean) ; \
148 else \
149 true ; \
150 fi
151
152 install-libiberty: force
153 if [ -d $(unsubdir)/libiberty ] ; then \
154 (cd $(unsubdir)/libiberty$(subdir); \
155 $(MAKE) \
156 "against=$(against)" \
157 "AR=$(AR)" \
158 "AR_FLAGS=$(AR_FLAGS)" \
159 "CC=$(CC)" \
160 "RANLIB=$(RANLIB)" \
161 "LOADLIBES=$(LOADLIBES)" \
162 "LDFLAGS=$(LDFLAGS)" \
163 "BISON=$(BISON)" \
164 "MAKEINFO=$(MAKEINFO)" \
165 install) ; \
166 else \
167 true ; \
168 fi
169 \f
170 ### texinfo
171 .PHONY: all-texinfo just-texinfo
172 all-texinfo: just-texinfo
173 just-texinfo: just-libiberty force
174 if [ -d $(unsubdir)/texinfo ] ; then \
175 (cd $(unsubdir)/texinfo$(subdir); \
176 $(MAKE) \
177 "against=$(against)" \
178 "AR=$(AR)" \
179 "AR_FLAGS=$(AR_FLAGS)" \
180 "CC=$(CC)" \
181 "RANLIB=$(RANLIB)" \
182 "LOADLIBES=$(LOADLIBES)" \
183 "LDFLAGS=$(LDFLAGS)" \
184 "BISON=$(BISON)" \
185 "MAKEINFO=$(MAKEINFO)" \
186 all) ; \
187 else \
188 true ; \
189 fi
190
191 clean-texinfo: force
192 if [ -d $(unsubdir)/texinfo ] ; then \
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 clean) ; \
205 else \
206 true ; \
207 fi
208
209 install-texinfo: force
210 if [ -d $(unsubdir)/texinfo ] ; then \
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 install) ; \
223 else \
224 true ; \
225 fi
226 \f
227 ### bfd
228 .PHONY: all-bfd just-bfd
229 all-bfd: just-bfd
230 just-bfd: force
231 if [ -d $(unsubdir)/bfd ] ; then \
232 (cd $(unsubdir)/bfd$(subdir); \
233 $(MAKE) \
234 "against=$(against)" \
235 "AR=$(AR)" \
236 "AR_FLAGS=$(AR_FLAGS)" \
237 "CC=$(CC)" \
238 "RANLIB=$(RANLIB)" \
239 "LOADLIBES=$(LOADLIBES)" \
240 "LDFLAGS=$(LDFLAGS)" \
241 "BISON=$(BISON)" \
242 "MAKEINFO=$(MAKEINFO)" \
243 all) ; \
244 else \
245 true ; \
246 fi
247
248 clean-bfd: force
249 if [ -d $(unsubdir)/bfd ] ; then \
250 (cd $(unsubdir)/bfd$(subdir); \
251 $(MAKE) \
252 "against=$(against)" \
253 "AR=$(AR)" \
254 "AR_FLAGS=$(AR_FLAGS)" \
255 "CC=$(CC)" \
256 "RANLIB=$(RANLIB)" \
257 "LOADLIBES=$(LOADLIBES)" \
258 "LDFLAGS=$(LDFLAGS)" \
259 "BISON=$(BISON)" \
260 "MAKEINFO=$(MAKEINFO)" \
261 clean) ; \
262 else \
263 true ; \
264 fi
265
266 install-bfd: force
267 if [ -d $(unsubdir)/bfd ] ; then \
268 (cd $(unsubdir)/bfd$(subdir); \
269 $(MAKE) \
270 "against=$(against)" \
271 "AR=$(AR)" \
272 "AR_FLAGS=$(AR_FLAGS)" \
273 "CC=$(CC)" \
274 "RANLIB=$(RANLIB)" \
275 "LOADLIBES=$(LOADLIBES)" \
276 "LDFLAGS=$(LDFLAGS)" \
277 "BISON=$(BISON)" \
278 "MAKEINFO=$(MAKEINFO)" \
279 install) ; \
280 else \
281 true ; \
282 fi
283 \f
284 ### binutils
285 .PHONY: all-binutils just-binutils
286 all-binutils: just-binutils
287 just-binutils: just-libiberty just-bfd force
288 if [ -d $(unsubdir)/binutils ] ; then \
289 (cd $(unsubdir)/binutils$(subdir); \
290 $(MAKE) \
291 "against=$(against)" \
292 "AR=$(AR)" \
293 "AR_FLAGS=$(AR_FLAGS)" \
294 "CC=$(CC)" \
295 "RANLIB=$(RANLIB)" \
296 "LOADLIBES=$(LOADLIBES)" \
297 "LDFLAGS=$(LDFLAGS)" \
298 "BISON=$(BISON)" \
299 "MAKEINFO=$(MAKEINFO)" \
300 all) ; \
301 else \
302 true ; \
303 fi
304
305 clean-binutils: force
306 if [ -d $(unsubdir)/binutils ] ; then \
307 (cd $(unsubdir)/binutils$(subdir); \
308 $(MAKE) \
309 "against=$(against)" \
310 "AR=$(AR)" \
311 "AR_FLAGS=$(AR_FLAGS)" \
312 "CC=$(CC)" \
313 "RANLIB=$(RANLIB)" \
314 "LOADLIBES=$(LOADLIBES)" \
315 "LDFLAGS=$(LDFLAGS)" \
316 "BISON=$(BISON)" \
317 "MAKEINFO=$(MAKEINFO)" \
318 clean) ; \
319 else \
320 true ; \
321 fi
322
323 install-binutils: force
324 if [ -d $(unsubdir)/binutils ] ; then \
325 (cd $(unsubdir)/binutils$(subdir); \
326 $(MAKE) \
327 "against=$(against)" \
328 "AR=$(AR)" \
329 "AR_FLAGS=$(AR_FLAGS)" \
330 "CC=$(CC)" \
331 "RANLIB=$(RANLIB)" \
332 "LOADLIBES=$(LOADLIBES)" \
333 "LDFLAGS=$(LDFLAGS)" \
334 "BISON=$(BISON)" \
335 "MAKEINFO=$(MAKEINFO)" \
336 install) ; \
337 else \
338 true ; \
339 fi
340 \f
341 ### byacc
342 .PHONY: all-byacc just-byacc
343 all-byacc: just-byacc
344 just-byacc: force
345 if [ -d $(unsubdir)/byacc ] ; then \
346 (cd $(unsubdir)/byacc$(subdir); \
347 $(MAKE) \
348 "against=$(against)" \
349 "AR=$(AR)" \
350 "AR_FLAGS=$(AR_FLAGS)" \
351 "CC=$(CC)" \
352 "RANLIB=$(RANLIB)" \
353 "LOADLIBES=$(LOADLIBES)" \
354 "LDFLAGS=$(LDFLAGS)" \
355 "BISON=$(BISON)" \
356 "MAKEINFO=$(MAKEINFO)" \
357 all) ; \
358 else \
359 true ; \
360 fi
361
362 clean-byacc: force
363 if [ -d $(unsubdir)/byacc ] ; then \
364 (cd $(unsubdir)/byacc$(subdir); \
365 $(MAKE) \
366 "against=$(against)" \
367 "AR=$(AR)" \
368 "AR_FLAGS=$(AR_FLAGS)" \
369 "CC=$(CC)" \
370 "RANLIB=$(RANLIB)" \
371 "LOADLIBES=$(LOADLIBES)" \
372 "LDFLAGS=$(LDFLAGS)" \
373 "BISON=$(BISON)" \
374 "MAKEINFO=$(MAKEINFO)" \
375 clean) ; \
376 else \
377 true ; \
378 fi
379
380 install-byacc: force
381 if [ -d $(unsubdir)/byacc ] ; then \
382 (cd $(unsubdir)/byacc$(subdir); \
383 $(MAKE) \
384 "against=$(against)" \
385 "AR=$(AR)" \
386 "AR_FLAGS=$(AR_FLAGS)" \
387 "CC=$(CC)" \
388 "RANLIB=$(RANLIB)" \
389 "LOADLIBES=$(LOADLIBES)" \
390 "LDFLAGS=$(LDFLAGS)" \
391 "BISON=$(BISON)" \
392 "MAKEINFO=$(MAKEINFO)" \
393 install) ; \
394 else \
395 true ; \
396 fi
397 \f
398 ### bison
399 .PHONY: all-bison just-bison
400 all-bison: just-bison
401 just-bison: just-libiberty force
402 if [ -d $(unsubdir)/bison ] ; then \
403 (cd $(unsubdir)/bison$(subdir); \
404 $(MAKE) \
405 "against=$(against)" \
406 "AR=$(AR)" \
407 "AR_FLAGS=$(AR_FLAGS)" \
408 "CC=$(CC)" \
409 "RANLIB=$(RANLIB)" \
410 "LOADLIBES=$(LOADLIBES)" \
411 "LDFLAGS=$(LDFLAGS)" \
412 "BISON=$(BISON)" \
413 "MAKEINFO=$(MAKEINFO)" \
414 all) ; \
415 else \
416 true ; \
417 fi
418
419 clean-bison: force
420 if [ -d $(unsubdir)/bison ] ; then \
421 (cd $(unsubdir)/bison$(subdir); \
422 $(MAKE) \
423 "against=$(against)" \
424 "AR=$(AR)" \
425 "AR_FLAGS=$(AR_FLAGS)" \
426 "CC=$(CC)" \
427 "RANLIB=$(RANLIB)" \
428 "LOADLIBES=$(LOADLIBES)" \
429 "LDFLAGS=$(LDFLAGS)" \
430 "BISON=$(BISON)" \
431 "MAKEINFO=$(MAKEINFO)" \
432 clean) ; \
433 else \
434 true ; \
435 fi
436
437 install-bison: force
438 if [ -d $(unsubdir)/bison ] ; then \
439 (cd $(unsubdir)/bison$(subdir); \
440 $(MAKE) \
441 "against=$(against)" \
442 "AR=$(AR)" \
443 "AR_FLAGS=$(AR_FLAGS)" \
444 "CC=$(CC)" \
445 "RANLIB=$(RANLIB)" \
446 "LOADLIBES=$(LOADLIBES)" \
447 "LDFLAGS=$(LDFLAGS)" \
448 "BISON=$(BISON)" \
449 "MAKEINFO=$(MAKEINFO)" \
450 install) ; \
451 else \
452 true ; \
453 fi
454 \f
455 ### gcc
456 .PHONY: all-gcc just-gcc
457 all-gcc: just-gcc
458 just-gcc: just-libiberty just-bison force
459 if [ -d $(unsubdir)/gcc ] ; then \
460 (cd $(unsubdir)/gcc$(subdir); \
461 $(MAKE) \
462 "against=$(against)" \
463 "AR=$(AR)" \
464 "AR_FLAGS=$(AR_FLAGS)" \
465 "CC=$(CC)" \
466 "RANLIB=$(RANLIB)" \
467 "LOADLIBES=$(LOADLIBES)" \
468 "LDFLAGS=$(LDFLAGS)" \
469 "BISON=$(BISON)" \
470 "MAKEINFO=$(MAKEINFO)" \
471 all) ; \
472 else \
473 true ; \
474 fi
475
476 clean-gcc: force
477 if [ -d $(unsubdir)/gcc ] ; then \
478 (cd $(unsubdir)/gcc$(subdir); \
479 $(MAKE) \
480 "against=$(against)" \
481 "AR=$(AR)" \
482 "AR_FLAGS=$(AR_FLAGS)" \
483 "CC=$(CC)" \
484 "RANLIB=$(RANLIB)" \
485 "LOADLIBES=$(LOADLIBES)" \
486 "LDFLAGS=$(LDFLAGS)" \
487 "BISON=$(BISON)" \
488 "MAKEINFO=$(MAKEINFO)" \
489 clean) ; \
490 else \
491 true ; \
492 fi
493
494 install-gcc:
495 if [ -d $(unsubdir)/gcc ] ; then \
496 (cd $(unsubdir)/gcc$(subdir); \
497 $(MAKE) \
498 "against=$(against)" \
499 "AR=$(AR)" \
500 "AR_FLAGS=$(AR_FLAGS)" \
501 "CC=$(CC)" \
502 "RANLIB=$(RANLIB)" \
503 "LOADLIBES=$(LOADLIBES)" \
504 "LDFLAGS=$(LDFLAGS)" \
505 "BISON=$(BISON)" \
506 "MAKEINFO=$(MAKEINFO)" \
507 install) ; \
508 else \
509 true ; \
510 fi
511 \f
512 ### readline
513 .PHONY: all-readline just-readline
514 all-readline: just-readline
515 just-readline: force
516 if [ -d $(unsubdir)/readline ] ; then \
517 (cd $(unsubdir)/readline$(subdir); \
518 $(MAKE) \
519 "against=$(against)" \
520 "AR=$(AR)" \
521 "AR_FLAGS=$(AR_FLAGS)" \
522 "CC=$(CC)" \
523 "RANLIB=$(RANLIB)" \
524 "LOADLIBES=$(LOADLIBES)" \
525 "LDFLAGS=$(LDFLAGS)" \
526 "BISON=$(BISON)" \
527 "MAKEINFO=$(MAKEINFO)" \
528 all) ; \
529 else \
530 true ; \
531 fi
532
533 clean-readline: force
534 if [ -d $(unsubdir)/readline ] ; then \
535 (cd $(unsubdir)/readline$(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 clean) ; \
547 else \
548 true ; \
549 fi
550
551 install-readline: force
552 if [ -d $(unsubdir)/readline ] ; then \
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 install) ; \
565 else \
566 true ; \
567 fi
568 \f
569 ### glob
570 .PHONY: all-glob just-glob
571 all-glob: just-glob
572 just-glob: force
573 if [ -d $(unsubdir)/glob ] ; then \
574 (cd $(unsubdir)/glob$(subdir); \
575 $(MAKE) \
576 "against=$(against)" \
577 "AR=$(AR)" \
578 "AR_FLAGS=$(AR_FLAGS)" \
579 "CC=$(CC)" \
580 "RANLIB=$(RANLIB)" \
581 "LOADLIBES=$(LOADLIBES)" \
582 "LDFLAGS=$(LDFLAGS)" \
583 "BISON=$(BISON)" \
584 "MAKEINFO=$(MAKEINFO)" \
585 all) ; \
586 else \
587 true ; \
588 fi
589
590 clean-glob: force
591 if [ -d $(unsubdir)/glob ] ; then \
592 (cd $(unsubdir)/glob$(subdir); \
593 $(MAKE) \
594 "against=$(against)" \
595 "AR=$(AR)" \
596 "AR_FLAGS=$(AR_FLAGS)" \
597 "CC=$(CC)" \
598 "RANLIB=$(RANLIB)" \
599 "LOADLIBES=$(LOADLIBES)" \
600 "LDFLAGS=$(LDFLAGS)" \
601 "BISON=$(BISON)" \
602 "MAKEINFO=$(MAKEINFO)" \
603 clean) ; \
604 else \
605 true ; \
606 fi
607
608 install-glob: force
609 if [ -d $(unsubdir)/glob ] ; then \
610 (cd $(unsubdir)/glob$(subdir); \
611 $(MAKE) \
612 "against=$(against)" \
613 "AR=$(AR)" \
614 "AR_FLAGS=$(AR_FLAGS)" \
615 "CC=$(CC)" \
616 "RANLIB=$(RANLIB)" \
617 "LOADLIBES=$(LOADLIBES)" \
618 "LDFLAGS=$(LDFLAGS)" \
619 "BISON=$(BISON)" \
620 "MAKEINFO=$(MAKEINFO)" \
621 install) ; \
622 else \
623 true ; \
624 fi
625 \f
626 ### gas
627 .PHONY: all-gas just-gas
628 all-gas: just-gas
629 just-gas: just-libiberty just-bfd force
630 if [ -d $(unsubdir)/gas ] ; then \
631 (cd $(unsubdir)/gas$(subdir); \
632 $(MAKE) \
633 "against=$(against)" \
634 "AR=$(AR)" \
635 "AR_FLAGS=$(AR_FLAGS)" \
636 "CC=$(CC)" \
637 "RANLIB=$(RANLIB)" \
638 "LOADLIBES=$(LOADLIBES)" \
639 "LDFLAGS=$(LDFLAGS)" \
640 "BISON=$(BISON)" \
641 "MAKEINFO=$(MAKEINFO)" \
642 all) ; \
643 else \
644 true ; \
645 fi
646
647 clean-gas: force
648 if [ -d $(unsubdir)/gas ] ; then \
649 (cd $(unsubdir)/gas$(subdir); \
650 $(MAKE) \
651 "against=$(against)" \
652 "AR=$(AR)" \
653 "AR_FLAGS=$(AR_FLAGS)" \
654 "CC=$(CC)" \
655 "RANLIB=$(RANLIB)" \
656 "LOADLIBES=$(LOADLIBES)" \
657 "LDFLAGS=$(LDFLAGS)" \
658 "BISON=$(BISON)" \
659 "MAKEINFO=$(MAKEINFO)" \
660 clean) ; \
661 else \
662 true ; \
663 fi
664
665 install-gas: force
666 if [ -d $(unsubdir)/gas ] ; then \
667 (cd $(unsubdir)/gas$(subdir); \
668 $(MAKE) \
669 "against=$(against)" \
670 "AR=$(AR)" \
671 "AR_FLAGS=$(AR_FLAGS)" \
672 "CC=$(CC)" \
673 "RANLIB=$(RANLIB)" \
674 "LOADLIBES=$(LOADLIBES)" \
675 "LDFLAGS=$(LDFLAGS)" \
676 "BISON=$(BISON)" \
677 "MAKEINFO=$(MAKEINFO)" \
678 install) ; \
679 else \
680 true ; \
681 fi
682 \f
683 ### ld
684 .PHONY: all-ld just-ld
685 all-ld: just-ld
686 just-ld: just-libiberty just-bfd just-bison force
687 if [ -d $(unsubdir)/ld ] ; then \
688 (cd $(unsubdir)/ld$(subdir); \
689 $(MAKE) \
690 "against=$(against)" \
691 "AR=$(AR)" \
692 "AR_FLAGS=$(AR_FLAGS)" \
693 "CC=$(CC)" \
694 "RANLIB=$(RANLIB)" \
695 "LOADLIBES=$(LOADLIBES)" \
696 "LDFLAGS=$(LDFLAGS)" \
697 "BISON=$(BISON)" \
698 "MAKEINFO=$(MAKEINFO)" \
699 all) ; \
700 else \
701 true ; \
702 fi
703
704 clean-ld: force
705 if [ -d $(unsubdir)/ld ] ; then \
706 (cd $(unsubdir)/ld$(subdir); \
707 $(MAKE) \
708 "against=$(against)" \
709 "AR=$(AR)" \
710 "AR_FLAGS=$(AR_FLAGS)" \
711 "CC=$(CC)" \
712 "RANLIB=$(RANLIB)" \
713 "LOADLIBES=$(LOADLIBES)" \
714 "LDFLAGS=$(LDFLAGS)" \
715 "BISON=$(BISON)" \
716 "MAKEINFO=$(MAKEINFO)" \
717 clean) ; \
718 else \
719 true ; \
720 fi
721
722 install-ld: force
723 if [ -d $(unsubdir)/ld ] ; then \
724 (cd $(unsubdir)/ld$(subdir); \
725 $(MAKE) \
726 "against=$(against)" \
727 "AR=$(AR)" \
728 "AR_FLAGS=$(AR_FLAGS)" \
729 "CC=$(CC)" \
730 "RANLIB=$(RANLIB)" \
731 "LOADLIBES=$(LOADLIBES)" \
732 "LDFLAGS=$(LDFLAGS)" \
733 "BISON=$(BISON)" \
734 "MAKEINFO=$(MAKEINFO)" \
735 install) ; \
736 else \
737 true ; \
738 fi
739 \f
740 ### gnulib
741 .PHONY: all-gnulib just-gnulib
742 all-gnulib: just-gnulib
743 just-gnulib: all-gcc all-gas all-binutils force
744 if [ -d $(unsubdir)/gnulib ] ; then \
745 (cd $(unsubdir)/gnulib$(subdir); \
746 $(MAKE) \
747 "against=$(against)" \
748 "AR=$(AR)" \
749 "AR_FLAGS=$(AR_FLAGS)" \
750 "CC=$(CC)" \
751 "RANLIB=$(RANLIB)" \
752 "LOADLIBES=$(LOADLIBES)" \
753 "LDFLAGS=$(LDFLAGS)" \
754 "BISON=$(BISON)" \
755 "MAKEINFO=$(MAKEINFO)" \
756 all) ; \
757 else \
758 true ; \
759 fi
760
761 clean-gnulib: force
762 if [ -d $(unsubdir)/gnulib ] ; then \
763 (cd $(unsubdir)/gnulib$(subdir); \
764 $(MAKE) \
765 "against=$(against)" \
766 "AR=$(AR)" \
767 "AR_FLAGS=$(AR_FLAGS)" \
768 "CC=$(CC)" \
769 "RANLIB=$(RANLIB)" \
770 "LOADLIBES=$(LOADLIBES)" \
771 "LDFLAGS=$(LDFLAGS)" \
772 "BISON=$(BISON)" \
773 "MAKEINFO=$(MAKEINFO)" \
774 clean) ; \
775 else \
776 true ; \
777 fi
778
779 install-gnulib: force
780 if [ -d $(unsubdir)/gnulib ] ; then \
781 (cd $(unsubdir)/gnulib$(subdir); \
782 $(MAKE) \
783 "against=$(against)" \
784 "AR=$(AR)" \
785 "AR_FLAGS=$(AR_FLAGS)" \
786 "CC=$(CC)" \
787 "RANLIB=$(RANLIB)" \
788 "LOADLIBES=$(LOADLIBES)" \
789 "LDFLAGS=$(LDFLAGS)" \
790 "BISON=$(BISON)" \
791 "MAKEINFO=$(MAKEINFO)" \
792 install) ; \
793 else \
794 true ; \
795 fi
796 \f
797 ### gdb
798 .PHONY: all-gdb just-gdb
799 all-gdb: just-gdb
800 just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
801 if [ -d $(unsubdir)/gdb ] ; then \
802 (cd $(unsubdir)/gdb$(subdir); \
803 $(MAKE) \
804 "against=$(against)" \
805 "AR=$(AR)" \
806 "AR_FLAGS=$(AR_FLAGS)" \
807 "CC=$(CC)" \
808 "RANLIB=$(RANLIB)" \
809 "LOADLIBES=$(LOADLIBES)" \
810 "LDFLAGS=$(LDFLAGS)" \
811 "BISON=$(BISON)" \
812 "MAKEINFO=$(MAKEINFO)" \
813 all) ; \
814 else \
815 true ; \
816 fi
817
818 clean-gdb: force
819 if [ -d $(unsubdir)/gdb ] ; then \
820 (cd $(unsubdir)/gdb$(subdir); \
821 $(MAKE) \
822 "against=$(against)" \
823 "AR=$(AR)" \
824 "AR_FLAGS=$(AR_FLAGS)" \
825 "CC=$(CC)" \
826 "RANLIB=$(RANLIB)" \
827 "LOADLIBES=$(LOADLIBES)" \
828 "LDFLAGS=$(LDFLAGS)" \
829 "BISON=$(BISON)" \
830 "MAKEINFO=$(MAKEINFO)" \
831 clean) ; \
832 else \
833 true ; \
834 fi
835
836 install-gdb: force
837 if [ -d $(unsubdir)/gdb ] ; then \
838 (cd $(unsubdir)/gdb$(subdir); \
839 $(MAKE) \
840 "against=$(against)" \
841 "AR=$(AR)" \
842 "AR_FLAGS=$(AR_FLAGS)" \
843 "CC=$(CC)" \
844 "RANLIB=$(RANLIB)" \
845 "LOADLIBES=$(LOADLIBES)" \
846 "LDFLAGS=$(LDFLAGS)" \
847 "BISON=$(BISON)" \
848 "MAKEINFO=$(MAKEINFO)" \
849 install) ; \
850 else \
851 true ; \
852 fi
853 \f
854 ### make
855 .PHONY: all-make just-make
856 all-make: just-make
857 just-make: all-libiberty force
858 if [ -d $(unsubdir)/make ] ; then \
859 (cd $(unsubdir)/make$(subdir); \
860 $(MAKE) \
861 "against=$(against)" \
862 "AR=$(AR)" \
863 "AR_FLAGS=$(AR_FLAGS)" \
864 "CC=$(CC)" \
865 "RANLIB=$(RANLIB)" \
866 "LOADLIBES=$(LOADLIBES)" \
867 "LDFLAGS=$(LDFLAGS)" \
868 "BISON=$(BISON)" \
869 "MAKEINFO=$(MAKEINFO)" \
870 all) ; \
871 else \
872 true ; \
873 fi
874
875 clean-make: force
876 if [ -d $(unsubdir)/make ] ; then \
877 (cd $(unsubdir)/make$(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 clean) ; \
889 else \
890 true ; \
891 fi
892
893 install-make: force
894 if [ -d $(unsubdir)/make ] ; then \
895 (cd $(unsubdir)/make$(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 install) ; \
907 else \
908 true ; \
909 fi
910 \f
911 ### diff
912 .PHONY: all-diff just-diff
913 all-diff: just-diff
914 just-diff: force
915 if [ -d $(unsubdir)/diff ] ; then \
916 (cd $(unsubdir)/diff$(subdir); \
917 $(MAKE) \
918 "against=$(against)" \
919 "AR=$(AR)" \
920 "AR_FLAGS=$(AR_FLAGS)" \
921 "CC=$(CC)" \
922 "RANLIB=$(RANLIB)" \
923 "LOADLIBES=$(LOADLIBES)" \
924 "LDFLAGS=$(LDFLAGS)" \
925 "BISON=$(BISON)" \
926 "MAKEINFO=$(MAKEINFO)" \
927 all) ; \
928 else \
929 true ; \
930 fi
931
932 clean-diff: force
933 if [ -d $(unsubdir)/diff ] ; then \
934 (cd $(unsubdir)/diff$(subdir); \
935 $(MAKE) \
936 "against=$(against)" \
937 "AR=$(AR)" \
938 "AR_FLAGS=$(AR_FLAGS)" \
939 "CC=$(CC)" \
940 "RANLIB=$(RANLIB)" \
941 "LOADLIBES=$(LOADLIBES)" \
942 "LDFLAGS=$(LDFLAGS)" \
943 "BISON=$(BISON)" \
944 "MAKEINFO=$(MAKEINFO)" \
945 clean) ; \
946 else \
947 true ; \
948 fi
949
950 install-diff: force
951 if [ -d $(unsubdir)/diff ] ; then \
952 (cd $(unsubdir)/diff/$(subdir); \
953 $(MAKE) \
954 "against=$(against)" \
955 "AR=$(AR)" \
956 "AR_FLAGS=$(AR_FLAGS)" \
957 "CC=$(CC)" \
958 "RANLIB=$(RANLIB)" \
959 "LOADLIBES=$(LOADLIBES)" \
960 "LDFLAGS=$(LDFLAGS)" \
961 "BISON=$(BISON)" \
962 "MAKEINFO=$(MAKEINFO)" \
963 install) ; \
964 else \
965 true ; \
966 fi
967 \f
968 ### grep
969 .PHONY: all-grep just-grep
970 all-grep: just-grep
971 just-grep: force
972 if [ -d $(unsubdir)/grep ] ; then \
973 (cd $(unsubdir)/grep$(subdir); \
974 $(MAKE) \
975 "against=$(against)" \
976 "AR=$(AR)" \
977 "AR_FLAGS=$(AR_FLAGS)" \
978 "CC=$(CC)" \
979 "RANLIB=$(RANLIB)" \
980 "LOADLIBES=$(LOADLIBES)" \
981 "LDFLAGS=$(LDFLAGS)" \
982 "BISON=$(BISON)" \
983 "MAKEINFO=$(MAKEINFO)" \
984 all) ; \
985 else \
986 true ; \
987 fi
988
989 clean-grep: force
990 if [ -d $(unsubdir)/grep ] ; then \
991 (cd $(unsubdir)/grep$(subdir); \
992 $(MAKE) \
993 "against=$(against)" \
994 "AR=$(AR)" \
995 "AR_FLAGS=$(AR_FLAGS)" \
996 "CC=$(CC)" \
997 "RANLIB=$(RANLIB)" \
998 "LOADLIBES=$(LOADLIBES)" \
999 "LDFLAGS=$(LDFLAGS)" \
1000 "BISON=$(BISON)" \
1001 "MAKEINFO=$(MAKEINFO)" \
1002 clean) ; \
1003 else \
1004 true ; \
1005 fi
1006
1007 install-grep: force
1008 if [ -d $(unsubdir)/grep ] ; then \
1009 (cd $(unsubdir)/grep$(subdir); \
1010 $(MAKE) \
1011 "against=$(against)" \
1012 "AR=$(AR)" \
1013 "AR_FLAGS=$(AR_FLAGS)" \
1014 "CC=$(CC)" \
1015 "RANLIB=$(RANLIB)" \
1016 "LOADLIBES=$(LOADLIBES)" \
1017 "LDFLAGS=$(LDFLAGS)" \
1018 "BISON=$(BISON)" \
1019 "MAKEINFO=$(MAKEINFO)" \
1020 install) ; \
1021 else \
1022 true ; \
1023 fi
1024 \f
1025 ### rcs
1026 .PHONY: all-rcs just-rcs
1027 all-rcs: just-rcs
1028 just-rcs: just-diff just-grep force
1029 if [ -d $(unsubdir)/rcs ] ; then \
1030 (cd $(unsubdir)/rcs$(subdir); \
1031 $(MAKE) \
1032 "against=$(against)" \
1033 "AR=$(AR)" \
1034 "AR_FLAGS=$(AR_FLAGS)" \
1035 "CC=$(CC)" \
1036 "RANLIB=$(RANLIB)" \
1037 "LOADLIBES=$(LOADLIBES)" \
1038 "LDFLAGS=$(LDFLAGS)" \
1039 "BISON=$(BISON)" \
1040 "MAKEINFO=$(MAKEINFO)" \
1041 all) ; \
1042 else \
1043 true ; \
1044 fi
1045
1046 clean-rcs: force
1047 if [ -d $(unsubdir)/rcs ] ; then \
1048 (cd $(unsubdir)/rcs$(subdir); \
1049 $(MAKE) \
1050 "against=$(against)" \
1051 "AR=$(AR)" \
1052 "AR_FLAGS=$(AR_FLAGS)" \
1053 "CC=$(CC)" \
1054 "RANLIB=$(RANLIB)" \
1055 "LOADLIBES=$(LOADLIBES)" \
1056 "LDFLAGS=$(LDFLAGS)" \
1057 "BISON=$(BISON)" \
1058 "MAKEINFO=$(MAKEINFO)" \
1059 clean) ; \
1060 else \
1061 true ; \
1062 fi
1063
1064 install-rcs: install-grep install-diff force
1065 if [ -d $(unsubdir)/rcs ] ; then \
1066 (cd $(unsubdir)/rcs$(subdir); \
1067 $(MAKE) \
1068 "against=$(against)" \
1069 "AR=$(AR)" \
1070 "AR_FLAGS=$(AR_FLAGS)" \
1071 "CC=$(CC)" \
1072 "RANLIB=$(RANLIB)" \
1073 "LOADLIBES=$(LOADLIBES)" \
1074 "LDFLAGS=$(LDFLAGS)" \
1075 "BISON=$(BISON)" \
1076 "MAKEINFO=$(MAKEINFO)" \
1077 install) ; \
1078 else \
1079 true ; \
1080 fi
1081 \f
1082 ### gdbm
1083 .PHONY: all-gdbm just-gdbm
1084 all-gdbm: just-gdbm
1085 just-gdbm: force
1086 if [ -d $(unsubdir)/gdbm ] ; then \
1087 (cd $(unsubdir)/gdbm$(subdir); \
1088 $(MAKE) \
1089 "against=$(against)" \
1090 "AR=$(AR)" \
1091 "AR_FLAGS=$(AR_FLAGS)" \
1092 "CC=$(CC)" \
1093 "RANLIB=$(RANLIB)" \
1094 "LOADLIBES=$(LOADLIBES)" \
1095 "LDFLAGS=$(LDFLAGS)" \
1096 "BISON=$(BISON)" \
1097 "MAKEINFO=$(MAKEINFO)" \
1098 all) ; \
1099 else \
1100 true ; \
1101 fi
1102
1103 clean-gdbm: force
1104 if [ -d $(unsubdir)/gdbm ] ; then \
1105 (cd $(unsubdir)/gdbm$(subdir); \
1106 $(MAKE) \
1107 "against=$(against)" \
1108 "AR=$(AR)" \
1109 "AR_FLAGS=$(AR_FLAGS)" \
1110 "CC=$(CC)" \
1111 "RANLIB=$(RANLIB)" \
1112 "LOADLIBES=$(LOADLIBES)" \
1113 "LDFLAGS=$(LDFLAGS)" \
1114 "BISON=$(BISON)" \
1115 "MAKEINFO=$(MAKEINFO)" \
1116 clean) ; \
1117 else \
1118 true ; \
1119 fi
1120
1121 install-gdbm: force
1122 if [ -d $(unsubdir)/gdbm ] ; then \
1123 (cd $(unsubdir)/gdbm$(subdir); \
1124 $(MAKE) \
1125 "against=$(against)" \
1126 "AR=$(AR)" \
1127 "AR_FLAGS=$(AR_FLAGS)" \
1128 "CC=$(CC)" \
1129 "RANLIB=$(RANLIB)" \
1130 "LOADLIBES=$(LOADLIBES)" \
1131 "LDFLAGS=$(LDFLAGS)" \
1132 "BISON=$(BISON)" \
1133 "MAKEINFO=$(MAKEINFO)" \
1134 install) ; \
1135 else \
1136 true ; \
1137 fi
1138 \f
1139 ### cvs
1140 .PHONY: all-cvs just-cvs
1141 all-cvs: just-cvs just-rcs just-grep just-diff
1142 just-cvs: just-gdbm force
1143 if [ -d $(unsubdir)/cvs ] ; then \
1144 (cd $(unsubdir)/cvs$(subdir); \
1145 $(MAKE) \
1146 "against=$(against)" \
1147 "AR=$(AR)" \
1148 "AR_FLAGS=$(AR_FLAGS)" \
1149 "CC=$(CC)" \
1150 "RANLIB=$(RANLIB)" \
1151 "LOADLIBES=$(LOADLIBES)" \
1152 "LDFLAGS=$(LDFLAGS)" \
1153 "BISON=$(BISON)" \
1154 "MAKEINFO=$(MAKEINFO)" \
1155 all) ; \
1156 else \
1157 true ; \
1158 fi
1159
1160 clean-cvs: force
1161 if [ -d $(unsubdir)/cvs ] ; then \
1162 (cd $(unsubdir)/cvs$(subdir); \
1163 $(MAKE) \
1164 "against=$(against)" \
1165 "AR=$(AR)" \
1166 "AR_FLAGS=$(AR_FLAGS)" \
1167 "CC=$(CC)" \
1168 "RANLIB=$(RANLIB)" \
1169 "LOADLIBES=$(LOADLIBES)" \
1170 "LDFLAGS=$(LDFLAGS)" \
1171 "BISON=$(BISON)" \
1172 "MAKEINFO=$(MAKEINFO)" \
1173 clean) ; \
1174 else \
1175 true ; \
1176 fi
1177
1178 install-cvs: install-rcs install-gdbm force
1179 if [ -d $(unsubdir)/cvs ] ; then \
1180 (cd $(unsubdir)/cvs$(subdir); \
1181 $(MAKE) \
1182 "against=$(against)" \
1183 "AR=$(AR)" \
1184 "AR_FLAGS=$(AR_FLAGS)" \
1185 "CC=$(CC)" \
1186 "RANLIB=$(RANLIB)" \
1187 "LOADLIBES=$(LOADLIBES)" \
1188 "LDFLAGS=$(LDFLAGS)" \
1189 "BISON=$(BISON)" \
1190 "MAKEINFO=$(MAKEINFO)" \
1191 install) ; \
1192 else \
1193 true ; \
1194 fi
1195 \f
1196 ### emacs
1197 .PHONY: all-emacs just-emacs
1198 all-emacs: just-emacs
1199 just-emacs: force
1200 if [ -d $(unsubdir)/emacs ] ; then \
1201 (cd $(unsubdir)/emacs$(subdir); \
1202 $(MAKE) \
1203 "against=$(against)" \
1204 "AR=$(AR)" \
1205 "AR_FLAGS=$(AR_FLAGS)" \
1206 "CC=$(CC)" \
1207 "RANLIB=$(RANLIB)" \
1208 "LOADLIBES=$(LOADLIBES)" \
1209 "LDFLAGS=$(LDFLAGS)" \
1210 "BISON=$(BISON)" \
1211 "MAKEINFO=$(MAKEINFO)" \
1212 all) ; \
1213 else \
1214 true ; \
1215 fi
1216
1217 clean-emacs: force
1218 if [ -d $(unsubdir)/emacs ] ; then \
1219 (cd $(unsubdir)/emacs$(subdir); \
1220 $(MAKE) \
1221 "against=$(against)" \
1222 "AR=$(AR)" \
1223 "AR_FLAGS=$(AR_FLAGS)" \
1224 "CC=$(CC)" \
1225 "RANLIB=$(RANLIB)" \
1226 "LOADLIBES=$(LOADLIBES)" \
1227 "LDFLAGS=$(LDFLAGS)" \
1228 "BISON=$(BISON)" \
1229 "MAKEINFO=$(MAKEINFO)" \
1230 clean) ; \
1231 else \
1232 true ; \
1233 fi
1234
1235 install-emacs: install-rcs install-gdbm force
1236 if [ -d $(unsubdir)/emacs ] ; then \
1237 (cd $(unsubdir)/emacs$(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 \f
1253 ### ispell
1254 .PHONY: all-ispell just-ispell
1255 all-ispell: just-ispell
1256 just-ispell: all-emacs force
1257 if [ -d $(unsubdir)/ispell ] ; then \
1258 (cd $(unsubdir)/ispell$(subdir); \
1259 $(MAKE) \
1260 "against=$(against)" \
1261 "AR=$(AR)" \
1262 "AR_FLAGS=$(AR_FLAGS)" \
1263 "CC=$(CC)" \
1264 "RANLIB=$(RANLIB)" \
1265 "LOADLIBES=$(LOADLIBES)" \
1266 "LDFLAGS=$(LDFLAGS)" \
1267 "BISON=$(BISON)" \
1268 "MAKEINFO=$(MAKEINFO)" \
1269 all) ; \
1270 else \
1271 true ; \
1272 fi
1273
1274 clean-ispell: force
1275 if [ -d $(unsubdir)/ispell ] ; then \
1276 (cd $(unsubdir)/ispell$(subdir); \
1277 $(MAKE) \
1278 "against=$(against)" \
1279 "AR=$(AR)" \
1280 "AR_FLAGS=$(AR_FLAGS)" \
1281 "CC=$(CC)" \
1282 "RANLIB=$(RANLIB)" \
1283 "LOADLIBES=$(LOADLIBES)" \
1284 "LDFLAGS=$(LDFLAGS)" \
1285 "BISON=$(BISON)" \
1286 "MAKEINFO=$(MAKEINFO)" \
1287 clean) ; \
1288 else \
1289 true ; \
1290 fi
1291
1292 install-ispell: install-rcs install-gdbm force
1293 if [ -d $(unsubdir)/ispell ] ; then \
1294 (cd $(unsubdir)/ispell$(subdir); \
1295 $(MAKE) \
1296 "against=$(against)" \
1297 "AR=$(AR)" \
1298 "AR_FLAGS=$(AR_FLAGS)" \
1299 "CC=$(CC)" \
1300 "RANLIB=$(RANLIB)" \
1301 "LOADLIBES=$(LOADLIBES)" \
1302 "LDFLAGS=$(LDFLAGS)" \
1303 "BISON=$(BISON)" \
1304 "MAKEINFO=$(MAKEINFO)" \
1305 install) ; \
1306 else \
1307 true ; \
1308 fi
1309 \f
1310 ### other supporting targets
1311 # this is a bad hack.
1312 all.xclib: all.normal
1313 if [ -d clib ] ; then \
1314 (cd clib ; $(MAKE)) ; \
1315 fi
1316
1317 subdir_do: force
1318 for i in $(DODIRS); do \
1319 if [ -f $(unsubdir)/$$i/localenv ] ; then \
1320 if (cd $(unsubdir)/$$i$(subdir); \
1321 $(MAKE) \
1322 "against=$(against)" \
1323 "BISON=$(BISON)" \
1324 "MAKEINFO=$(MAKEINFO)" \
1325 $(DO)) ; then true ; \
1326 else exit 1 ; fi ; \
1327 else if [ -d $(unsubdir)/$$i ] ; then \
1328 if (cd $(unsubdir)/$$i$(subdir); \
1329 $(MAKE) \
1330 "against=$(against)" \
1331 "AR=$(AR)" \
1332 "AR_FLAGS=$(AR_FLAGS)" \
1333 "CC=$(CC)" \
1334 "RANLIB=$(RANLIB)" \
1335 "LOADLIBES=$(LOADLIBES)" \
1336 "LDFLAGS=$(LDFLAGS)" \
1337 "BISON=$(BISON)" \
1338 "MAKEINFO=$(MAKEINFO)" \
1339 $(DO)) ; then true ; \
1340 else exit 1 ; fi ; \
1341 else true ; fi ; \
1342 fi ; \
1343 done
1344
1345 bootstrap:
1346 $(MAKE) all info
1347 $(MAKE) stage1
1348 $(MAKE) pass "stagepass=stage1"
1349 $(MAKE) stage2
1350 $(MAKE) pass "stagepass=stage2"
1351 $(MAKE) comparison
1352
1353 bootstrap2:
1354 $(MAKE) pass "stagepass=stage1"
1355 $(MAKE) stage2
1356 $(MAKE) pass "stagepass=stage2"
1357 $(MAKE) comparison
1358
1359 bootstrap3:
1360 $(MAKE) pass "stagepass=stage2"
1361 $(MAKE) comparison
1362
1363 pass:
1364 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
1365 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
1366 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
1367 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
1368 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1369 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1370 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
1371 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
1372 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
1373 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1374 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
1375 "LDFLAGS=-nostdlib /lib/crt0.o \
1376 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1377 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
1378
1379
1380 stage1:
1381 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
1382
1383 stage2:
1384 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
1385
1386 stage3:
1387 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
1388
1389 stage4:
1390 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
1391
1392 against=stage2
1393
1394 comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1395
1396 de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1397 de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1398 de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1399 de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
1400
1401 # The "else true" stuff is for Ultrix; the shell returns the exit code
1402 # of the "if" command, if no commands are run in the "then" or "else" part,
1403 # causing Make to quit.
1404
1405 MAKEDIRS= \
1406 $(prefix) \
1407 $(bindir) \
1408 $(libdir) \
1409 $(includedir) \
1410 $(datadir) \
1411 $(docdir) \
1412 $(mandir) \
1413 $(man1dir) \
1414 $(man5dir)
1415
1416 # $(man2dir) \
1417 # $(man3dir) \
1418 # $(man4dir) \
1419 # $(man6dir) \
1420 # $(man7dir) \
1421 # $(man8dir)
1422
1423 install-dirs: force
1424 for i in $(MAKEDIRS) ; do \
1425 echo Making $$i... ; \
1426 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
1427 done
1428
1429 MAKEINFODIRS= \
1430 $(prefix) \
1431 $(infodir)
1432
1433 install-info-dirs: force
1434 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1435 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1436 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1437
1438 dir.info: force
1439 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1440 mv -f dir.info.new dir.info
1441
1442 etags tags: TAGS
1443
1444 TAGS: FORCE
1445 etags `$(MAKE) ls`
1446
1447 ls:
1448 @echo Makefile
1449 @for i in $(SUBDIRS); \
1450 do \
1451 (cd $$i; \
1452 pwd=`pwd`; \
1453 wd=`basename $$pwd`; \
1454 for j in `$(MAKE) ls`; \
1455 do \
1456 echo $$wd/$$j; \
1457 done) \
1458 done
1459
1460 force:
1461
1462 # with the gnu make, this is done automatically.
1463
1464 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1465 $(SHELL) ./config.status
1466
1467 #
1468 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1469
1470 DEVO_SUPPORT= README DOC.configure Makefile.in configure configure.in \
1471 config.sub config
1472 GDB_SUPPORT_DIRS= bfd include libiberty readline glob
1473 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
1474
1475 setup-dirs: force_update
1476 ./configure sun4
1477 make clean
1478 ./configure -rm sun4
1479 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1480
1481 bfd.ilrt.tar.Z: setup-dirs
1482 rm -f bfd.ilrt.tar.Z
1483 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
1484 | compress -v >bfd.ilrt.tar.Z
1485
1486 gdb.tar.Z: setup-dirs
1487 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1488 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1489
1490 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1491 rm -rf proto-toplev; mkdir proto-toplev
1492 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1493 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1494 ln -s ../$$i . ; \
1495 done)
1496 # Take out texinfo from configurable dirs
1497 rm proto-toplev/configure.in
1498 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
1499 # Take out glob from buildable dirs
1500 rm proto-toplev/Makefile.in
1501 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
1502 mkdir proto-toplev/texinfo
1503 mkdir proto-toplev/texinfo/fsf
1504 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
1505 chmod og=u `find proto-toplev -print`
1506 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1507 echo "==> Making gdb-$$VER.tar.Z"; \
1508 ln -s proto-toplev gdb-$$VER; \
1509 tar cfh - gdb-$$VER \
1510 | compress -v >gdb-$$VER.tar.Z)
1511
1512 force_update:
1513
1514 nothing:
1515
1516 # end of Makefile.in
This page took 0.082365 seconds and 5 git commands to generate.