make[2]: Entering directory `/home/elta/work/openOCD/build/doc'
restore=: && backupdir=".am$$" && \
../../doc/openocd.texi:12: @include `version.texi': No such file or directory.
../../doc/openocd.texi:37: warning: undefined flag: VERSION.
../../doc/openocd.texi:38: warning: undefined flag: UPDATED.
../../doc/openocd.texi:58: warning: undefined flag: VERSION.
../../doc/openocd.texi:59: warning: undefined flag: UPDATED.
makeinfo: Removing output file `../../doc/openocd.info' due to errors; use --force to preserve.
make[2]: *** [../../doc/openocd.info] Error 1
make[2]: Leaving directory `/home/elta/work/openOCD/build/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/elta/work/openOCD/build'
make: *** [all] Error 2
修复方法:
configure的时候加上参数
--enable-maintainer-mode 后,可正常编译通过