[project @ 2003-05-22 15:36:08 by simonmar]
authorsimonmar <unknown>
Thu, 22 May 2003 15:36:08 +0000 (15:36 +0000)
committersimonmar <unknown>
Thu, 22 May 2003 15:36:08 +0000 (15:36 +0000)
commitd9823b5b39bd0499d2f3942a3011e6c155456e3b
treefc5ec6f36d0ce163fbe8c33809d396eb1b29c3d0
parente12f9c6276e01826a6cb501a434eb95e3f42f7d4
[project @ 2003-05-22 15:36:08 by simonmar]
First hack at supporting standalone packages.

What this means is that a non-GHC fptools project which sets
$(PACKAGE) in a Makefile should do something reasonable.  It works by
testing whether $(ProjectNameShort) == "ghc", and if it isn't, then:

 - it turns off all the machinery that deals with installing the
   package for use with the in-place compiler and a (future)
   installation of GHC.

 - instead, it enables a rule that installs the package using
   the installed $(GHC_PKG).  The configure script still needs
   updating to detect this, so 'make install' won't work yet.

 - $(GHC) is used instead of $(GHC_INPLACE) for compiling Haskell
   code.

Apart from the detection of ghc-pkg in configure, this should be all
that's needed to get source distributions and 'make install' going.
mk/package.mk