[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Typesetting with groff from Makefiles
From: |
Jörgen Grahn |
Subject: |
Re: [Groff] Typesetting with groff from Makefiles |
Date: |
Mon, 20 Jun 2005 14:27:42 +0200 |
User-agent: |
Mutt/1.5.9i |
On Mon Jun 20 11:40:37 2005, address@hidden wrote:
> > foo.ps: foo.ms
> > groff -ms foo.ms > foo.ps
> > foo.ps: foo.ms
> > groff -ms foo.ms > foo.ps || $(RM) foo.ps
> What about...
>
> foo.ps: foo.ms
> groff -ms foo.ms > foo.ps || ($(RM) foo.ps; exit 1)
Yes, that seems to cover all cases, but it's a bit too heavy on the shell
syntax, IMHO. On the other hand, my first "... || $(RM)" example isn't
really more portable.
Sometimes I wish for an '-o file' option to groff and friends, with
semantics like those of gcc and other compilers. That would make Makefiles
easier to read and more portable -- as long as the user's troff is groff, of
course.
/Jörgen
--
// Jörgen Grahn "Koka lopplummer, bada Ross, loppor borta."
\X/ <address@hidden> -- Jonas