On Mon Jun 20 11:40:37 2005, [EMAIL PROTECTED] 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/ <[EMAIL PROTECTED]> -- Jonas _______________________________________________ Groff mailing list [email protected] http://lists.gnu.org/mailman/listinfo/groff
