Ian Lynagh wrote:
On Thu, Jan 22, 2009 at 04:09:07AM +0000, Simon Peyton-Jones wrote:
| > so ./boot calls basically autoreconf?
|
| Yes, for the root of the tree, and also for any libraries that need it.
|
| In the new build system it also creates little Makefiles for each of the
| libraries.

Is that necessary.  Can't those little Makefiles simply be part of the source 
tree?  One less thing to go wrong.  In general we are trying *not* to generate 
Makefiles in the new setup.

It's a really tiny makefile:

$ cat libraries/directory/ghc.mk
libraries/directory_PACKAGE = directory
$(eval $(call build-package,libraries/directory,dist-install,1))

We could put them in the source tree, but I think that then things would
be more likely to go wrong, as things could get out of sync.

Also, there are no actual rules in the generated makefiles, which I
thought is what we were trying to avoid.

Also, I don't think we want to be putting GHC-specific Makefiles into packages that are supposed to be compiler-independent Cabal packages.

For the rest of the GHC tree we can put the stub makefiles directly in the repository, and I believe that's what we should do. I imagine that some of these stub makefiles will have special directory-specific stuff - for example, when making stage1 in compiler/ we can omit some of the phases.

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to