The original code in the makefile.lib replaced
(basename input.hs) with (basename output.o)
and
*.hi with *.o
which is a quite weird approach to the problem. I'am not sure but I think the new approach is better:
let the .o files be correct through the -odir flag
replace (dir input)/FILE.hi with (dir output)/$FILE.o

This seems indeed much more sensible. I'll try this out with ghc 6.2.2.

A more general question: We doesn't -ohi dir/filename.hi is not reflected in the dependencies.
I tried:


ghc -M -odir out -ohi out/A.hi A.hs

but nothing changed.

Simon??

Thanks again for your bug fixing,
-- Daan.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to