On Sunday 26 August 2007 14:38, I wrote:
> [...]
>    c) "make install" gets an additional argument "prefix=/var/foo/usr"
> (where "/var/foo" is some temporary place and "/usr" is what was stated in
> the configure stage for "--prefix"), so everything gets installed
> below "/var/foo/usr". After some checks "rpmbuild" picks up the files
> there, but nevertheless the resulting stuff gets installed below "/usr"
> later. [...]

Just another remark: The above is basically a hack because GHC's install phase 
was very non-standard. To follow the principle of least surprise, it would be 
good if we followed established conventions:

   http://www.gnu.org/prep/standards/html_node/DESTDIR.html

So in a nutshell: Use configure's --prefix (and friends) for everything, and 
just prepend $(DESTDIR) when copying/installing files.

On Windows things might be handled differently, but I don't care about that 
and we should not let this dictate the behaviour on other platforms. This 
shouldn't be too hard, given conditionals in Makefiles etc.

Cheers,
   S.

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to