[m-rev.] trivial diff: add .PRECIOUS rule to tests/Mmake.common

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Jan 21 17:47:39 AEDT 2003


On 21-Jan-2003, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> 
> tests/Mmake.common:
> 	Add `.PRECIOUS: %.res %.err_res %.out %.err',
> 	so that files matching those patterns aren't
> 	removed except by `mmake realclean'.

With more recent versions of GNU Make, we should be using
`.SECONDARY' for that, rather than `.PRECIOUS'.
Using `.PRECIOUS' has the undesirable side-effect that
if you hit control-C which one of these files is in
the middle of being created, then it will leave the
half-built file, and so if you type `mmake' again
without doing `mmake realclean' first, you can get
incorrect results.

This applies to all uses of .PRECIOUS.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list