Build system

Matthias Kilian kili at outback.escape.de
Thu Nov 20 20:58:12 EST 2008


Hi,

On Thu, Nov 20, 2008 at 04:58:44PM +0000, Ian Lynagh wrote:
> We've filled out the new build system design plan with some details:
>     http://hackage.haskell.org/trac/ghc/wiki/Design/BuildSystem
> Please have a look and if you forsee any problems, or have any
> suggestions of how things could be done better, let us know.

Yes, there's one problem: The makefiles for libraries generated by
ghc-cabal shouldn't contain anything except variable assignments
and dependency rules (and possibly a .include), but no rules with
shell commands. For example, in the generated Makefile mentioned
in the design document, there's a rule

	$(LIBRARY_foo_v_A_FILE): inplace/bin/ghc-pkg \
				 libraries/foo/dist/inplace-config \
				 $(LIBRARY_foo_v_O_FILES) \
				 $(LIBRARY_bar_v_A_FILE)
		ghc $(LIBRARY_foo_v_O_FILES) -package bar -o $@
		inplace/bin/ghc-cabal --in-dir libraries/foo register

What happens if you want to tweak this (generated) rule? You've to
change and rebuild ghc-cabal.

Ciao,
	Kili



More information about the Cvs-ghc mailing list