summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-31 10:18:58 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-31 10:18:58 +0000
commit0cd44e6d96381fe00ad231f0b0d8c97c4d50dddb (patch)
tree3d638e15fc255b23a9339b3e2049b9405f7a817b /gdb
parent899f21c5d0fda648ef428158face724189c5677b (diff)
downloadgdb-0cd44e6d96381fe00ad231f0b0d8c97c4d50dddb.tar.gz
Import texinfo.tex from texinfo-4.0.
Add support for ``make pdf'' to the gdb/doc directory using pdftex.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/ChangeLog9
-rw-r--r--gdb/doc/Makefile.in36
-rw-r--r--gdb/doc/gdb.texinfo12
-rw-r--r--gdb/doc/gdbint.texinfo15
-rw-r--r--gdb/doc/stabs.texinfo13
5 files changed, 79 insertions, 6 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index bf4c79f2869..8d95eba1eae 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,12 @@
+Fri May 26 15:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * Makefile.in (pdf, gdbint.pdf, gdb.pdf, stabs.pdf): New targets.
+ Generate using pdftex.
+ (PDFTEX): Define.
+ (STAGESTUFF, maintainer-clean realclean): Add *.pdf.
+ (gdb.texinfo, gdbint.texinfo, stabs.texinfo): When TeX insert the
+ @contents at the start.
+
2000-05-24 Eli Zaretskii <eliz@is.elta.co.il>
* gdb.texinfo: Remove duplicate @syncodeindex. From Brian
diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in
index ad3787ebe29..025c20ed68d 100644
--- a/gdb/doc/Makefile.in
+++ b/gdb/doc/Makefile.in
@@ -92,6 +92,9 @@ TEXINDEX = texindex
# Program to generate Postscript files from DVI files.
DVIPS = dvips
+# Program to generate PDF files from tex files.
+PDFTEX = pdftex
+
# Main GDB manual's source files
SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/annotate.texi
@@ -109,7 +112,8 @@ info: gdb.info gdbint.info stabs.info
dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi
ps: gdb.ps gdbint.ps stabs.ps refcard.ps
html: gdb_toc.html gdbint_toc.html stabs_toc.html
-all-doc: info dvi ps
+pdf: gdb.pdf gdbint.pdf stabs.pdf
+all-doc: info dvi ps # pdf
diststuff: info
install-info: info
@@ -130,7 +134,7 @@ install-html: html
$(INSTALL_DATA) $$i $(htmldir)/$$i ; \
done
-STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi
+STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi *.pdf
# Copy the object files from a particular stage into a subdirectory.
stage1: force
@@ -181,7 +185,7 @@ distclean: clean
# "clean" or "distclean". Use maintainer-clean to remove them.
maintainer-clean realclean: distclean
- rm -f GDBvn.texi *.info* *.dvi *.ps *.html
+ rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf
# GDB QUICK REFERENCE (dvi output)
refcard.dvi : refcard.tex $(REFEDITS)
@@ -243,6 +247,18 @@ gdb.dvi: ${SFILES_DOC}
gdb.ps: gdb.dvi
$(DVIPS) -o $@ $?
+gdb.pdf: ${SFILES_DOC}
+ if [ ! -f ./GDBvn.texi ]; then \
+ (test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
+ ln $(srcdir)/GDBvn.texi . || \
+ cp $(srcdir)/GDBvn.texi . ; else true; fi
+ $(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ $(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ $(TEXINDEX) gdb.??
+ $(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ rm -f gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
+ gdb.tp* gdb.vr*
+
# GDB MANUAL: info file
# We're using texinfo 3.12; older makeinfo's may not be able to
# cope with all the markup.
@@ -370,6 +386,13 @@ gdbint.dvi : gdbint.texinfo
gdbint.ps : gdbint.dvi
$(DVIPS) -o $@ $?
+gdbint.pdf: gdbint.dvi
+ $(SET_TEXINPUTS) $(PDFTEX) gdbint.texinfo
+ $(TEXINDEX) gdbint.??
+ $(SET_TEXINPUTS) $(PDFTEX) gdbint.texinfo
+ rm -f gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
+ gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
+
# GDB INTERNALS MANUAL: info file
gdbint.info: gdbint.texinfo
@@ -399,6 +422,13 @@ stabs.dvi : stabs.texinfo
stabs.ps: stabs.dvi
$(DVIPS) -o $@ $?
+stabs.pdf: stabs.dvi
+ $(SET_TEXINPUTS) $(PDFTEX) stabs.texinfo
+ $(TEXINDEX) stabs.??
+ $(SET_TEXINPUTS) $(PDFTEX) stabs.texinfo
+ rm -f stabs.aux stabs.cp* stabs.fn* stabs.ky* \
+ stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
+
force:
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) config.status
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b8630cc2e1e..914e0ab3cb9 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -206,6 +206,11 @@ Copyright (C) 1988-2000 Free Software Foundation, Inc.
@end ifhtml
+@c TeX can handle the contents at the start but makeinfo 3.12 can not
+@iftex
+@contents
+@end iftex
+
@node Summary
@unnumbered Summary of @value{GDBN}
@@ -12874,5 +12879,12 @@ needed for special purposes only.
% Blame: doc@cygnus.com, 1991.
@end tex
+@c TeX can handle the contents at the start but makeinfo 3.12 can not
+@ifinfo
@contents
+@end ifinfo
+@ifhtml
+@contents
+@end ifhtml
+
@bye
diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo
index a7786ccb7ed..bb95e89bc0d 100644
--- a/gdb/doc/gdbint.texinfo
+++ b/gdb/doc/gdbint.texinfo
@@ -46,7 +46,7 @@ regarded as a program in the language TeX).
@page
@tex
\def\$#1${{#1}} % Kluge: collect RCS revision info without $...$
-\xdef\manvers{\$Revision: 1.12 $} % For use in headers, footers too
+\xdef\manvers{\$Revision: 1.13 $} % For use in headers, footers too
{\parskip=0pt
\hfill Cygnus Solutions\par
\hfill \manvers\par
@@ -63,6 +63,11 @@ are preserved on all copies.
@end titlepage
+@c TeX can handle the contents at the start but makeinfo 3.12 can not
+@iftex
+@contents
+@end iftex
+
@node Top
@c Perhaps this should be the title of the document (but only for info,
@c not for TeX). Existing GNU manuals seem inconsistent on this point.
@@ -3383,6 +3388,12 @@ exec.c
@end table
-
+@c TeX can handle the contents at the start but makeinfo 3.12 can not
+@ifinfo
@contents
+@end ifinfo
+@ifhtml
+@contents
+@end ifhtml
+
@bye
diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo
index 645b0fd5615..2a7e5eaf6cd 100644
--- a/gdb/doc/stabs.texinfo
+++ b/gdb/doc/stabs.texinfo
@@ -43,7 +43,7 @@ regarded as a program in the language TeX).
@page
@tex
\def\$#1${{#1}} % Kluge: collect RCS revision info without $...$
-\xdef\manvers{\$Revision: 1.1.1.3 $} % For use in headers, footers too
+\xdef\manvers{\$Revision: 1.2 $} % For use in headers, footers too
{\parskip=0pt
\hfill Cygnus Support\par
\hfill \manvers\par
@@ -86,6 +86,10 @@ This document describes the stabs debugging format.
@end menu
@end ifinfo
+@c TeX can handle the contents at the start but makeinfo 3.12 can not
+@iftex
+@contents
+@end iftex
@node Overview
@chapter Overview of Stabs
@@ -4015,5 +4019,12 @@ However, no one has yet designed or implemented such a scheme.
@printindex fn
+@c TeX can handle the contents at the start but makeinfo 3.12 can not
+@ifinfo
@contents
+@end ifinfo
+@ifhtml
+@contents
+@end ifhtml
+
@bye