Em Tue, Oct 23, 2012 at 06:39:51AM -0700, Arnaldo Carvalho de Melo escreveu: > > Ok, how's that: we check the presence of executables on the system and > > error out if not in the path. I found some helpful make functions in > > config/utilities.mak and decided to reuse them because I'm lazy :) > Better now: > Makefile:177: *** asciidoc not found, please install it on your distro. > Stop. > make[1]: Leaving directory `/home/git/linux/tools/perf/Documentation' > make: *** [install-man] Error 2 > make: Leaving directory `/home/git/linux/tools/perf' > [acme@sandy linux]$ > But it shouldn't stop the build, just warn the user that Documentation > is not going to be installed. It should error like that if 'make > install-man' is called. > Trying to do that now. [acme@sandy linux]$ make -j8 -C tools/perf/ O=/home/acme/git/build/perf try-install-man make: Entering directory `/home/git/linux/tools/perf' make -C Documentation try-install-man make[1]: Entering directory `/home/git/linux/tools/perf/Documentation' make[2]: Entering directory `/home/git/linux/tools/perf' make[2]: `/home/acme/git/build/perf/PERF-VERSION-FILE' is up to date. make[2]: Leaving directory `/home/git/linux/tools/perf' Makefile:202: Please install the asciidoc package to have the man pages installed Makefile:202: Please install the xmlto package to have the man pages installed make[1]: `try-install-man' is up to date. make[1]: Leaving directory `/home/git/linux/tools/perf/Documentation' make: Leaving directory `/home/git/linux/tools/perf' [acme@sandy linux]$ The 'install-man' target will use your check-executable-or-error-out stuff, but the main 'install' target will call just 'try-install-man', that will not stop the build if there are missing tools to generate the man pages. Installing just xmlto makes it ask just for asciidoc, install both and it generates the man pages, please try to check if it works for you so that I can have your Tested-by. - Arnaldo