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