Closed fare closed 9 years ago
Follow the instructions in the README
file: when building from a repository checkout you have to run configure
with the option --enable-maintainer-mode
.
OK, I read too fast. Can you improve the error messages?
Unfortunately no. The error you see comes from makeinfo
, the documentation translator, and it does not allow customisation of error messages.
You could have a boolean flag defined by the maintainer mode, and check the simultaneous absence of that flag and some missing file (or whatever) before you attempt to makeinfo.
I cloned vicare from github and tried to build with this script:
!/bin/sh
cd ~/src/scheme/vicare sh autogen.sh mkdir -p build cd build ../configure --prefix=$HOME/local/stow/vicare make make install
The make step fails with: make[1]: Entering directory
/home/tunes/src/scheme/vicare/build/doc' restore=: && backupdir=".am$$" && \ am__cwd=
pwd&& CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \ rm -rf $backupdir && mkdir $backupdir && \ if (/bin/sh /home/tunes/src/scheme/vicare/autotools/missing makeinfo --version) >/dev/null 2>&1; then \ for f in ../../doc/vicare-scheme.info ../../doc/vicare-scheme.info-[0-9] ../../doc/vicare-scheme.info-[0-9][0-9] ../../doc/vicare-scheme.i[0-9] ../../doc/vicare-scheme.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if /bin/sh /home/tunes/src/scheme/vicare/autotools/missing makeinfo -I ../../doc \ -o ../../doc/vicare-scheme.info ../../doc/vicare-scheme.texi; \ then \ rc=0; \ CDPATH="${ZSH_VERSION+.}:" && cd ../../doc; \ else \ rc=$?; \ CDPATH="${ZSH_VERSION+.}:" && cd ../../doc && \ $restore $backupdir/*
echo "./../../doc/vicare-scheme.info" | sed 's|[^/]$||'`; \ fi; \ rm -rf $backupdir; exit $rc ../../doc/vicare-scheme.texi:7: @include: could not find version-scheme.texi ../../doc/vicare-scheme.texi:118: warning: undefined flag: VERSION ../../doc/vicare-scheme.texi:198: warning: undefined flag: VERSION make[1]: ** [../../doc/vicare-scheme.info] Error 1 make[1]: Leaving directory `/home/tunes/src/scheme/vicare/build/doc'Running on a Linux amd64 machine running ubuntu 14.04. The git commit is d64e00ea0dc3b4f63d72d97eb223103d94a2675b.