ghc -M

Peter Thiemann
05 Dec 2002 13:54:53 -0800


after using ghc --make happily in a project for a while I am switching
to using Makefiles since I have a number of Main programs in the same
directory that share a lot of modules.

Now, since ghc -M does such a great job at gobbling up the
dependencies, I wonder if it was not possible to extend its
functionality a little bit so that it also determines the .o files
that are required to link a Main program. I could imagine something
like an -optdep-Main and then the program name.