... | ... | @@ -486,13 +486,11 @@ In any directory you should be able to make the following: |
|
|
<table><tr><th>`boot`</th>
|
|
|
<td>
|
|
|
does the one-off preparation required to get ready for the real
|
|
|
work. Notably, it does `make depend` in all directories that
|
|
|
contain programs. It also builds the necessary tools for
|
|
|
compilation to proceed.
|
|
|
work, e.g. building the module dependency graph.
|
|
|
|
|
|
Invoking the `boot` target explicitly is not normally necessary.
|
|
|
From the top-level directory, invoking `make` causes `make boot`
|
|
|
to be invoked in various subdirectories first, in the right
|
|
|
to be invoked in various subdirectories, in the right
|
|
|
order. Unless you really know what you are doing, it is best to
|
|
|
always say `make` from the top level first.
|
|
|
|
... | ... | @@ -524,12 +522,6 @@ installs the documentation. Otherwise behaves just like |
|
|
`install`.
|
|
|
</td></tr></table>
|
|
|
|
|
|
<table><tr><th>`uninstall`</th>
|
|
|
<td>
|
|
|
reverses the effect of `install` (WARNING: probably doesn't
|
|
|
work).
|
|
|
</td></tr></table>
|
|
|
|
|
|
<table><tr><th>`clean`</th>
|
|
|
<td>
|
|
|
Delete all files from the current directory that are normally
|
... | ... | @@ -589,6 +581,8 @@ Foo.o : Baz.hi |
|
|
which says that the object file `Foo.o` depends on the interface
|
|
|
file `Baz.hi` generated by compiling module `Baz`. The
|
|
|
`.depend` file is automatically included by every Makefile.
|
|
|
Now that we are using Cabal for most of the building, most directories
|
|
|
don't support the `depend` target any more. Use `boot` instead.
|
|
|
</td></tr></table>
|
|
|
|
|
|
|
... | ... | @@ -602,17 +596,10 @@ than these. You can discover them by looking in the |
|
|
If you want to build GHC and just use it direct from the build tree
|
|
|
without doing `make install` first, you can run the in-place
|
|
|
driver script. To run the stage 1 compiler, use
|
|
|
`compiler/stage1/ghc-inplace`, stage 2 is
|
|
|
`compiler/stage2/ghc-inplace`, and so on.
|
|
|
|
|
|
|
|
|
Do *NOT* use `compiler/stage1/ghc`, or
|
|
|
`compiler/stage1/ghc-6.xx`, as these are the scripts intended for
|
|
|
installation, and contain hard-wired paths to the installed libraries,
|
|
|
rather than the libraries in the build tree.
|
|
|
`ghc/stage1-inplace/ghc`, stage 2 is
|
|
|
`ghc/stage2-inplace/ghc`, and so on.
|
|
|
|
|
|
|
|
|
For darcs version, use `ghc/stage1-inplace/ghc` etc.
|
|
|
Utils like `ghc-pkg` can be found under
|
|
|
`utils/ghc-pkg/install-inplace/bin/ghc-pkg` etc.
|
|
|
|
... | ... | |