aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile
diff options
context:
space:
mode:
authorRoland Pesch <pesch@cygnus>1991-05-14 22:07:52 +0000
committerRoland Pesch <pesch@cygnus>1991-05-14 22:07:52 +0000
commit2c85a5a97b5d21cfd7b4a7de72d8fb667f68f679 (patch)
treef5262e8794235604ffad2220829444c215194aaf /gdb/Makefile
parent022cb4c5e1d94266bd33a0f490dca224630e5b58 (diff)
downloadgdb-2c85a5a97b5d21cfd7b4a7de72d8fb667f68f679.zip
gdb-2c85a5a97b5d21cfd7b4a7de72d8fb667f68f679.tar.gz
gdb-2c85a5a97b5d21cfd7b4a7de72d8fb667f68f679.tar.bz2
* gdb.info*: added to distribution. These are ordinary info
files, formatted from gdb.texinfo (via gdb-all.texinfo, see Makefile)---but due to use of texinfo 2, can't count on makeinfo to generate these, so we distribute them already formatted. * gdb.texinfo: included full Info node and menu crud (as generated by C-u M-x texinfo-master-menu using the texinfo-2 elisp code). * Makefile: updated "gdb.dvi" target to use M4 preprocessor; put in comments-for-future gdb.info target (one day makeinfo will work again).
Diffstat (limited to 'gdb/Makefile')
-rwxr-xr-xgdb/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/gdb/Makefile b/gdb/Makefile
index 525e945..eec7b7b 100755
--- a/gdb/Makefile
+++ b/gdb/Makefile
@@ -272,6 +272,9 @@ YACC=bison -y
# YACC=yacc
SHELL=/bin/sh
MAKE=make
+# We need either GNU m4 or SysV m4; Berkeley/Sun don't have quite enough.
+#M4=gm4
+M4=/usr/5bin/m4
# Set this up with gcc if you have gnu ld and the loader will print out
# line numbers for undefinded refs.
@@ -634,6 +637,7 @@ clean:
rm -f init.c init.o version.c
rm -f gdb core gdb.tar gdb.tar.Z make.log
rm -f gdb[0-9]
+ rm -f gdb.dvi gdb-all*
cd readline ; make clean
distclean: clean expread.tab.c TAGS
@@ -646,10 +650,21 @@ realclean: clean
rm -f tm.h xm.h config.status
rm -f Makefile
-gdb.dvi : gdb.texinfo
- tex gdb.texinfo
- texindex gdb.??
- tex gdb.texinfo
+gdb-all.texinfo: gdb.texinfo
+ ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo >gdb-all.texinfo
+
+gdb.dvi : gdb-all.texinfo
+ tex gdb-all.texinfo
+ texindex gdb-all.??
+ tex gdb-all.texinfo
+ mv gdb-all.dvi gdb.dvi
+ rm -f gdb-all.?? gdb-all.???
+
+# This should work eventually, but we're using texinfo2, and many makeinfo's
+# can't cope with all the markup. In the meantime, we distribute the info
+# files as formatted by the elisp texinfo2 code.
+#gdb.info: gdb-all.texinfo
+# makeinfo gdb-all.texinfo
# Make copying.c from COPYING
copying.c : COPYING copying.awk