Michael Jones writes:
[..]
> # DO NOT DELETE: Beginning of Haskell dependencies
> Main.o : Main.hs
> Main.o : ./ClassOne.hi
> ClassOne.o : ClassOne.hs
> ClassTwo.o : ClassTwo.hs
> ClassThree.o : ClassThree.hs
> # DO NOT DELETE: End of Haskell dependencies
It's worth pointing out that this part is automatically generated when you type `make
depend' (using the rest of the above makefile). So you should be able to copy the
makefile Michael has given, alter SRCS and OBJS (btw, if you're using GNU make, you
can write
OBJS=$(patsubst %.hs,%.o,$(SRCS))
or
OBJS=$(patsubst %.lhs,%.o,$(patsubst %.hs,%.o,$(SRCS)))
instead) and then type `make depend' to automatically append the dependencies.
HTH.
--KW 8-)
--
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------:
: PhD Student, Computer Laboratory, University of Cambridge, UK. :
: Native of Antipodean Auckland, New Zealand: 174d47'E, 36d55'S. :
: http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] :
:----------------------------------------------------------------: