aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-07-31 23:44:59 +0000
committerJohn Gilmore <gnu@cygnus>1991-07-31 23:44:59 +0000
commit2ee6233fbcfdd02ec76ef00344dcbce59d4a6bdb (patch)
tree558e427486da2aa2b46c00b7b45c2c8176a405fe /gdb
parent5bff26001ada0f274f17e85cbf193ec1702b668f (diff)
downloadgdb-2ee6233fbcfdd02ec76ef00344dcbce59d4a6bdb.zip
gdb-2ee6233fbcfdd02ec76ef00344dcbce59d4a6bdb.tar.gz
gdb-2ee6233fbcfdd02ec76ef00344dcbce59d4a6bdb.tar.bz2
Handle gdb-all.texinfo properly when M4 doesn't exist or crashes
Diffstat (limited to 'gdb')
-rw-r--r--gdb/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 8e66189..afbd355 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -502,9 +502,12 @@ rdl-apps.texinfo: ${READLINE_DIR}/inc-readline.texinfo \
echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texinfo
echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texinfo
+# Be sure to not create a bad gdb-all.texinfo if ${M4} is missing or aborts...
gdb-all.texinfo: ${SFILES_DOCDIR}
+ rm -f gdb-all.texinfo foobus.texinfo
( cd $(srcdir)/doc; \
- ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo ) >gdb-all.texinfo
+ ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo ) >foobus.texinfo
+ mv foobus.texinfo gdb-all.texinfo
gdb.dvi : gdb-all.texinfo rdl-apps.texinfo
TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texinfo