[drifting off-topic]
On Fri, 11 Jun 1999, Malcolm Wallace wrote:

> David Tweed writes:
> 
> > I think it'd probably better software engineering to split the two tasks. 
> > Other than a rather nasty syntax, make does what it sets out to do quite
> > well:  using specified dependencies and time-stamps on files to run
> > `compilation-type' processes in an appropriate way. What would, as you
> > say, be very nice is a tool which can be run periodically to auto-generate
> > these dependencies.
> 
>     $ gcc -M main.c   >>Makefile
>     $ ghc -M Main.hs  >>Makefile
>     $ hmake -M MyProg >>Makefile

Since several people have pointed out the -M option for gcc I'd better
explain that, for reasons of no interest to Haskell users, when tackling
_C++_ it produces dependencies which are much, much worse than they could
be (at least for me). 

Purely personally, I'd find it easier to have a tool that was independent
of the compiler to customise, which could also be extended to other
things, eg, latex, that don't have a -M option. 

___cheers,_dave______________________________________________________
email: [EMAIL PROTECTED]       "`What sort of people would we be if
www.cs.bris.ac.uk/~tweed/pi.htm    we didn't go into the Library?'
work tel: (0117) 954-5253         `Students.' -- Terry Pratchett



Reply via email to