[RFA] Fix a parallel build error in doc

Jie Zhang
2010-01-17T01:07:14Z

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

Hi,

I just found this when building our Blackfin port GDB with -j4 :

makeinfo --split-size=5000000 -I
/home/jie/blackfin-sources/toolchain/trunk/binutils-2.20/gdb/doc -o
annotate.info
/home/jie/blackfin-sources/toolchain/trunk/binutils-2.20/gdb/doc/annotate.texinfo
echo "@set BUGURL @uref{http://www.gnu.org/software/gdb/bugs/}" >>
./GDBvn.new
./gdb-cfg.texi:16: @include `GDBvn.texi': No such file or directory.
if [ "@uref{http://www.gnu.org/software/gdb/bugs/}" =
"@uref{http://www.gnu.org/software/gdb/bugs/}" ]; then \
echo "@set BUGURL_DEFAULT" >> ./GDBvn.new; \
fi
mv GDBvn.new GDBvn.texi
makeinfo --split-size=5000000 -I
/home/jie/blackfin-sources/toolchain/trunk/binutils-2.20/gdb/doc/../../readline/doc
-I
/home/jie/blackfin-sources/toolchain/trunk/binutils-2.20/gdb/doc/../mi
-I /home/jie/blackfin-sources/toolchain/trunk/binutils-2.20/gdb/doc \
-o gdb.info
/home/jie/blackfin-sources/toolchain/trunk/binutils-2.20/gdb/doc/gdb.texinfo
Making install in doc
makeinfo: Removing output file `annotate.info' due to errors; use
--force to preserve.
make[3]: *** [annotate.info] Error 1

We should also add GDBvn.texi in ANNOTATE_DOC_BUILD_INCLUDES, shouldn't we?

Is the attached patch OK?

Thanks,
Jie

[-- Attachment #2: gdb-doc-makefile-fix-annotate-dep.diff --]
[-- Type: text/x-diff, Size: 605 bytes --]

* Makefile.in (ANNOTATE_DOC_BUILD_INCLUDES): Add GDBvn.texi.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/doc/Makefile.in,v
retrieving revision 1.48
diff -u -p -r1.48 Makefile.in
--- Makefile.in 1 Jan 2010 07:31:48 -0000 1.48
+++ Makefile.in 17 Jan 2010 00:59:29 -0000
@@ -147,7 +147,8 @@ STABS_DOC_FILES = \
ANNOTATE_DOC_SOURCE_INCLUDES = \
$(srcdir)/fdl.texi
ANNOTATE_DOC_BUILD_INCLUDES = \
- gdb-cfg.texi
+ gdb-cfg.texi \
+ GDBvn.texi
ANNOTATE_DOC_FILES = \
$(srcdir)/annotate.texinfo \
$(ANNOTATE_DOC_SOURCE_INCLUDES) \