aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/Makefile.in
diff options
context:
space:
mode:
authorRoland Pesch <pesch@cygnus>1991-11-15 00:58:33 +0000
committerRoland Pesch <pesch@cygnus>1991-11-15 00:58:33 +0000
commit92b73793963c2b918a12cbef1c87c0f79aec2498 (patch)
tree66acfdcd1fdc6b52b7369bd2856fc691a0c4e44f /gdb/doc/Makefile.in
parent653d6c56a180771bd5024b45c3ad24d642ea0894 (diff)
downloadgdb-92b73793963c2b918a12cbef1c87c0f79aec2498.zip
gdb-92b73793963c2b918a12cbef1c87c0f79aec2498.tar.gz
gdb-92b73793963c2b918a12cbef1c87c0f79aec2498.tar.bz2
Two kinds of changes:
(1) repair refs to readline includes to use new shorter filenames (2) provision for texi2roff conversion of doc via Makefile (new targets: gdb.mm, gdb.me, gdb.ms).
Diffstat (limited to 'gdb/doc/Makefile.in')
-rw-r--r--gdb/doc/Makefile.in93
1 files changed, 81 insertions, 12 deletions
diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in
index e077d43..628c1cc 100644
--- a/gdb/doc/Makefile.in
+++ b/gdb/doc/Makefile.in
@@ -38,6 +38,9 @@ TEXIDIR=$(srcdir)/${gdbdir}/../texinfo/fsf
# where to find makeinfo, preferably one designed for texinfo-2
MAKEINFO=makeinfo
+# where to find texi2roff, ditto
+TEXI2ROFF=texi2roff
+
# Where is the source dir for the READLINE library? Traditionally in .. or .
# (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
READLINE_DIR = $(srcdir)/${gdbdir}/../readline
@@ -47,6 +50,9 @@ SFILES_DOCDIR = \
$(srcdir)/gdb.texinfo $(srcdir)/pretex.m4 $(srcdir)/none.m4 \
$(srcdir)/all.m4 gdbinv-m.m4 gdbinv-s.m4 gdbVN.m4
+# Which version of GDB manual? default includes everything
+CONFIG=all
+
all install:
all-info: gdb.info gdbint.info
@@ -79,11 +85,11 @@ refcard.ps : refcard.tex
rm -f rcfonts.tex
# Cover file for "Readline" appendices
-rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \
- ${READLINE_DIR}/inc-history.texinfo
+rdl-apps.texi: ${READLINE_DIR}/inc-read.texi \
+ ${READLINE_DIR}/inc-hist.texi
rm -f rdl-apps.texi
- echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texi
- echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texi
+ echo "@include ${READLINE_DIR}/inc-read.texi" >rdl-apps.texi
+ echo "@include ${READLINE_DIR}/inc-hist.texi" >>rdl-apps.texi
# File to record current GDB version number (copied from main dir Makefile.in)
gdbVN.m4 : ${gdbdir}/Makefile.in
@@ -91,6 +97,9 @@ gdbVN.m4 : ${gdbdir}/Makefile.in
echo "_define__(<_GDB_VN__>,$$VER)" > gdbVN.m4 )
# GDB MANUAL: texinfo source, created by preprocessing w/m4
+# If you want other configs in the makefile, add or modify instructions for
+# building source here, then change CONFIG (that way you get info, dvi,
+# roff targets automatically for your config).
# Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts...
gdb-all.texi: ${SFILES_DOCDIR}
rm -f foobus.texinfo
@@ -99,19 +108,79 @@ gdb-all.texi: ${SFILES_DOCDIR}
mv foobus.texinfo gdb-all.texi
# GDB MANUAL: TeX dvi file
-gdb.dvi : gdb-all.texi rdl-apps.texi
- TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-all.texi
- texindex gdb-all.??
- TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-all.texi
- mv gdb-all.dvi gdb.dvi
- rm -f gdb-all.?? gdb-all.???
+gdb.dvi : gdb-${CONFIG}.texi rdl-apps.texi
+ TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-${CONFIG}.texi
+ texindex gdb-${CONFIG}.??
+ TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-${CONFIG}.texi
+ mv gdb-${CONFIG}.dvi gdb.dvi
+ rm -f gdb-${CONFIG}.?? gdb-${CONFIG}.???
# GDB MANUAL: info file
# We're using texinfo2, and older makeinfo's may not be able to
# cope with all the markup. In the meantime, we distribute the info
# files
-gdb.info: gdb-all.texi
- $(MAKEINFO) -o gdb.info gdb-all.texi
+gdb.info: gdb-${CONFIG}.texi
+ $(MAKEINFO) -o gdb.info gdb-${CONFIG}.texi
+
+# GDB MANUAL: roff translations
+# Try to use a recent texi2roff. v2 was put on prep in jan91.
+# If you want an index, see texi2roff doc for postprocessing
+# and add -i to texi2roff invocations below.
+# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
+# correspondint -e lines when later texi2roff's are current)
+# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
+# + @c's deleted explicitly because texi2roff sees texinfo commands in them
+# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
+# + @alphaenumerate is ridiculously new, turned into @enumerate
+
+
+# gdb manual suitable for [tn]roff -mm
+# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
+# try leaving them in
+gdb.mm: gdb-${CONFIG}.texi
+ sed -e '/\\input texinfo/d' \
+ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
+ -e '/^@ifinfo/,/^@end ifinfo/d' \
+ -e '/^@c/d' \
+ -e 's/{.*,,/{/' \
+ -e '/@noindent/d' \
+ -e 's/@ / /g' \
+ -e 's/^@alphaenumerate/@enumerate/g' \
+ -e 's/^@end alphaenumerate/@end enumerate/g' \
+ gdb-${CONFIG}.texi | \
+ $(TEXI2ROFF) -mm | \
+ sed -e 's/---/\\(em/g' \
+ >gdb.mm
+
+# gdb manual suitable for [gtn]roff -me
+gdb.me: gdb-${CONFIG}.texi
+ sed -e '/\\input texinfo/d' \
+ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
+ -e '/^@ifinfo/,/^@end ifinfo/d' \
+ -e '/^@c/d' \
+ -e 's/{.*,,/{/' \
+ -e 's/@ / /g' \
+ -e 's/^@alphaenumerate/@enumerate/g' \
+ -e 's/^@end alphaenumerate/@end enumerate/g' \
+ gdb-${CONFIG}.texi | \
+ $(TEXI2ROFF) -me | \
+ sed -e 's/---/\\(em/g' \
+ >gdb.me
+
+# gdb manual suitable for [gtn]roff -ms
+gdb.ms: gdb-${CONFIG}.texi
+ sed -e '/\\input texinfo/d' \
+ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
+ -e '/^@ifinfo/,/^@end ifinfo/d' \
+ -e '/^@c/d' \
+ -e 's/{.*,,/{/' \
+ -e 's/@ / /g' \
+ -e 's/^@alphaenumerate/@enumerate/g' \
+ -e 's/^@end alphaenumerate/@end enumerate/g' \
+ gdb-${CONFIG}.texi | \
+ $(TEXI2ROFF) -ms | \
+ sed -e 's/---/\\(em/g' \
+ >gdb.ms
# GDB INTERNALS MANUAL: TeX dvi file
gdbint.dvi : gdbint.texinfo