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 $(unsubdir)/../bison ] ; \
52 then echo \`pwd\
`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\
`/$(unsubdir)/../bison$(subdir)/ -y ; \
53 else echo bison -y ; fi`
56 FRESHMAKEINFO
= `if [ -d $(unsubdir)/../texinfo/C ] ; \
57 then echo \`pwd\
`/$(unsubdir)/../texinfo/C$(subdir)/makeinfo ; \
60 #\`(cd $(srcdir)/bison ; \\`pwd\\`)\`
61 SUBDIRS
= libiberty glob readline bfd gdb binutils
ld gas gcc libg
++ gnulib clib
65 INSTALL_TARGET
= install.
all
71 #### host and target specific makefile fragments come in here.
74 .PHONY
: all info install-info clean-info
79 $(MAKE
) subdir_do DO
=info "DODIRS=$(SUBDIRS)"
82 $(MAKE
) subdir_do DO
=clean-info
"DODIRS=$(SUBDIRS)"
85 cfg-paper.
info: cfg-paper.texi
86 $(MAKEINFO
) -o cfg-paper.
info $(srcdir)/cfg-paper.texi
88 configure.
info: configure.texi
89 $(MAKEINFO
) -o configure.
info $(srcdir)/configure.texi
91 install-info
: install-info-dirs
force
92 $(MAKE
) subdir_do DO
=install-info
"DODIRS=$(SUBDIRS)"
93 $(INSTALL_DATA
) cfg-paper.
info $(infodir)/cfg-paper.
info
94 $(INSTALL_DATA
) configure.
info $(infodir)/configure.
info
95 $(MAKE
) dir.
info install-dir.
info
98 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
102 all.normal
: all-texinfo all-bison all-byacc all-flex all-ld \
103 all-gcc all-gas all-binutils \
104 all-libg
++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
105 all.cross
: all-bison all-ld all-gnulib all-gdb
106 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
108 clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
109 clean-bison clean-byacc clean-flex clean-ld clean-gas \
110 clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
111 clean-make clean-diff clean-grep clean-rcs clean-gdbm \
112 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
113 rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
115 install: $(INSTALL_TARGET
) $(srcdir)/configure.man
116 $(INSTALL_DATA
) $(srcdir)/configure.man
$(man1dir)/configure
.1
118 install.
all: install-dirs install-libiberty install-texinfo \
119 install-binutils install-bison install-byacc install-flex \
120 install-ld install-gas install-gcc install-gnulib \
121 install-readline install-glob install-gdb install-make \
122 install-cvs install-patch install-emacs install-ispell install-fileutils
123 install.cross
: install-dirs install-libiberty install-binutils install-bison \
124 install-byacc install-ld install-gas install-gnulib \
125 install-readline install-glob install-gdb
128 .PHONY
: all-libiberty just-libiberty
129 all-libiberty
: just-libiberty
130 just-libiberty
: force
131 if
[ -d
$(unsubdir
)/libiberty
] ; then \
132 (cd
$(unsubdir
)/libiberty
$(subdir
); \
134 "against=$(against)" \
136 "AR_FLAGS=$(AR_FLAGS)" \
139 "LOADLIBES=$(LOADLIBES)" \
140 "LDFLAGS=$(LDFLAGS)" \
142 "MAKEINFO=$(MAKEINFO)" \
148 clean-libiberty
: force
149 if
[ -d
$(unsubdir
)/libiberty
] ; then \
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 (cd
$(unsubdir
)/libiberty
$(subdir
); \
170 "against=$(against)" \
172 "AR_FLAGS=$(AR_FLAGS)" \
175 "LOADLIBES=$(LOADLIBES)" \
176 "LDFLAGS=$(LDFLAGS)" \
178 "MAKEINFO=$(MAKEINFO)" \
185 .PHONY
: all-texinfo just-texinfo
186 all-texinfo
: just-texinfo
187 just-texinfo
: just-libiberty
force
188 if
[ -d
$(unsubdir
)/texinfo
] ; then \
189 (cd
$(unsubdir
)/texinfo
$(subdir
); \
191 "against=$(against)" \
193 "AR_FLAGS=$(AR_FLAGS)" \
196 "LOADLIBES=$(LOADLIBES)" \
197 "LDFLAGS=$(LDFLAGS)" \
199 "MAKEINFO=$(MAKEINFO)" \
206 if
[ -d
$(unsubdir
)/texinfo
] ; then \
207 (cd
$(unsubdir
)/texinfo
$(subdir
); \
209 "against=$(against)" \
211 "AR_FLAGS=$(AR_FLAGS)" \
214 "LOADLIBES=$(LOADLIBES)" \
215 "LDFLAGS=$(LDFLAGS)" \
217 "MAKEINFO=$(MAKEINFO)" \
223 install-texinfo
: force
224 if
[ -d
$(unsubdir
)/texinfo
] ; then \
225 (cd
$(unsubdir
)/texinfo
$(subdir
); \
227 "against=$(against)" \
229 "AR_FLAGS=$(AR_FLAGS)" \
232 "LOADLIBES=$(LOADLIBES)" \
233 "LDFLAGS=$(LDFLAGS)" \
235 "MAKEINFO=$(MAKEINFO)" \
242 .PHONY
: all-bfd just-bfd
245 if
[ -d
$(unsubdir
)/bfd
] ; then \
246 (cd
$(unsubdir
)/bfd
$(subdir
); \
248 "against=$(against)" \
250 "AR_FLAGS=$(AR_FLAGS)" \
253 "LOADLIBES=$(LOADLIBES)" \
254 "LDFLAGS=$(LDFLAGS)" \
256 "MAKEINFO=$(MAKEINFO)" \
263 if
[ -d
$(unsubdir
)/bfd
] ; then \
264 (cd
$(unsubdir
)/bfd
$(subdir
); \
266 "against=$(against)" \
268 "AR_FLAGS=$(AR_FLAGS)" \
271 "LOADLIBES=$(LOADLIBES)" \
272 "LDFLAGS=$(LDFLAGS)" \
274 "MAKEINFO=$(MAKEINFO)" \
281 if
[ -d
$(unsubdir
)/bfd
] ; then \
282 (cd
$(unsubdir
)/bfd
$(subdir
); \
284 "against=$(against)" \
286 "AR_FLAGS=$(AR_FLAGS)" \
289 "LOADLIBES=$(LOADLIBES)" \
290 "LDFLAGS=$(LDFLAGS)" \
292 "MAKEINFO=$(MAKEINFO)" \
299 .PHONY
: all-binutils just-binutils
300 all-binutils
: just-binutils
301 just-binutils
: just-libiberty just-bfd
force
302 if
[ -d
$(unsubdir
)/binutils
] ; then \
303 (cd
$(unsubdir
)/binutils
$(subdir
); \
305 "against=$(against)" \
307 "AR_FLAGS=$(AR_FLAGS)" \
310 "LOADLIBES=$(LOADLIBES)" \
311 "LDFLAGS=$(LDFLAGS)" \
313 "MAKEINFO=$(MAKEINFO)" \
319 clean-binutils
: force
320 if
[ -d
$(unsubdir
)/binutils
] ; then \
321 (cd
$(unsubdir
)/binutils
$(subdir
); \
323 "against=$(against)" \
325 "AR_FLAGS=$(AR_FLAGS)" \
328 "LOADLIBES=$(LOADLIBES)" \
329 "LDFLAGS=$(LDFLAGS)" \
331 "MAKEINFO=$(MAKEINFO)" \
337 install-binutils
: force
338 if
[ -d
$(unsubdir
)/binutils
] ; then \
339 (cd
$(unsubdir
)/binutils
$(subdir
); \
341 "against=$(against)" \
343 "AR_FLAGS=$(AR_FLAGS)" \
346 "LOADLIBES=$(LOADLIBES)" \
347 "LDFLAGS=$(LDFLAGS)" \
349 "MAKEINFO=$(MAKEINFO)" \
356 .PHONY
: all-byacc just-byacc
357 all-byacc
: just-byacc
359 if
[ -d
$(unsubdir
)/byacc
] ; then \
360 (cd
$(unsubdir
)/byacc
$(subdir
); \
362 "against=$(against)" \
364 "AR_FLAGS=$(AR_FLAGS)" \
367 "LOADLIBES=$(LOADLIBES)" \
368 "LDFLAGS=$(LDFLAGS)" \
370 "MAKEINFO=$(MAKEINFO)" \
377 if
[ -d
$(unsubdir
)/byacc
] ; then \
378 (cd
$(unsubdir
)/byacc
$(subdir
); \
380 "against=$(against)" \
382 "AR_FLAGS=$(AR_FLAGS)" \
385 "LOADLIBES=$(LOADLIBES)" \
386 "LDFLAGS=$(LDFLAGS)" \
388 "MAKEINFO=$(MAKEINFO)" \
395 if
[ -d
$(unsubdir
)/byacc
] ; then \
396 (cd
$(unsubdir
)/byacc
$(subdir
); \
398 "against=$(against)" \
400 "AR_FLAGS=$(AR_FLAGS)" \
403 "LOADLIBES=$(LOADLIBES)" \
404 "LDFLAGS=$(LDFLAGS)" \
406 "MAKEINFO=$(MAKEINFO)" \
413 .PHONY
: all-bison just-bison
414 all-bison
: just-bison
415 just-bison
: just-libiberty
force
416 if
[ -d
$(unsubdir
)/bison
] ; then \
417 (cd
$(unsubdir
)/bison
$(subdir
); \
419 "against=$(against)" \
421 "AR_FLAGS=$(AR_FLAGS)" \
424 "LOADLIBES=$(LOADLIBES)" \
425 "LDFLAGS=$(LDFLAGS)" \
427 "MAKEINFO=$(MAKEINFO)" \
434 if
[ -d
$(unsubdir
)/bison
] ; then \
435 (cd
$(unsubdir
)/bison
$(subdir
); \
437 "against=$(against)" \
439 "AR_FLAGS=$(AR_FLAGS)" \
442 "LOADLIBES=$(LOADLIBES)" \
443 "LDFLAGS=$(LDFLAGS)" \
445 "MAKEINFO=$(MAKEINFO)" \
452 if
[ -d
$(unsubdir
)/bison
] ; then \
453 (cd
$(unsubdir
)/bison
$(subdir
); \
455 "against=$(against)" \
457 "AR_FLAGS=$(AR_FLAGS)" \
460 "LOADLIBES=$(LOADLIBES)" \
461 "LDFLAGS=$(LDFLAGS)" \
463 "MAKEINFO=$(MAKEINFO)" \
470 .PHONY
: all-gcc just-gcc
472 #just-gcc: just-libiberty just-bison just-gnulib1 force
473 just-gcc
: just-libiberty just-bison
force
474 if
[ -d
$(unsubdir
)/gcc
] ; then \
475 (cd
$(unsubdir
)/gcc
$(subdir
); \
477 "against=$(against)" \
479 "AR_FLAGS=$(AR_FLAGS)" \
482 "LOADLIBES=$(LOADLIBES)" \
483 "LDFLAGS=$(LDFLAGS)" \
485 "MAKEINFO=$(MAKEINFO)" \
492 if
[ -d
$(unsubdir
)/gcc
] ; then \
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 (cd
$(unsubdir
)/gcc
$(subdir
); \
513 "against=$(against)" \
515 "AR_FLAGS=$(AR_FLAGS)" \
518 "LOADLIBES=$(LOADLIBES)" \
519 "LDFLAGS=$(LDFLAGS)" \
521 "MAKEINFO=$(MAKEINFO)" \
528 .PHONY
: all-readline just-readline
529 all-readline
: just-readline
531 if
[ -d
$(unsubdir
)/readline
] ; then \
532 (cd
$(unsubdir
)/readline
$(subdir
); \
534 "against=$(against)" \
536 "AR_FLAGS=$(AR_FLAGS)" \
539 "LOADLIBES=$(LOADLIBES)" \
540 "LDFLAGS=$(LDFLAGS)" \
542 "MAKEINFO=$(MAKEINFO)" \
548 clean-readline
: force
549 if
[ -d
$(unsubdir
)/readline
] ; then \
550 (cd
$(unsubdir
)/readline
$(subdir
); \
552 "against=$(against)" \
554 "AR_FLAGS=$(AR_FLAGS)" \
557 "LOADLIBES=$(LOADLIBES)" \
558 "LDFLAGS=$(LDFLAGS)" \
560 "MAKEINFO=$(MAKEINFO)" \
566 install-readline
: force
567 if
[ -d
$(unsubdir
)/readline
] ; then \
568 (cd
$(unsubdir
)/readline
$(subdir
); \
570 "against=$(against)" \
572 "AR_FLAGS=$(AR_FLAGS)" \
575 "LOADLIBES=$(LOADLIBES)" \
576 "LDFLAGS=$(LDFLAGS)" \
578 "MAKEINFO=$(MAKEINFO)" \
585 .PHONY
: all-glob just-glob
588 if
[ -d
$(unsubdir
)/glob
] ; then \
589 (cd
$(unsubdir
)/glob
$(subdir
); \
591 "against=$(against)" \
593 "AR_FLAGS=$(AR_FLAGS)" \
596 "LOADLIBES=$(LOADLIBES)" \
597 "LDFLAGS=$(LDFLAGS)" \
599 "MAKEINFO=$(MAKEINFO)" \
606 if
[ -d
$(unsubdir
)/glob
] ; then \
607 (cd
$(unsubdir
)/glob
$(subdir
); \
609 "against=$(against)" \
611 "AR_FLAGS=$(AR_FLAGS)" \
614 "LOADLIBES=$(LOADLIBES)" \
615 "LDFLAGS=$(LDFLAGS)" \
617 "MAKEINFO=$(MAKEINFO)" \
624 if
[ -d
$(unsubdir
)/glob
] ; then \
625 (cd
$(unsubdir
)/glob
$(subdir
); \
627 "against=$(against)" \
629 "AR_FLAGS=$(AR_FLAGS)" \
632 "LOADLIBES=$(LOADLIBES)" \
633 "LDFLAGS=$(LDFLAGS)" \
635 "MAKEINFO=$(MAKEINFO)" \
642 .PHONY
: all-gas just-gas
644 just-gas
: just-libiberty just-bfd
force
645 if
[ -d
$(unsubdir
)/gas
] ; then \
646 (cd
$(unsubdir
)/gas
$(subdir
); \
648 "against=$(against)" \
650 "AR_FLAGS=$(AR_FLAGS)" \
653 "LOADLIBES=$(LOADLIBES)" \
654 "LDFLAGS=$(LDFLAGS)" \
656 "MAKEINFO=$(MAKEINFO)" \
663 if
[ -d
$(unsubdir
)/gas
] ; then \
664 (cd
$(unsubdir
)/gas
$(subdir
); \
666 "against=$(against)" \
668 "AR_FLAGS=$(AR_FLAGS)" \
671 "LOADLIBES=$(LOADLIBES)" \
672 "LDFLAGS=$(LDFLAGS)" \
674 "MAKEINFO=$(MAKEINFO)" \
681 if
[ -d
$(unsubdir
)/gas
] ; then \
682 (cd
$(unsubdir
)/gas
$(subdir
); \
684 "against=$(against)" \
686 "AR_FLAGS=$(AR_FLAGS)" \
689 "LOADLIBES=$(LOADLIBES)" \
690 "LDFLAGS=$(LDFLAGS)" \
692 "MAKEINFO=$(MAKEINFO)" \
699 .PHONY
: all-ld just-ld
701 just-ld
: just-libiberty just-bfd just-bison
force
702 if
[ -d
$(unsubdir
)/ld ] ; then \
703 (cd
$(unsubdir
)/ld$(subdir
); \
705 "against=$(against)" \
707 "AR_FLAGS=$(AR_FLAGS)" \
710 "LOADLIBES=$(LOADLIBES)" \
711 "LDFLAGS=$(LDFLAGS)" \
713 "MAKEINFO=$(MAKEINFO)" \
720 if
[ -d
$(unsubdir
)/ld ] ; then \
721 (cd
$(unsubdir
)/ld$(subdir
); \
723 "against=$(against)" \
725 "AR_FLAGS=$(AR_FLAGS)" \
728 "LOADLIBES=$(LOADLIBES)" \
729 "LDFLAGS=$(LDFLAGS)" \
731 "MAKEINFO=$(MAKEINFO)" \
738 if
[ -d
$(unsubdir
)/ld ] ; then \
739 (cd
$(unsubdir
)/ld$(subdir
); \
741 "against=$(against)" \
743 "AR_FLAGS=$(AR_FLAGS)" \
746 "LOADLIBES=$(LOADLIBES)" \
747 "LDFLAGS=$(LDFLAGS)" \
749 "MAKEINFO=$(MAKEINFO)" \
755 ### gnulib (and gnulib1)
756 .PHONY
: all-gnulib just-gnulib1 just-gnulib
757 just-gnulib1
: all-gas all-binutils
force
758 if
[ -d
$(unsubdir
)/gnulib
] ; then \
759 (cd
$(unsubdir
)/gnulib
$(subdir
); \
761 "against=$(against)" \
763 "AR_FLAGS=$(AR_FLAGS)" \
766 "LOADLIBES=$(LOADLIBES)" \
767 "LDFLAGS=$(LDFLAGS)" \
769 "MAKEINFO=$(MAKEINFO)" \
776 if
[ -d
$(unsubdir
)/gnulib
] ; then \
777 (cd
$(unsubdir
)/gnulib
$(subdir
); \
779 "against=$(against)" \
781 "AR_FLAGS=$(AR_FLAGS)" \
784 "LOADLIBES=$(LOADLIBES)" \
785 "LDFLAGS=$(LDFLAGS)" \
787 "MAKEINFO=$(MAKEINFO)" \
793 install-gnulib1
: force
794 echo gnulib1 is a component
, not an installable target
796 all-gnulib
: just-gnulib
797 just-gnulib
: all-gcc all-gas all-binutils
force
799 if
[ -d
$(unsubdir
)/gnulib
] ; then \
800 (cd
$(unsubdir
)/gnulib
$(subdir
); \
802 "against=$(against)" \
804 "AR_FLAGS=$(AR_FLAGS)" \
807 "LOADLIBES=$(LOADLIBES)" \
808 "LDFLAGS=$(LDFLAGS)" \
810 "MAKEINFO=$(MAKEINFO)" \
817 if
[ -d
$(unsubdir
)/gnulib
] ; then \
818 (cd
$(unsubdir
)/gnulib
$(subdir
); \
820 "against=$(against)" \
822 "AR_FLAGS=$(AR_FLAGS)" \
825 "LOADLIBES=$(LOADLIBES)" \
826 "LDFLAGS=$(LDFLAGS)" \
828 "MAKEINFO=$(MAKEINFO)" \
834 install-gnulib
: force
835 if
[ -d
$(unsubdir
)/gnulib
] ; then \
836 (cd
$(unsubdir
)/gnulib
$(subdir
); \
838 "against=$(against)" \
840 "AR_FLAGS=$(AR_FLAGS)" \
843 "LOADLIBES=$(LOADLIBES)" \
844 "LDFLAGS=$(LDFLAGS)" \
846 "MAKEINFO=$(MAKEINFO)" \
853 .PHONY
: all-gdb just-gdb
855 just-gdb
: just-bfd just-libiberty just-readline just-glob just-bison
force
856 if
[ -d
$(unsubdir
)/gdb
] ; then \
857 (cd
$(unsubdir
)/gdb
$(subdir
); \
859 "against=$(against)" \
861 "AR_FLAGS=$(AR_FLAGS)" \
864 "LOADLIBES=$(LOADLIBES)" \
865 "LDFLAGS=$(LDFLAGS)" \
867 "MAKEINFO=$(MAKEINFO)" \
874 if
[ -d
$(unsubdir
)/gdb
] ; then \
875 (cd
$(unsubdir
)/gdb
$(subdir
); \
877 "against=$(against)" \
879 "AR_FLAGS=$(AR_FLAGS)" \
882 "LOADLIBES=$(LOADLIBES)" \
883 "LDFLAGS=$(LDFLAGS)" \
885 "MAKEINFO=$(MAKEINFO)" \
892 if
[ -d
$(unsubdir
)/gdb
] ; then \
893 (cd
$(unsubdir
)/gdb
$(subdir
); \
895 "against=$(against)" \
897 "AR_FLAGS=$(AR_FLAGS)" \
900 "LOADLIBES=$(LOADLIBES)" \
901 "LDFLAGS=$(LDFLAGS)" \
903 "MAKEINFO=$(MAKEINFO)" \
910 .PHONY
: all-make just-make
912 just-make
: all-libiberty
force
913 if
[ -d
$(unsubdir
)/make
] ; then \
914 (cd
$(unsubdir
)/make
$(subdir
); \
916 "against=$(against)" \
918 "AR_FLAGS=$(AR_FLAGS)" \
921 "LOADLIBES=$(LOADLIBES)" \
922 "LDFLAGS=$(LDFLAGS)" \
924 "MAKEINFO=$(MAKEINFO)" \
931 if
[ -d
$(unsubdir
)/make
] ; then \
932 (cd
$(unsubdir
)/make
$(subdir
); \
934 "against=$(against)" \
936 "AR_FLAGS=$(AR_FLAGS)" \
939 "LOADLIBES=$(LOADLIBES)" \
940 "LDFLAGS=$(LDFLAGS)" \
942 "MAKEINFO=$(MAKEINFO)" \
949 if
[ -d
$(unsubdir
)/make
] ; then \
950 (cd
$(unsubdir
)/make
$(subdir
); \
952 "against=$(against)" \
954 "AR_FLAGS=$(AR_FLAGS)" \
957 "LOADLIBES=$(LOADLIBES)" \
958 "LDFLAGS=$(LDFLAGS)" \
960 "MAKEINFO=$(MAKEINFO)" \
967 .PHONY
: all-diff just-diff
970 if
[ -d
$(unsubdir
)/diff
] ; then \
971 (cd
$(unsubdir
)/diff
$(subdir
); \
973 "against=$(against)" \
975 "AR_FLAGS=$(AR_FLAGS)" \
978 "LOADLIBES=$(LOADLIBES)" \
979 "LDFLAGS=$(LDFLAGS)" \
981 "MAKEINFO=$(MAKEINFO)" \
988 if
[ -d
$(unsubdir
)/diff
] ; then \
989 (cd
$(unsubdir
)/diff
$(subdir
); \
991 "against=$(against)" \
993 "AR_FLAGS=$(AR_FLAGS)" \
996 "LOADLIBES=$(LOADLIBES)" \
997 "LDFLAGS=$(LDFLAGS)" \
999 "MAKEINFO=$(MAKEINFO)" \
1006 if
[ -d
$(unsubdir
)/diff
] ; then \
1007 (cd
$(unsubdir
)/diff
/$(subdir
); \
1009 "against=$(against)" \
1011 "AR_FLAGS=$(AR_FLAGS)" \
1013 "RANLIB=$(RANLIB)" \
1014 "LOADLIBES=$(LOADLIBES)" \
1015 "LDFLAGS=$(LDFLAGS)" \
1017 "MAKEINFO=$(MAKEINFO)" \
1024 .PHONY
: all-grep just-grep
1027 if
[ -d
$(unsubdir
)/grep
] ; then \
1028 (cd
$(unsubdir
)/grep
$(subdir
); \
1030 "against=$(against)" \
1032 "AR_FLAGS=$(AR_FLAGS)" \
1034 "RANLIB=$(RANLIB)" \
1035 "LOADLIBES=$(LOADLIBES)" \
1036 "LDFLAGS=$(LDFLAGS)" \
1038 "MAKEINFO=$(MAKEINFO)" \
1045 if
[ -d
$(unsubdir
)/grep
] ; then \
1046 (cd
$(unsubdir
)/grep
$(subdir
); \
1048 "against=$(against)" \
1050 "AR_FLAGS=$(AR_FLAGS)" \
1052 "RANLIB=$(RANLIB)" \
1053 "LOADLIBES=$(LOADLIBES)" \
1054 "LDFLAGS=$(LDFLAGS)" \
1056 "MAKEINFO=$(MAKEINFO)" \
1063 if
[ -d
$(unsubdir
)/grep
] ; then \
1064 (cd
$(unsubdir
)/grep
$(subdir
); \
1066 "against=$(against)" \
1068 "AR_FLAGS=$(AR_FLAGS)" \
1070 "RANLIB=$(RANLIB)" \
1071 "LOADLIBES=$(LOADLIBES)" \
1072 "LDFLAGS=$(LDFLAGS)" \
1074 "MAKEINFO=$(MAKEINFO)" \
1081 .PHONY
: all-rcs just-rcs
1083 just-rcs
: just-diff just-grep
force
1084 if
[ -d
$(unsubdir
)/rcs
] ; then \
1085 (cd
$(unsubdir
)/rcs
$(subdir
); \
1087 "against=$(against)" \
1089 "AR_FLAGS=$(AR_FLAGS)" \
1091 "RANLIB=$(RANLIB)" \
1092 "LOADLIBES=$(LOADLIBES)" \
1093 "LDFLAGS=$(LDFLAGS)" \
1095 "MAKEINFO=$(MAKEINFO)" \
1102 if
[ -d
$(unsubdir
)/rcs
] ; then \
1103 (cd
$(unsubdir
)/rcs
$(subdir
); \
1105 "against=$(against)" \
1107 "AR_FLAGS=$(AR_FLAGS)" \
1109 "RANLIB=$(RANLIB)" \
1110 "LOADLIBES=$(LOADLIBES)" \
1111 "LDFLAGS=$(LDFLAGS)" \
1113 "MAKEINFO=$(MAKEINFO)" \
1119 install-rcs
: install-grep install-diff
force
1120 if
[ -d
$(unsubdir
)/rcs
] ; then \
1121 (cd
$(unsubdir
)/rcs
$(subdir
); \
1123 "against=$(against)" \
1125 "AR_FLAGS=$(AR_FLAGS)" \
1127 "RANLIB=$(RANLIB)" \
1128 "LOADLIBES=$(LOADLIBES)" \
1129 "LDFLAGS=$(LDFLAGS)" \
1131 "MAKEINFO=$(MAKEINFO)" \
1138 .PHONY
: all-gdbm just-gdbm
1141 if
[ -d
$(unsubdir
)/gdbm
] ; then \
1142 (cd
$(unsubdir
)/gdbm
$(subdir
); \
1144 "against=$(against)" \
1146 "AR_FLAGS=$(AR_FLAGS)" \
1148 "RANLIB=$(RANLIB)" \
1149 "LOADLIBES=$(LOADLIBES)" \
1150 "LDFLAGS=$(LDFLAGS)" \
1152 "MAKEINFO=$(MAKEINFO)" \
1159 if
[ -d
$(unsubdir
)/gdbm
] ; then \
1160 (cd
$(unsubdir
)/gdbm
$(subdir
); \
1162 "against=$(against)" \
1164 "AR_FLAGS=$(AR_FLAGS)" \
1166 "RANLIB=$(RANLIB)" \
1167 "LOADLIBES=$(LOADLIBES)" \
1168 "LDFLAGS=$(LDFLAGS)" \
1170 "MAKEINFO=$(MAKEINFO)" \
1177 if
[ -d
$(unsubdir
)/gdbm
] ; then \
1178 (cd
$(unsubdir
)/gdbm
$(subdir
); \
1180 "against=$(against)" \
1182 "AR_FLAGS=$(AR_FLAGS)" \
1184 "RANLIB=$(RANLIB)" \
1185 "LOADLIBES=$(LOADLIBES)" \
1186 "LDFLAGS=$(LDFLAGS)" \
1188 "MAKEINFO=$(MAKEINFO)" \
1195 .PHONY
: all-cvs just-cvs
1196 all-cvs
: just-cvs just-rcs just-grep just-diff
1197 just-cvs
: just-gdbm
force
1198 if
[ -d
$(unsubdir
)/cvs
] ; then \
1199 (cd
$(unsubdir
)/cvs
$(subdir
); \
1201 "against=$(against)" \
1203 "AR_FLAGS=$(AR_FLAGS)" \
1205 "RANLIB=$(RANLIB)" \
1206 "LOADLIBES=$(LOADLIBES)" \
1207 "LDFLAGS=$(LDFLAGS)" \
1209 "MAKEINFO=$(MAKEINFO)" \
1215 clean-cvs
: clean-gdbm
force
1216 if
[ -d
$(unsubdir
)/cvs
] ; then \
1217 (cd
$(unsubdir
)/cvs
$(subdir
); \
1219 "against=$(against)" \
1221 "AR_FLAGS=$(AR_FLAGS)" \
1223 "RANLIB=$(RANLIB)" \
1224 "LOADLIBES=$(LOADLIBES)" \
1225 "LDFLAGS=$(LDFLAGS)" \
1227 "MAKEINFO=$(MAKEINFO)" \
1233 install-cvs
: install-rcs install-gdbm
force
1234 if
[ -d
$(unsubdir
)/cvs
] ; then \
1235 (cd
$(unsubdir
)/cvs
$(subdir
); \
1237 "bindir=$(bindir)" \
1238 "mandir=$(man1dir)" \
1239 "against=$(against)" \
1241 "AR_FLAGS=$(AR_FLAGS)" \
1243 "RANLIB=$(RANLIB)" \
1244 "LOADLIBES=$(LOADLIBES)" \
1245 "LDFLAGS=$(LDFLAGS)" \
1247 "MAKEINFO=$(MAKEINFO)" \
1254 .PHONY
: all-patch just-patch
1255 all-patch
: just-patch
1257 if
[ -d
$(unsubdir
)/patch
] ; then \
1258 (cd
$(unsubdir
)/patch
$(subdir
); \
1260 "against=$(against)" \
1262 "AR_FLAGS=$(AR_FLAGS)" \
1264 "RANLIB=$(RANLIB)" \
1265 "LOADLIBES=$(LOADLIBES)" \
1266 "LDFLAGS=$(LDFLAGS)" \
1268 "MAKEINFO=$(MAKEINFO)" \
1275 if
[ -d
$(unsubdir
)/patch
] ; then \
1276 (cd
$(unsubdir
)/patch
$(subdir
); \
1278 "against=$(against)" \
1280 "AR_FLAGS=$(AR_FLAGS)" \
1282 "RANLIB=$(RANLIB)" \
1283 "LOADLIBES=$(LOADLIBES)" \
1284 "LDFLAGS=$(LDFLAGS)" \
1286 "MAKEINFO=$(MAKEINFO)" \
1292 install-patch
: force
1293 if
[ -d
$(unsubdir
)/patch
] ; then \
1294 (cd
$(unsubdir
)/patch
$(subdir
); \
1297 man1dir=$(man1dir) \
1299 "AR_FLAGS=$(AR_FLAGS)" \
1301 "RANLIB=$(RANLIB)" \
1302 "LOADLIBES=$(LOADLIBES)" \
1303 "LDFLAGS=$(LDFLAGS)" \
1305 "MAKEINFO=$(MAKEINFO)" \
1312 .PHONY
: all-emacs just-emacs
1313 all-emacs
: just-emacs
1315 if
[ -d
$(unsubdir
)/emacs
] ; then \
1316 (cd
$(unsubdir
)/emacs
$(subdir
); \
1318 "against=$(against)" \
1320 "AR_FLAGS=$(AR_FLAGS)" \
1322 "RANLIB=$(RANLIB)" \
1323 "LOADLIBES=$(LOADLIBES)" \
1324 "LDFLAGS=$(LDFLAGS)" \
1326 "MAKEINFO=$(MAKEINFO)" \
1333 if
[ -d
$(unsubdir
)/emacs
] ; then \
1334 (cd
$(unsubdir
)/emacs
$(subdir
); \
1336 "against=$(against)" \
1338 "AR_FLAGS=$(AR_FLAGS)" \
1340 "RANLIB=$(RANLIB)" \
1341 "LOADLIBES=$(LOADLIBES)" \
1342 "LDFLAGS=$(LDFLAGS)" \
1344 "MAKEINFO=$(MAKEINFO)" \
1350 install-emacs
: install-rcs install-gdbm
force
1351 if
[ -d
$(unsubdir
)/emacs
] ; then \
1352 (cd
$(unsubdir
)/emacs
$(subdir
); \
1354 "against=$(against)" \
1356 "AR_FLAGS=$(AR_FLAGS)" \
1358 "RANLIB=$(RANLIB)" \
1359 "LOADLIBES=$(LOADLIBES)" \
1360 "LDFLAGS=$(LDFLAGS)" \
1362 "MAKEINFO=$(MAKEINFO)" \
1369 .PHONY
: all-ispell just-ispell
1370 all-ispell
: just-ispell
1371 just-ispell
: all-emacs
force
1372 if
[ -d
$(unsubdir
)/ispell
] ; then \
1373 (cd
$(unsubdir
)/ispell
$(subdir
); \
1375 "against=$(against)" \
1377 "AR_FLAGS=$(AR_FLAGS)" \
1379 "RANLIB=$(RANLIB)" \
1380 "LOADLIBES=$(LOADLIBES)" \
1381 "LDFLAGS=$(LDFLAGS)" \
1383 "MAKEINFO=$(MAKEINFO)" \
1390 if
[ -d
$(unsubdir
)/ispell
] ; then \
1391 (cd
$(unsubdir
)/ispell
$(subdir
); \
1393 "against=$(against)" \
1395 "AR_FLAGS=$(AR_FLAGS)" \
1397 "RANLIB=$(RANLIB)" \
1398 "LOADLIBES=$(LOADLIBES)" \
1399 "LDFLAGS=$(LDFLAGS)" \
1401 "MAKEINFO=$(MAKEINFO)" \
1407 install-ispell
: install-rcs install-gdbm
force
1408 if
[ -d
$(unsubdir
)/ispell
] ; then \
1409 (cd
$(unsubdir
)/ispell
$(subdir
); \
1411 "against=$(against)" \
1413 "AR_FLAGS=$(AR_FLAGS)" \
1415 "RANLIB=$(RANLIB)" \
1416 "LOADLIBES=$(LOADLIBES)" \
1417 "LDFLAGS=$(LDFLAGS)" \
1419 "MAKEINFO=$(MAKEINFO)" \
1426 .PHONY
: all-flex just-flex
1429 if
[ -d
$(unsubdir
)/flex
] ; then \
1430 (cd
$(unsubdir
)/flex
$(subdir
); \
1432 "against=$(against)" \
1434 "AR_FLAGS=$(AR_FLAGS)" \
1436 "RANLIB=$(RANLIB)" \
1437 "LOADLIBES=$(LOADLIBES)" \
1438 "LDFLAGS=$(LDFLAGS)" \
1440 "MAKEINFO=$(MAKEINFO)" \
1447 if
[ -d
$(unsubdir
)/flex
] ; then \
1448 (cd
$(unsubdir
)/flex
$(subdir
); \
1450 "against=$(against)" \
1452 "AR_FLAGS=$(AR_FLAGS)" \
1454 "RANLIB=$(RANLIB)" \
1455 "LOADLIBES=$(LOADLIBES)" \
1456 "LDFLAGS=$(LDFLAGS)" \
1458 "MAKEINFO=$(MAKEINFO)" \
1465 if
[ -d
$(unsubdir
)/flex
] ; then \
1466 (cd
$(unsubdir
)/flex
$(subdir
); \
1468 "against=$(against)" \
1470 "AR_FLAGS=$(AR_FLAGS)" \
1472 "RANLIB=$(RANLIB)" \
1473 "LOADLIBES=$(LOADLIBES)" \
1474 "LDFLAGS=$(LDFLAGS)" \
1476 "MAKEINFO=$(MAKEINFO)" \
1483 .PHONY
: all-fileutils just-fileutils
1484 all-fileutils
: just-fileutils
1485 just-fileutils
: force
1486 if
[ -d
$(unsubdir
)/fileutils
] ; then \
1487 (cd
$(unsubdir
)/fileutils
$(subdir
); \
1489 "prefix=$(prefix)" \
1490 "datadir=$(datadir)" \
1491 "mandir=$(mandir)" \
1492 "against=$(against)" \
1494 "AR_FLAGS=$(AR_FLAGS)" \
1496 "RANLIB=$(RANLIB)" \
1497 "LOADLIBES=$(LOADLIBES)" \
1498 "LDFLAGS=$(LDFLAGS)" \
1500 "MAKEINFO=$(MAKEINFO)" \
1506 clean-fileutils
: force
1507 if
[ -d
$(unsubdir
)/fileutils
] ; then \
1508 (cd
$(unsubdir
)/fileutils
$(subdir
); \
1510 "prefix=$(prefix)" \
1511 "datadir=$(datadir)" \
1512 "mandir=$(mandir)" \
1513 "against=$(against)" \
1515 "AR_FLAGS=$(AR_FLAGS)" \
1517 "RANLIB=$(RANLIB)" \
1518 "LOADLIBES=$(LOADLIBES)" \
1519 "LDFLAGS=$(LDFLAGS)" \
1521 "MAKEINFO=$(MAKEINFO)" \
1527 install-fileutils
: force
1528 if
[ -d
$(unsubdir
)/fileutils
] ; then \
1529 (cd
$(unsubdir
)/fileutils
$(subdir
); \
1531 "prefix=$(prefix)" \
1532 "datadir=$(datadir)" \
1533 "mandir=$(mandir)" \
1534 "against=$(against)" \
1536 "AR_FLAGS=$(AR_FLAGS)" \
1538 "RANLIB=$(RANLIB)" \
1539 "LOADLIBES=$(LOADLIBES)" \
1540 "LDFLAGS=$(LDFLAGS)" \
1542 "MAKEINFO=$(MAKEINFO)" \
1549 .PHONY
: all-libg
++ just-libg
++
1550 all-libg
++: just-gcc just-libg
++
1551 # NOTE! We have added GXX= and XTRAFLAGS to the $(MAKE) line!!!
1553 # Do not clone this one.
1555 if
[ -d
$(unsubdir
)/libg
++ ] ; then \
1556 (cd
$(unsubdir
)/libg
++$(subdir
); \
1558 GXX
=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
1559 "XTRAFLAGS=-I"`cd $(unsubdir)/..$(subdir); pwd`/gcc
/include\
1560 "prefix=$(prefix)" \
1561 "datadir=$(datadir)" \
1562 "mandir=$(mandir)" \
1563 "against=$(against)" \
1565 "AR_FLAGS=$(AR_FLAGS)" \
1566 CC
=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
1567 "RANLIB=$(RANLIB)" \
1568 "LOADLIBES=$(LOADLIBES)" \
1569 "LDFLAGS=$(LDFLAGS)" \
1571 "MAKEINFO=$(MAKEINFO)" \
1578 if
[ -d
$(unsubdir
)/libg
++ ] ; then \
1579 (cd
$(unsubdir
)/libg
++$(subdir
); \
1581 "prefix=$(prefix)" \
1582 "datadir=$(datadir)" \
1583 "mandir=$(mandir)" \
1584 "against=$(against)" \
1586 "AR_FLAGS=$(AR_FLAGS)" \
1588 "RANLIB=$(RANLIB)" \
1589 "LOADLIBES=$(LOADLIBES)" \
1590 "LDFLAGS=$(LDFLAGS)" \
1592 "MAKEINFO=$(MAKEINFO)" \
1598 install-libg
++: force
1599 if
[ -d
$(unsubdir
)/libg
++ ] ; then \
1600 (cd
$(unsubdir
)/libg
++$(subdir
); \
1602 "prefix=$(prefix)" \
1603 "datadir=$(datadir)" \
1604 "mandir=$(mandir)" \
1605 "against=$(against)" \
1607 "AR_FLAGS=$(AR_FLAGS)" \
1609 "RANLIB=$(RANLIB)" \
1610 "LOADLIBES=$(LOADLIBES)" \
1611 "LDFLAGS=$(LDFLAGS)" \
1613 "MAKEINFO=$(MAKEINFO)" \
1619 ### other supporting targets
1620 # this is a bad hack.
1621 all.xclib
: all.normal
1622 if
[ -d clib
] ; then \
1623 (cd clib
; $(MAKE
)) ; \
1627 for i in
$(DODIRS
); do \
1628 if
[ -f
$(unsubdir
)/$$i/localenv
] ; then \
1629 if
(cd
$(unsubdir
)/$$i$(subdir
); \
1631 "against=$(against)" \
1633 "MAKEINFO=$(MAKEINFO)" \
1634 $(DO
)) ; then true
; \
1635 else exit
1 ; fi
; \
1636 else if
[ -d
$(unsubdir
)/$$i ] ; then \
1637 if
(cd
$(unsubdir
)/$$i$(subdir
); \
1639 "against=$(against)" \
1641 "AR_FLAGS=$(AR_FLAGS)" \
1643 "RANLIB=$(RANLIB)" \
1644 "LOADLIBES=$(LOADLIBES)" \
1645 "LDFLAGS=$(LDFLAGS)" \
1647 "MAKEINFO=$(MAKEINFO)" \
1648 $(DO
)) ; then true
; \
1649 else exit
1 ; fi
; \
1657 $(MAKE
) pass
"stagepass=stage1"
1659 $(MAKE
) pass
"stagepass=stage2"
1663 $(MAKE
) pass
"stagepass=stage1"
1665 $(MAKE
) pass
"stagepass=stage2"
1669 $(MAKE
) pass
"stagepass=stage2"
1673 cp
$(srcdir)/gcc
/gstdarg.h
$(unsubdir
)/gas
$(subdir
)/stdarg.h
1674 $(MAKE
) subdir_do
"DO=all info" "DODIRS=$(SUBDIRS)" \
1675 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
1676 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
1677 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1678 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1679 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
1680 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
1681 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
1682 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1683 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
1684 "LDFLAGS=-nostdlib /lib/crt0.o \
1685 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1686 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
1690 $(MAKE
) subdir_do DO
=stage1
"DODIRS=$(SUBDIRS)"
1693 $(MAKE
) subdir_do DO
=stage2
"DODIRS=$(SUBDIRS)"
1696 $(MAKE
) subdir_do DO
=stage3
"DODIRS=$(SUBDIRS)"
1699 $(MAKE
) subdir_do DO
=stage4
"DODIRS=$(SUBDIRS)"
1703 comparison
:; $(MAKE
) subdir_do DO
=comparison against
=$(against
) "DODIRS=$(SUBDIRS)"
1705 de-stage1
:; $(MAKE
) subdir_do DO
=de-stage1
"DODIRS=$(SUBDIRS)"
1706 de-stage2
:; $(MAKE
) subdir_do DO
=de-stage2
"DODIRS=$(SUBDIRS)"
1707 de-stage3
:; $(MAKE
) subdir_do DO
=de-stage3
"DODIRS=$(SUBDIRS)"
1708 de-stage4
:; $(MAKE
) subdir_do DO
=de-stage4
"DODIRS=$(SUBDIRS)"
1710 # The "else true" stuff is for Ultrix; the shell returns the exit code
1711 # of the "if" command, if no commands are run in the "then" or "else" part,
1712 # causing Make to quit.
1733 for i in
$(MAKEDIRS
) ; do \
1734 echo Making
$$i...
; \
1735 if
[ -d
$$i ] ; then true
; else mkdir
$$i || exit
1 ; fi
; \
1742 install-info-dirs
: force
1743 if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
1744 if
[ -d
$(datadir) ] ; then true
; else mkdir
$(datadir) ; fi
1745 if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
1748 $(srcdir)/texinfo
/gen-info-dir
$(infodir) > dir.
info.new
1749 mv
-f
dir.
info.new
dir.
info
1758 @for i in
$(SUBDIRS
); \
1762 wd
=`basename $$pwd`; \
1763 for j in
`$(MAKE) ls`; \
1771 # with the gnu make, this is done automatically.
1773 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
1774 $(SHELL
) .
/config.status
1777 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1779 DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
1780 config.sub config configure.man
1781 GDB_SUPPORT_DIRS
= bfd
include libiberty readline glob
1782 GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
1784 setup-dirs
: force_update
1787 .
/configure
-rm sun4
1788 chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1790 bfd.ilrt.
tar.Z
: setup-dirs
1791 rm -f bfd.ilrt.
tar.Z
1792 tar cf
- $(DEVO_SUPPORT
) $(GDB_SUPPORT_FILES
) \
1793 | compress
-v
>bfd.ilrt.
tar.Z
1795 gdb.
tar.Z
: setup-dirs
1796 (cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
1797 $(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
1799 make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
1800 rm -rf proto-toplev
; mkdir proto-toplev
1801 ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
1802 (cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
1805 # Put only one copy (four hard links) of COPYING in the tar file.
1806 rm proto-toplev
/bfd
/COPYING
1807 ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
1808 rm proto-toplev
/include/COPYING
1809 ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
1810 rm proto-toplev
/readline
/COPYING
1811 ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
1812 # Take out texinfo from configurable dirs
1813 rm proto-toplev
/configure.in
1814 sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
1815 # Take out glob from buildable dirs
1816 rm proto-toplev
/Makefile.in
1817 sed
'/^SUBDIRS =/s/glob //' <Makefile.in
>proto-toplev
/Makefile.in
1818 # Take out texinfo from buildable dirs
1819 cp proto-toplev
/Makefile.in temp.
$$
1820 sed
'/^all\.normal: /s/all-texinfo //' <temp.
$$ >temp1.
$$
1821 sed
'/^clean: /s/clean-texinfo //' <temp1.
$$ >temp.
$$
1822 sed
'/^install\.all: /s/install-texinfo //' <temp.
$$ >proto-toplev
/Makefile.in
1824 mkdir proto-toplev
/texinfo
1825 mkdir proto-toplev
/texinfo
/fsf
1826 ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
1827 chmod og
=u
`find proto-toplev -print`
1828 (VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1829 echo
"==> Making gdb-$$VER.tar.Z"; \
1830 ln
-s proto-toplev gdb-
$$VER; \
1831 tar cfh
- gdb-
$$VER \
1832 | compress
-v
>gdb-
$$VER.
tar.Z
)
1838 # end of Makefile.in