2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991 Cygnus Support
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.
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.
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. */
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
44 INSTALL_PROGRAM = $(INSTALL)
45 INSTALL_DATA = $(INSTALL)
51 BISON = `if [ -d $${rootme}/bison ] ; \
52 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
53 else echo bison -y ; fi`
55 MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
56 then echo $${rootme}/texinfo/C/makeinfo ; \
57 else echo makeinfo ; fi`
59 SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
63 INSTALL_TARGET = install.all
69 #### host and target specific makefile fragments come in here.
72 .PHONY: all info install-info clean-info
77 rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
80 $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
83 cfg-paper.info: cfg-paper.texi
84 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
86 configure.info: configure.texi
87 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
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
96 $(INSTALL_DATA) dir.info $(infodir)/dir.info
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)"
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
113 install: $(INSTALL_TARGET) $(srcdir)/configure.man
114 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
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
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); \
133 "against=$(against)" \
135 "AR_FLAGS=$(AR_FLAGS)" \
138 "LOADLIBES=$(LOADLIBES)" \
139 "LDFLAGS=$(LDFLAGS)" \
141 "MAKEINFO=$(MAKEINFO)" \
147 clean-libiberty: force
148 if [ -d $(unsubdir)/libiberty ] ; then \
149 rootme=`pwd` ; export rootme ; \
150 (cd $(unsubdir)/libiberty$(subdir); \
152 "against=$(against)" \
154 "AR_FLAGS=$(AR_FLAGS)" \
157 "LOADLIBES=$(LOADLIBES)" \
158 "LDFLAGS=$(LDFLAGS)" \
160 "MAKEINFO=$(MAKEINFO)" \
166 install-libiberty: force
167 if [ -d $(unsubdir)/libiberty ] ; then \
168 rootme=`pwd` ; export rootme ; \
169 (cd $(unsubdir)/libiberty$(subdir); \
171 "against=$(against)" \
173 "AR_FLAGS=$(AR_FLAGS)" \
176 "LOADLIBES=$(LOADLIBES)" \
177 "LDFLAGS=$(LDFLAGS)" \
179 "MAKEINFO=$(MAKEINFO)" \
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); \
194 "against=$(against)" \
196 "AR_FLAGS=$(AR_FLAGS)" \
199 "LOADLIBES=$(LOADLIBES)" \
200 "LDFLAGS=$(LDFLAGS)" \
202 "MAKEINFO=$(MAKEINFO)" \
209 if [ -d $(unsubdir)/texinfo ] ; then \
210 rootme=`pwd` ; export rootme ; \
211 (cd $(unsubdir)/texinfo$(subdir); \
213 "against=$(against)" \
215 "AR_FLAGS=$(AR_FLAGS)" \
218 "LOADLIBES=$(LOADLIBES)" \
219 "LDFLAGS=$(LDFLAGS)" \
221 "MAKEINFO=$(MAKEINFO)" \
227 install-texinfo: force
228 if [ -d $(unsubdir)/texinfo ] ; then \
229 rootme=`pwd` ; export rootme ; \
230 (cd $(unsubdir)/texinfo$(subdir); \
232 "against=$(against)" \
234 "AR_FLAGS=$(AR_FLAGS)" \
237 "LOADLIBES=$(LOADLIBES)" \
238 "LDFLAGS=$(LDFLAGS)" \
240 "MAKEINFO=$(MAKEINFO)" \
247 .PHONY: all-bfd just-bfd
250 if [ -d $(unsubdir)/bfd ] ; then \
251 rootme=`pwd` ; export rootme ; \
252 (cd $(unsubdir)/bfd$(subdir); \
254 "against=$(against)" \
256 "AR_FLAGS=$(AR_FLAGS)" \
259 "LOADLIBES=$(LOADLIBES)" \
260 "LDFLAGS=$(LDFLAGS)" \
262 "MAKEINFO=$(MAKEINFO)" \
269 if [ -d $(unsubdir)/bfd ] ; then \
270 rootme=`pwd` ; export rootme ; \
271 (cd $(unsubdir)/bfd$(subdir); \
273 "against=$(against)" \
275 "AR_FLAGS=$(AR_FLAGS)" \
278 "LOADLIBES=$(LOADLIBES)" \
279 "LDFLAGS=$(LDFLAGS)" \
281 "MAKEINFO=$(MAKEINFO)" \
288 if [ -d $(unsubdir)/bfd ] ; then \
289 rootme=`pwd` ; export rootme ; \
290 (cd $(unsubdir)/bfd$(subdir); \
292 "against=$(against)" \
294 "AR_FLAGS=$(AR_FLAGS)" \
297 "LOADLIBES=$(LOADLIBES)" \
298 "LDFLAGS=$(LDFLAGS)" \
300 "MAKEINFO=$(MAKEINFO)" \
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); \
314 "against=$(against)" \
316 "AR_FLAGS=$(AR_FLAGS)" \
319 "LOADLIBES=$(LOADLIBES)" \
320 "LDFLAGS=$(LDFLAGS)" \
322 "MAKEINFO=$(MAKEINFO)" \
328 clean-binutils: force
329 if [ -d $(unsubdir)/binutils ] ; then \
330 rootme=`pwd` ; export rootme ; \
331 (cd $(unsubdir)/binutils$(subdir); \
333 "against=$(against)" \
335 "AR_FLAGS=$(AR_FLAGS)" \
338 "LOADLIBES=$(LOADLIBES)" \
339 "LDFLAGS=$(LDFLAGS)" \
341 "MAKEINFO=$(MAKEINFO)" \
347 install-binutils: force
348 if [ -d $(unsubdir)/binutils ] ; then \
349 rootme=`pwd` ; export rootme ; \
350 (cd $(unsubdir)/binutils$(subdir); \
352 "against=$(against)" \
354 "AR_FLAGS=$(AR_FLAGS)" \
357 "LOADLIBES=$(LOADLIBES)" \
358 "LDFLAGS=$(LDFLAGS)" \
360 "MAKEINFO=$(MAKEINFO)" \
367 .PHONY: all-byacc just-byacc
368 all-byacc: just-byacc
370 if [ -d $(unsubdir)/byacc ] ; then \
371 rootme=`pwd` ; export rootme ; \
372 (cd $(unsubdir)/byacc$(subdir); \
374 "against=$(against)" \
376 "AR_FLAGS=$(AR_FLAGS)" \
379 "LOADLIBES=$(LOADLIBES)" \
380 "LDFLAGS=$(LDFLAGS)" \
382 "MAKEINFO=$(MAKEINFO)" \
389 if [ -d $(unsubdir)/byacc ] ; then \
390 rootme=`pwd` ; export rootme ; \
391 (cd $(unsubdir)/byacc$(subdir); \
393 "against=$(against)" \
395 "AR_FLAGS=$(AR_FLAGS)" \
398 "LOADLIBES=$(LOADLIBES)" \
399 "LDFLAGS=$(LDFLAGS)" \
401 "MAKEINFO=$(MAKEINFO)" \
408 if [ -d $(unsubdir)/byacc ] ; then \
409 rootme=`pwd` ; export rootme ; \
410 (cd $(unsubdir)/byacc$(subdir); \
412 "against=$(against)" \
414 "AR_FLAGS=$(AR_FLAGS)" \
417 "LOADLIBES=$(LOADLIBES)" \
418 "LDFLAGS=$(LDFLAGS)" \
420 "MAKEINFO=$(MAKEINFO)" \
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); \
434 "against=$(against)" \
436 "AR_FLAGS=$(AR_FLAGS)" \
439 "LOADLIBES=$(LOADLIBES)" \
440 "LDFLAGS=$(LDFLAGS)" \
442 "MAKEINFO=$(MAKEINFO)" \
449 if [ -d $(unsubdir)/bison ] ; then \
450 rootme=`pwd` ; export rootme ; \
451 (cd $(unsubdir)/bison$(subdir); \
453 "against=$(against)" \
455 "AR_FLAGS=$(AR_FLAGS)" \
458 "LOADLIBES=$(LOADLIBES)" \
459 "LDFLAGS=$(LDFLAGS)" \
461 "MAKEINFO=$(MAKEINFO)" \
468 if [ -d $(unsubdir)/bison ] ; then \
469 rootme=`pwd` ; export rootme ; \
470 (cd $(unsubdir)/bison$(subdir); \
472 "against=$(against)" \
474 "AR_FLAGS=$(AR_FLAGS)" \
477 "LOADLIBES=$(LOADLIBES)" \
478 "LDFLAGS=$(LDFLAGS)" \
480 "MAKEINFO=$(MAKEINFO)" \
487 .PHONY: 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); \
495 "against=$(against)" \
497 "AR_FLAGS=$(AR_FLAGS)" \
500 "LOADLIBES=$(LOADLIBES)" \
501 "LDFLAGS=$(LDFLAGS)" \
503 "MAKEINFO=$(MAKEINFO)" \
510 if [ -d $(unsubdir)/gcc ] ; then \
511 rootme=`pwd` ; export rootme ; \
512 (cd $(unsubdir)/gcc$(subdir); \
514 "against=$(against)" \
516 "AR_FLAGS=$(AR_FLAGS)" \
519 "LOADLIBES=$(LOADLIBES)" \
520 "LDFLAGS=$(LDFLAGS)" \
522 "MAKEINFO=$(MAKEINFO)" \
529 if [ -d $(unsubdir)/gcc ] ; then \
530 rootme=`pwd` ; export rootme ; \
531 (cd $(unsubdir)/gcc$(subdir); \
533 "against=$(against)" \
535 "AR_FLAGS=$(AR_FLAGS)" \
538 "LOADLIBES=$(LOADLIBES)" \
539 "LDFLAGS=$(LDFLAGS)" \
541 "MAKEINFO=$(MAKEINFO)" \
548 .PHONY: all-readline just-readline
549 all-readline: just-readline
551 if [ -d $(unsubdir)/readline ] ; then \
552 rootme=`pwd` ; export rootme ; \
553 (cd $(unsubdir)/readline$(subdir); \
555 "against=$(against)" \
557 "AR_FLAGS=$(AR_FLAGS)" \
560 "LOADLIBES=$(LOADLIBES)" \
561 "LDFLAGS=$(LDFLAGS)" \
563 "MAKEINFO=$(MAKEINFO)" \
569 clean-readline: force
570 if [ -d $(unsubdir)/readline ] ; then \
571 rootme=`pwd` ; export rootme ; \
572 (cd $(unsubdir)/readline$(subdir); \
574 "against=$(against)" \
576 "AR_FLAGS=$(AR_FLAGS)" \
579 "LOADLIBES=$(LOADLIBES)" \
580 "LDFLAGS=$(LDFLAGS)" \
582 "MAKEINFO=$(MAKEINFO)" \
588 install-readline: force
589 if [ -d $(unsubdir)/readline ] ; then \
590 rootme=`pwd` ; export rootme ; \
591 (cd $(unsubdir)/readline$(subdir); \
593 "against=$(against)" \
595 "AR_FLAGS=$(AR_FLAGS)" \
598 "LOADLIBES=$(LOADLIBES)" \
599 "LDFLAGS=$(LDFLAGS)" \
601 "MAKEINFO=$(MAKEINFO)" \
608 .PHONY: all-glob just-glob
611 if [ -d $(unsubdir)/glob ] ; then \
612 rootme=`pwd` ; export rootme ; \
613 (cd $(unsubdir)/glob$(subdir); \
615 "against=$(against)" \
617 "AR_FLAGS=$(AR_FLAGS)" \
620 "LOADLIBES=$(LOADLIBES)" \
621 "LDFLAGS=$(LDFLAGS)" \
623 "MAKEINFO=$(MAKEINFO)" \
630 if [ -d $(unsubdir)/glob ] ; then \
631 rootme=`pwd` ; export rootme ; \
632 (cd $(unsubdir)/glob$(subdir); \
634 "against=$(against)" \
636 "AR_FLAGS=$(AR_FLAGS)" \
639 "LOADLIBES=$(LOADLIBES)" \
640 "LDFLAGS=$(LDFLAGS)" \
642 "MAKEINFO=$(MAKEINFO)" \
649 if [ -d $(unsubdir)/glob ] ; then \
650 rootme=`pwd` ; export rootme ; \
651 (cd $(unsubdir)/glob$(subdir); \
653 "against=$(against)" \
655 "AR_FLAGS=$(AR_FLAGS)" \
658 "LOADLIBES=$(LOADLIBES)" \
659 "LDFLAGS=$(LDFLAGS)" \
661 "MAKEINFO=$(MAKEINFO)" \
668 .PHONY: 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); \
675 "against=$(against)" \
677 "AR_FLAGS=$(AR_FLAGS)" \
680 "LOADLIBES=$(LOADLIBES)" \
681 "LDFLAGS=$(LDFLAGS)" \
683 "MAKEINFO=$(MAKEINFO)" \
690 if [ -d $(unsubdir)/gas ] ; then \
691 rootme=`pwd` ; export rootme ; \
692 (cd $(unsubdir)/gas$(subdir); \
694 "against=$(against)" \
696 "AR_FLAGS=$(AR_FLAGS)" \
699 "LOADLIBES=$(LOADLIBES)" \
700 "LDFLAGS=$(LDFLAGS)" \
702 "MAKEINFO=$(MAKEINFO)" \
709 if [ -d $(unsubdir)/gas ] ; then \
710 rootme=`pwd` ; export rootme ; \
711 (cd $(unsubdir)/gas$(subdir); \
713 "against=$(against)" \
715 "AR_FLAGS=$(AR_FLAGS)" \
718 "LOADLIBES=$(LOADLIBES)" \
719 "LDFLAGS=$(LDFLAGS)" \
721 "MAKEINFO=$(MAKEINFO)" \
728 .PHONY: 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); \
735 "against=$(against)" \
737 "AR_FLAGS=$(AR_FLAGS)" \
740 "LOADLIBES=$(LOADLIBES)" \
741 "LDFLAGS=$(LDFLAGS)" \
743 "MAKEINFO=$(MAKEINFO)" \
750 if [ -d $(unsubdir)/ld ] ; then \
751 rootme=`pwd` ; export rootme ; \
752 (cd $(unsubdir)/ld$(subdir); \
754 "against=$(against)" \
756 "AR_FLAGS=$(AR_FLAGS)" \
759 "LOADLIBES=$(LOADLIBES)" \
760 "LDFLAGS=$(LDFLAGS)" \
762 "MAKEINFO=$(MAKEINFO)" \
769 if [ -d $(unsubdir)/ld ] ; then \
770 rootme=`pwd` ; export rootme ; \
771 (cd $(unsubdir)/ld$(subdir); \
773 "against=$(against)" \
775 "AR_FLAGS=$(AR_FLAGS)" \
778 "LOADLIBES=$(LOADLIBES)" \
779 "LDFLAGS=$(LDFLAGS)" \
781 "MAKEINFO=$(MAKEINFO)" \
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); \
794 "against=$(against)" \
796 "AR_FLAGS=$(AR_FLAGS)" \
799 "LOADLIBES=$(LOADLIBES)" \
800 "LDFLAGS=$(LDFLAGS)" \
802 "MAKEINFO=$(MAKEINFO)" \
809 if [ -d $(unsubdir)/gnulib ] ; then \
810 rootme=`pwd` ; export rootme ; \
811 (cd $(unsubdir)/gnulib$(subdir); \
813 "against=$(against)" \
815 "AR_FLAGS=$(AR_FLAGS)" \
818 "LOADLIBES=$(LOADLIBES)" \
819 "LDFLAGS=$(LDFLAGS)" \
821 "MAKEINFO=$(MAKEINFO)" \
827 install-gnulib1: force
828 echo gnulib1 is a component, not an installable target
830 all-gnulib: just-gnulib
831 just-gnulib: all-gas all-gcc all-binutils force
833 if [ -d $(unsubdir)/gnulib ] ; then \
834 rootme=`pwd` ; export rootme ; \
835 (cd $(unsubdir)/gnulib$(subdir); \
837 "against=$(against)" \
839 "AR_FLAGS=$(AR_FLAGS)" \
842 "LOADLIBES=$(LOADLIBES)" \
843 "LDFLAGS=$(LDFLAGS)" \
845 "MAKEINFO=$(MAKEINFO)" \
852 if [ -d $(unsubdir)/gnulib ] ; then \
853 rootme=`pwd` ; export rootme ; \
854 (cd $(unsubdir)/gnulib$(subdir); \
856 "against=$(against)" \
858 "AR_FLAGS=$(AR_FLAGS)" \
861 "LOADLIBES=$(LOADLIBES)" \
862 "LDFLAGS=$(LDFLAGS)" \
864 "MAKEINFO=$(MAKEINFO)" \
870 install-gnulib: force
871 if [ -d $(unsubdir)/gnulib ] ; then \
872 rootme=`pwd` ; export rootme ; \
873 (cd $(unsubdir)/gnulib$(subdir); \
875 "against=$(against)" \
877 "AR_FLAGS=$(AR_FLAGS)" \
880 "LOADLIBES=$(LOADLIBES)" \
881 "LDFLAGS=$(LDFLAGS)" \
883 "MAKEINFO=$(MAKEINFO)" \
890 .PHONY: 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); \
897 "against=$(against)" \
899 "AR_FLAGS=$(AR_FLAGS)" \
902 "LOADLIBES=$(LOADLIBES)" \
903 "LDFLAGS=$(LDFLAGS)" \
905 "MAKEINFO=$(MAKEINFO)" \
912 if [ -d $(unsubdir)/gdb ] ; then \
913 rootme=`pwd` ; export rootme ; \
914 (cd $(unsubdir)/gdb$(subdir); \
916 "against=$(against)" \
918 "AR_FLAGS=$(AR_FLAGS)" \
921 "LOADLIBES=$(LOADLIBES)" \
922 "LDFLAGS=$(LDFLAGS)" \
924 "MAKEINFO=$(MAKEINFO)" \
931 if [ -d $(unsubdir)/gdb ] ; then \
932 rootme=`pwd` ; export rootme ; \
933 (cd $(unsubdir)/gdb$(subdir); \
935 "against=$(against)" \
937 "AR_FLAGS=$(AR_FLAGS)" \
940 "LOADLIBES=$(LOADLIBES)" \
941 "LDFLAGS=$(LDFLAGS)" \
943 "MAKEINFO=$(MAKEINFO)" \
950 .PHONY: 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); \
957 "against=$(against)" \
959 "AR_FLAGS=$(AR_FLAGS)" \
962 "LOADLIBES=$(LOADLIBES)" \
963 "LDFLAGS=$(LDFLAGS)" \
965 "MAKEINFO=$(MAKEINFO)" \
972 if [ -d $(unsubdir)/make ] ; then \
973 rootme=`pwd` ; export rootme ; \
974 (cd $(unsubdir)/make$(subdir); \
976 "against=$(against)" \
978 "AR_FLAGS=$(AR_FLAGS)" \
981 "LOADLIBES=$(LOADLIBES)" \
982 "LDFLAGS=$(LDFLAGS)" \
984 "MAKEINFO=$(MAKEINFO)" \
991 if [ -d $(unsubdir)/make ] ; then \
992 rootme=`pwd` ; export rootme ; \
993 (cd $(unsubdir)/make$(subdir); \
995 "against=$(against)" \
997 "AR_FLAGS=$(AR_FLAGS)" \
1000 "LOADLIBES=$(LOADLIBES)" \
1001 "LDFLAGS=$(LDFLAGS)" \
1003 "MAKEINFO=$(MAKEINFO)" \
1010 .PHONY: all-diff just-diff
1013 if [ -d $(unsubdir)/diff ] ; then \
1014 rootme=`pwd` ; export rootme ; \
1015 (cd $(unsubdir)/diff$(subdir); \
1017 "against=$(against)" \
1019 "AR_FLAGS=$(AR_FLAGS)" \
1021 "RANLIB=$(RANLIB)" \
1022 "LOADLIBES=$(LOADLIBES)" \
1023 "LDFLAGS=$(LDFLAGS)" \
1025 "MAKEINFO=$(MAKEINFO)" \
1032 if [ -d $(unsubdir)/diff ] ; then \
1033 rootme=`pwd` ; export rootme ; \
1034 (cd $(unsubdir)/diff$(subdir); \
1036 "against=$(against)" \
1038 "AR_FLAGS=$(AR_FLAGS)" \
1040 "RANLIB=$(RANLIB)" \
1041 "LOADLIBES=$(LOADLIBES)" \
1042 "LDFLAGS=$(LDFLAGS)" \
1044 "MAKEINFO=$(MAKEINFO)" \
1051 if [ -d $(unsubdir)/diff ] ; then \
1052 rootme=`pwd` ; export rootme ; \
1053 (cd $(unsubdir)/diff/$(subdir); \
1055 "against=$(against)" \
1057 "AR_FLAGS=$(AR_FLAGS)" \
1059 "RANLIB=$(RANLIB)" \
1060 "LOADLIBES=$(LOADLIBES)" \
1061 "LDFLAGS=$(LDFLAGS)" \
1063 "MAKEINFO=$(MAKEINFO)" \
1070 .PHONY: all-grep just-grep
1073 if [ -d $(unsubdir)/grep ] ; then \
1074 rootme=`pwd` ; export rootme ; \
1075 (cd $(unsubdir)/grep$(subdir); \
1077 "against=$(against)" \
1079 "AR_FLAGS=$(AR_FLAGS)" \
1081 "RANLIB=$(RANLIB)" \
1082 "LOADLIBES=$(LOADLIBES)" \
1083 "LDFLAGS=$(LDFLAGS)" \
1085 "MAKEINFO=$(MAKEINFO)" \
1092 if [ -d $(unsubdir)/grep ] ; then \
1093 rootme=`pwd` ; export rootme ; \
1094 (cd $(unsubdir)/grep$(subdir); \
1096 "against=$(against)" \
1098 "AR_FLAGS=$(AR_FLAGS)" \
1100 "RANLIB=$(RANLIB)" \
1101 "LOADLIBES=$(LOADLIBES)" \
1102 "LDFLAGS=$(LDFLAGS)" \
1104 "MAKEINFO=$(MAKEINFO)" \
1111 if [ -d $(unsubdir)/grep ] ; then \
1112 rootme=`pwd` ; export rootme ; \
1113 (cd $(unsubdir)/grep$(subdir); \
1115 "against=$(against)" \
1117 "AR_FLAGS=$(AR_FLAGS)" \
1119 "RANLIB=$(RANLIB)" \
1120 "LOADLIBES=$(LOADLIBES)" \
1121 "LDFLAGS=$(LDFLAGS)" \
1123 "MAKEINFO=$(MAKEINFO)" \
1130 .PHONY: 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); \
1137 "against=$(against)" \
1139 "AR_FLAGS=$(AR_FLAGS)" \
1141 "RANLIB=$(RANLIB)" \
1142 "LOADLIBES=$(LOADLIBES)" \
1143 "LDFLAGS=$(LDFLAGS)" \
1145 "MAKEINFO=$(MAKEINFO)" \
1152 if [ -d $(unsubdir)/rcs ] ; then \
1153 rootme=`pwd` ; export rootme ; \
1154 (cd $(unsubdir)/rcs$(subdir); \
1156 "against=$(against)" \
1158 "AR_FLAGS=$(AR_FLAGS)" \
1160 "RANLIB=$(RANLIB)" \
1161 "LOADLIBES=$(LOADLIBES)" \
1162 "LDFLAGS=$(LDFLAGS)" \
1164 "MAKEINFO=$(MAKEINFO)" \
1170 install-rcs: install-grep install-diff force
1171 if [ -d $(unsubdir)/rcs ] ; then \
1172 rootme=`pwd` ; export rootme ; \
1173 (cd $(unsubdir)/rcs$(subdir); \
1175 "against=$(against)" \
1177 "AR_FLAGS=$(AR_FLAGS)" \
1179 "RANLIB=$(RANLIB)" \
1180 "LOADLIBES=$(LOADLIBES)" \
1181 "LDFLAGS=$(LDFLAGS)" \
1183 "MAKEINFO=$(MAKEINFO)" \
1190 .PHONY: all-gdbm just-gdbm
1193 if [ -d $(unsubdir)/gdbm ] ; then \
1194 rootme=`pwd` ; export rootme ; \
1195 (cd $(unsubdir)/gdbm$(subdir); \
1197 "against=$(against)" \
1199 "AR_FLAGS=$(AR_FLAGS)" \
1201 "RANLIB=$(RANLIB)" \
1202 "LOADLIBES=$(LOADLIBES)" \
1203 "LDFLAGS=$(LDFLAGS)" \
1205 "MAKEINFO=$(MAKEINFO)" \
1212 if [ -d $(unsubdir)/gdbm ] ; then \
1213 rootme=`pwd` ; export rootme ; \
1214 (cd $(unsubdir)/gdbm$(subdir); \
1216 "against=$(against)" \
1218 "AR_FLAGS=$(AR_FLAGS)" \
1220 "RANLIB=$(RANLIB)" \
1221 "LOADLIBES=$(LOADLIBES)" \
1222 "LDFLAGS=$(LDFLAGS)" \
1224 "MAKEINFO=$(MAKEINFO)" \
1231 if [ -d $(unsubdir)/gdbm ] ; then \
1232 rootme=`pwd` ; export rootme ; \
1233 (cd $(unsubdir)/gdbm$(subdir); \
1235 "against=$(against)" \
1237 "AR_FLAGS=$(AR_FLAGS)" \
1239 "RANLIB=$(RANLIB)" \
1240 "LOADLIBES=$(LOADLIBES)" \
1241 "LDFLAGS=$(LDFLAGS)" \
1243 "MAKEINFO=$(MAKEINFO)" \
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); \
1257 "against=$(against)" \
1259 "AR_FLAGS=$(AR_FLAGS)" \
1261 "RANLIB=$(RANLIB)" \
1262 "LOADLIBES=$(LOADLIBES)" \
1263 "LDFLAGS=$(LDFLAGS)" \
1265 "MAKEINFO=$(MAKEINFO)" \
1271 clean-cvs: clean-gdbm force
1272 if [ -d $(unsubdir)/cvs ] ; then \
1273 rootme=`pwd` ; export rootme ; \
1274 (cd $(unsubdir)/cvs$(subdir); \
1276 "against=$(against)" \
1278 "AR_FLAGS=$(AR_FLAGS)" \
1280 "RANLIB=$(RANLIB)" \
1281 "LOADLIBES=$(LOADLIBES)" \
1282 "LDFLAGS=$(LDFLAGS)" \
1284 "MAKEINFO=$(MAKEINFO)" \
1290 install-cvs: install-rcs install-gdbm force
1291 if [ -d $(unsubdir)/cvs ] ; then \
1292 rootme=`pwd` ; export rootme ; \
1293 (cd $(unsubdir)/cvs$(subdir); \
1295 "bindir=$(bindir)" \
1296 "mandir=$(man1dir)" \
1297 "against=$(against)" \
1299 "AR_FLAGS=$(AR_FLAGS)" \
1301 "RANLIB=$(RANLIB)" \
1302 "LOADLIBES=$(LOADLIBES)" \
1303 "LDFLAGS=$(LDFLAGS)" \
1305 "MAKEINFO=$(MAKEINFO)" \
1312 .PHONY: all-patch just-patch
1313 all-patch: just-patch
1315 if [ -d $(unsubdir)/patch ] ; then \
1316 rootme=`pwd` ; export rootme ; \
1317 (cd $(unsubdir)/patch$(subdir); \
1319 "against=$(against)" \
1321 "AR_FLAGS=$(AR_FLAGS)" \
1323 "RANLIB=$(RANLIB)" \
1324 "LOADLIBES=$(LOADLIBES)" \
1325 "LDFLAGS=$(LDFLAGS)" \
1327 "MAKEINFO=$(MAKEINFO)" \
1334 if [ -d $(unsubdir)/patch ] ; then \
1335 rootme=`pwd` ; export rootme ; \
1336 (cd $(unsubdir)/patch$(subdir); \
1338 "against=$(against)" \
1340 "AR_FLAGS=$(AR_FLAGS)" \
1342 "RANLIB=$(RANLIB)" \
1343 "LOADLIBES=$(LOADLIBES)" \
1344 "LDFLAGS=$(LDFLAGS)" \
1346 "MAKEINFO=$(MAKEINFO)" \
1352 install-patch: force
1353 if [ -d $(unsubdir)/patch ] ; then \
1354 rootme=`pwd` ; export rootme ; \
1355 (cd $(unsubdir)/patch$(subdir); \
1358 man1dir=$(man1dir) \
1360 "AR_FLAGS=$(AR_FLAGS)" \
1362 "RANLIB=$(RANLIB)" \
1363 "LOADLIBES=$(LOADLIBES)" \
1364 "LDFLAGS=$(LDFLAGS)" \
1366 "MAKEINFO=$(MAKEINFO)" \
1373 .PHONY: all-emacs just-emacs
1374 all-emacs: just-emacs
1376 if [ -d $(unsubdir)/emacs ] ; then \
1377 rootme=`pwd` ; export rootme ; \
1378 (cd $(unsubdir)/emacs$(subdir); \
1380 "against=$(against)" \
1382 "AR_FLAGS=$(AR_FLAGS)" \
1384 "RANLIB=$(RANLIB)" \
1385 "LOADLIBES=$(LOADLIBES)" \
1386 "LDFLAGS=$(LDFLAGS)" \
1388 "MAKEINFO=$(MAKEINFO)" \
1395 if [ -d $(unsubdir)/emacs ] ; then \
1396 rootme=`pwd` ; export rootme ; \
1397 (cd $(unsubdir)/emacs$(subdir); \
1399 "against=$(against)" \
1401 "AR_FLAGS=$(AR_FLAGS)" \
1403 "RANLIB=$(RANLIB)" \
1404 "LOADLIBES=$(LOADLIBES)" \
1405 "LDFLAGS=$(LDFLAGS)" \
1407 "MAKEINFO=$(MAKEINFO)" \
1413 install-emacs: install-rcs install-gdbm force
1414 if [ -d $(unsubdir)/emacs ] ; then \
1415 rootme=`pwd` ; export rootme ; \
1416 (cd $(unsubdir)/emacs$(subdir); \
1418 "against=$(against)" \
1420 "AR_FLAGS=$(AR_FLAGS)" \
1422 "RANLIB=$(RANLIB)" \
1423 "LOADLIBES=$(LOADLIBES)" \
1424 "LDFLAGS=$(LDFLAGS)" \
1426 "MAKEINFO=$(MAKEINFO)" \
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); \
1440 "against=$(against)" \
1442 "AR_FLAGS=$(AR_FLAGS)" \
1444 "RANLIB=$(RANLIB)" \
1445 "LOADLIBES=$(LOADLIBES)" \
1446 "LDFLAGS=$(LDFLAGS)" \
1448 "MAKEINFO=$(MAKEINFO)" \
1455 if [ -d $(unsubdir)/ispell ] ; then \
1456 rootme=`pwd` ; export rootme ; \
1457 (cd $(unsubdir)/ispell$(subdir); \
1459 "against=$(against)" \
1461 "AR_FLAGS=$(AR_FLAGS)" \
1463 "RANLIB=$(RANLIB)" \
1464 "LOADLIBES=$(LOADLIBES)" \
1465 "LDFLAGS=$(LDFLAGS)" \
1467 "MAKEINFO=$(MAKEINFO)" \
1473 install-ispell: install-rcs install-gdbm force
1474 if [ -d $(unsubdir)/ispell ] ; then \
1475 rootme=`pwd` ; export rootme ; \
1476 (cd $(unsubdir)/ispell$(subdir); \
1478 "against=$(against)" \
1480 "AR_FLAGS=$(AR_FLAGS)" \
1482 "RANLIB=$(RANLIB)" \
1483 "LOADLIBES=$(LOADLIBES)" \
1484 "LDFLAGS=$(LDFLAGS)" \
1486 "MAKEINFO=$(MAKEINFO)" \
1493 .PHONY: all-flex just-flex
1496 if [ -d $(unsubdir)/flex ] ; then \
1497 rootme=`pwd` ; export rootme ; \
1498 (cd $(unsubdir)/flex$(subdir); \
1500 "against=$(against)" \
1502 "AR_FLAGS=$(AR_FLAGS)" \
1504 "RANLIB=$(RANLIB)" \
1505 "LOADLIBES=$(LOADLIBES)" \
1506 "LDFLAGS=$(LDFLAGS)" \
1508 "MAKEINFO=$(MAKEINFO)" \
1515 if [ -d $(unsubdir)/flex ] ; then \
1516 rootme=`pwd` ; export rootme ; \
1517 (cd $(unsubdir)/flex$(subdir); \
1519 "against=$(against)" \
1521 "AR_FLAGS=$(AR_FLAGS)" \
1523 "RANLIB=$(RANLIB)" \
1524 "LOADLIBES=$(LOADLIBES)" \
1525 "LDFLAGS=$(LDFLAGS)" \
1527 "MAKEINFO=$(MAKEINFO)" \
1534 if [ -d $(unsubdir)/flex ] ; then \
1535 rootme=`pwd` ; export rootme ; \
1536 (cd $(unsubdir)/flex$(subdir); \
1538 "against=$(against)" \
1540 "AR_FLAGS=$(AR_FLAGS)" \
1542 "RANLIB=$(RANLIB)" \
1543 "LOADLIBES=$(LOADLIBES)" \
1544 "LDFLAGS=$(LDFLAGS)" \
1546 "MAKEINFO=$(MAKEINFO)" \
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); \
1560 "prefix=$(prefix)" \
1561 "datadir=$(datadir)" \
1562 "mandir=$(mandir)" \
1563 "against=$(against)" \
1565 "AR_FLAGS=$(AR_FLAGS)" \
1567 "RANLIB=$(RANLIB)" \
1568 "LOADLIBES=$(LOADLIBES)" \
1569 "LDFLAGS=$(LDFLAGS)" \
1571 "MAKEINFO=$(MAKEINFO)" \
1577 clean-fileutils: force
1578 if [ -d $(unsubdir)/fileutils ] ; then \
1579 rootme=`pwd` ; export rootme ; \
1580 (cd $(unsubdir)/fileutils$(subdir); \
1582 "prefix=$(prefix)" \
1583 "datadir=$(datadir)" \
1584 "mandir=$(mandir)" \
1585 "against=$(against)" \
1587 "AR_FLAGS=$(AR_FLAGS)" \
1589 "RANLIB=$(RANLIB)" \
1590 "LOADLIBES=$(LOADLIBES)" \
1591 "LDFLAGS=$(LDFLAGS)" \
1593 "MAKEINFO=$(MAKEINFO)" \
1599 install-fileutils: force
1600 if [ -d $(unsubdir)/fileutils ] ; then \
1601 rootme=`pwd` ; export rootme ; \
1602 (cd $(unsubdir)/fileutils$(subdir); \
1604 "prefix=$(prefix)" \
1605 "datadir=$(datadir)" \
1606 "mandir=$(mandir)" \
1607 "against=$(against)" \
1609 "AR_FLAGS=$(AR_FLAGS)" \
1611 "RANLIB=$(RANLIB)" \
1612 "LOADLIBES=$(LOADLIBES)" \
1613 "LDFLAGS=$(LDFLAGS)" \
1615 "MAKEINFO=$(MAKEINFO)" \
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!!!
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); \
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)" \
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)" \
1646 "MAKEINFO=$(MAKEINFO)" \
1653 if [ -d $(unsubdir)/libg++ ] ; then \
1654 rootme=`pwd` ; export rootme ; \
1655 (cd $(unsubdir)/libg++$(subdir); \
1657 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
1658 "prefix=$(prefix)" \
1659 "datadir=$(datadir)" \
1660 "mandir=$(mandir)" \
1661 "against=$(against)" \
1663 "AR_FLAGS=$(AR_FLAGS)" \
1665 "RANLIB=$(RANLIB)" \
1666 "LOADLIBES=$(LOADLIBES)" \
1667 "LDFLAGS=$(LDFLAGS)" \
1669 "MAKEINFO=$(MAKEINFO)" \
1675 install-libg++: force
1676 if [ -d $(unsubdir)/libg++ ] ; then \
1677 rootme=`pwd` ; export rootme ; \
1678 (cd $(unsubdir)/libg++$(subdir); \
1680 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
1681 "prefix=$(prefix)" \
1682 "datadir=$(datadir)" \
1683 "mandir=$(mandir)" \
1684 "against=$(against)" \
1686 "AR_FLAGS=$(AR_FLAGS)" \
1688 "RANLIB=$(RANLIB)" \
1689 "LOADLIBES=$(LOADLIBES)" \
1690 "LDFLAGS=$(LDFLAGS)" \
1692 "MAKEINFO=$(MAKEINFO)" \
1698 ### other supporting targets
1699 # this is a bad hack.
1700 all.xclib: all.normal
1701 if [ -d clib ] ; then \
1702 (cd clib ; $(MAKE)) ; \
1706 for i in $(DODIRS); do \
1707 if [ -f $(unsubdir)/$$i/localenv ] ; then \
1708 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
1710 "against=$(against)" \
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); \
1718 "against=$(against)" \
1720 "AR_FLAGS=$(AR_FLAGS)" \
1722 "RANLIB=$(RANLIB)" \
1723 "LOADLIBES=$(LOADLIBES)" \
1724 "LDFLAGS=$(LDFLAGS)" \
1726 "MAKEINFO=$(MAKEINFO)" \
1727 $(DO)) ; then true ; \
1728 else exit 1 ; fi ; \
1736 $(MAKE) pass "stagepass=stage1"
1738 $(MAKE) pass "stagepass=stage2"
1742 $(MAKE) pass "stagepass=stage1"
1744 $(MAKE) pass "stagepass=stage2"
1748 $(MAKE) pass "stagepass=stage2"
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)/"
1769 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
1772 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
1775 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
1778 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
1782 comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
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)"
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.
1812 for i in $(MAKEDIRS) ; do \
1813 echo Making $$i... ; \
1814 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
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
1827 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1828 mv -f dir.info.new dir.info
1837 @for i in $(SUBDIRS); \
1841 wd=`basename $$pwd`; \
1842 for j in `$(MAKE) ls`; \
1850 # with the gnu make, this is done automatically.
1852 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1853 $(SHELL) ./config.status
1856 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
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
1863 setup-dirs: force_update
1866 ./configure -rm sun4
1867 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
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
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
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 \
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
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)
1917 # end of Makefile.in