From 2ee6233fbcfdd02ec76ef00344dcbce59d4a6bdb Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 31 Jul 1991 23:44:59 +0000 Subject: [PATCH] Handle gdb-all.texinfo properly when M4 doesn't exist or crashes --- gdb/Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 8e66189212d..afbd355e516 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 -- 2.30.2