MAKEHELP 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

Using the GHC build system
--------------------------

For a "Getting Started" guide, see:

  http://hackage.haskell.org/trac/ghc/wiki/Building/Hacking

Common commands:

  make

     Builds everything: ghc stages 1 and 2, all libraries and tools.

  make -j2

     Parallel build: runs up to 2 commands at a time (use the number of
     CPUs in your machine in place of '2')

  cd <dir>; make

     Builds everything in the given directory.

Simon Marlow's avatar
Simon Marlow committed
24
  cd <dir>; make help
25

Simon Marlow's avatar
Simon Marlow committed
26
     Shows the targets available in <dir>
27

Simon Marlow's avatar
Simon Marlow committed
28 29 30 31 32 33
  make html
  make pdf
  make ps

     Make documentation

34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
  make install

     Installs GHC, libraries and tools under $(prefix)

  make sdist
  make binary-dist

     Builds a source or binary distribution respectively

  make show VALUE=<var>

     Displays the value of make variable <var>

  make clean
  make distclean
  make maintainer-clean

     Various levels of cleaning: "clean" restores the tree to the
     state after "./configure", "distclean" restores to the state
     after "sh boot", and maintainer-clean restores the tree to the
     completely clean checked-out state.