[m-dev.] Clean targets and optimisation files

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Aug 17 17:09:29 AEST 1999


On 17-Aug-1999, Warwick Harvey <wharvey at cs.monash.edu.au> wrote:
> A week or so ago Fergus wrote:
> > Is there a reason why `gradeclean' needs to be different from `clean'?
> 
> Not really.  About the only thing I can think of is that it'd be cleaner
> (sorry!) if `gradeclean' deleted libraries and executables, whereas you
> probably (?) don't want that for `clean'.

Emphasis on the "(?)" ;-)

> But I think I could live with
> using `clean' for `gradeclean' even if it didn't delete these files.
> 
> So I guess the proposal is:
> 
> foo.clean:
> 	-rm -rf $(foo.dirs)
> 	-rm -f $(foo.cs) foo_init.c
> 	-rm -f $(foo.ss) foo_init.s
> 	-rm -f $(foo.os) foo_init.o
> 	-rm -f $(foo.pic_os) foo_init.pic_o
> 	-rm -f $(foo.profs)
> 	-rm -f $(foo.nos)
> 	-rm -f $(foo.qls)
> 	-rm -f $(foo.errs)
> 	-rm -f $(foo.schemas)
> 
> (With corresponding additions to/deletions from the `realclean' target, and
> the removal of the `change_clean' target.)

That proposal sounds fine to me.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list