patch applied (cabal-builder): Add ' setup makefile' command

Ian Lynagh igloo at earth.li
Thu Apr 5 14:05:46 EDT 2007


Fri Mar  9 07:50:22 PST 2007  Simon Marlow <simonmar at microsoft.com>
  * Add 'setup makefile' command
  'setup makefile' generates a Makefile that performs the steps
  necessary to compile the Haskell sources to object code.  This only
  works for libraries, and only with GHC right now.
  
  Instead of simply 'setup build', you can do this:
  
    $ ./setup makefile
    $ make
    $ ./setup build
  
  where './setup makefile' does the preprocessing and generates a
  Makefile tailored to the current package.  'make' will build all the
  Haskell code to object files, and 'setup build' will build any C code
  and the library archives.
  
  The reason for all this is that you can say 'make -j' and get a
  parallel build, or you can say
  
    make dist/build/Foo.o EXTRA_HC_OPTS=-keep-s-file
  
  to compile a single file with extra options.

    M ./Distribution/Make.hs +2
    M ./Distribution/Setup.hs -2 +33
    M ./Distribution/Simple.hs -1 +26
    M ./Distribution/Simple/Build.hs -10 +30
    M ./Distribution/Simple/GHC.hs -3 +148
    M ./doc/Cabal.xml +42


More information about the Cvs-libraries mailing list