groff
[Top][All Lists]
Advanced

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

Re: [Groff] Typesetting with groff from Makefiles


From: Keith MARSHALL
Subject: Re: [Groff] Typesetting with groff from Makefiles
Date: Mon, 20 Jun 2005 11:40:37 +0100

>   foo.ps: foo.ms
>        groff -ms foo.ms > foo.ps
>
> will always generate foo.ps, even when there are fatal errors.
> On the other hand,
>
>   foo.ps: foo.ms
>        groff -ms foo.ms > foo.ps || $(RM) foo.ps
>
> will not leave a bad foo.ps around, but it will not abort the
> make session either, since either groff or $(RM) will always
> return success.
>
> I'm sure someone here has found the neatest possible way of
> addressing this.

What about...

  foo.ps: foo.ms
       groff -ms foo.ms > foo.ps || ($(RM) foo.ps; exit 1)

HTH.

Keith.




reply via email to

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