SVR4 names don't have underscores, according to the ABI.
[deliverable/binutils-gdb.git] / gdb / Makefile
index 525e945f0f36d2088d7e20c81ba8f2294df66d12..1bec69da6d0fbb7f0b74836c7221904821edcc2b 100755 (executable)
@@ -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.
@@ -417,7 +420,7 @@ OTHERS = Makefile.dist depend alldeps.mak Makefile.sdir \
         createtags munch config.gdb config.status \
         ChangeLog ChangeLog-3.x \
         README TODO TAGS WHATS.NEW \
-        gdb.texinfo gdbint.texinfo gdbrc.tex threecol.tex \
+        doc \
        .gdbinit COPYING expread.tab.c stab.def \
         copying.c Projects Convex.notes copying.awk \
         saber.suppress standalone.c stuff.c kdb-start.c \
@@ -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: ${srcdir}/doc/gdb.texinfo
+       ${M4} $(srcdir)/doc/pretex.m4 $(srcdir)/doc/none.m4 $(srcdir)/doc/all.m4 $(srcdir)/doc/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
This page took 0.034356 seconds and 4 git commands to generate.