lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question for make experts


From: David Kastrup
Subject: Re: Question for make experts
Date: Tue, 20 Dec 2011 15:42:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

"Phil Holmes" <address@hidden> writes:

> In make, it it possible to output an informative string if part of the
> make fails?  As an example of why I'd like to know this, make doc uses
> texi2pdf and runs this with the --quiet flag.  This means that there's
> no output to the terminal - it's automatically redirected to a log
> file.  I'd like to make it possible to tell users this if texi2pdf
> fails - something like "Texi2pdf failed compiling DocName.texi.
> Please check the DocName.log logfile for errors".
>
> I've read the manual and can't see a simple way.

You use the shell.

    texi2pdf whatever || { x=$?; echo "Texipdf failed with exit status
    $x"; exit $x; }

Be sure to double up every $ inside of the Makefile so that the shell
and not make is expanding it.

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]