... | @@ -62,29 +62,24 @@ $ make show VALUE=prefix |
... | @@ -62,29 +62,24 @@ $ make show VALUE=prefix |
|
|
|
|
|
A GHC installation typically has three parts:
|
|
A GHC installation typically has three parts:
|
|
|
|
|
|
<table><tr><th>`bindir`</th>
|
|
- **`bindir`**
|
|
<td>
|
|
|
|
(default: `$(prefix)/bin`)
|
|
|
|
|
|
|
|
This is where the programs that you can run are installed, such as `ghc`, `ghci`, `ghc-pkg`, and `haddock`.
|
|
(default: `$(prefix)/bin`)
|
|
</td></tr></table>
|
|
This is where the programs that you can run are installed, such as `ghc`, `ghci`, `ghc-pkg`, and `haddock`.
|
|
|
|
|
|
<table><tr><th>`libdir`</th>
|
|
- **`libdir`**
|
|
<td>
|
|
|
|
(default: Unix: `$(prefix)/lib/ghc-<version>`, Windows: `$(prefix)/lib`)
|
|
|
|
|
|
|
|
Where all of GHC's support files are kept, including `package.conf`, the header files, and the libraries.
|
|
(default: Unix: `$(prefix)/lib/ghc-<version>`, Windows: `$(prefix)/lib`)
|
|
|
|
|
|
|
|
Where all of GHC's support files are kept, including `package.conf`, the header files, and the libraries.
|
|
The location of `libdir` can be found by asking GHC: `ghc --print-libdir`. Normally you shouldn't have to
|
|
The location of `libdir` can be found by asking GHC: `ghc --print-libdir`. Normally you shouldn't have to
|
|
look in here, and you shouldn't install extra files here. The only reason you might need to know the location
|
|
look in here, and you shouldn't install extra files here. The only reason you might need to know the location
|
|
of `libdir` at all is for passing to the GHC API, and the best way to do that is to use the [ghc-paths package](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ghc-paths).
|
|
of `libdir` at all is for passing to the GHC API, and the best way to do that is to use the [ghc-paths package](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ghc-paths).
|
|
</td></tr></table>
|
|
|
|
|
|
|
|
<table><tr><th>`docdir`</th>
|
|
- **`docdir`**
|
|
<td>
|
|
|
|
(default: Unix: `$(prefix)/share/doc/ghc`, Windows: `$(prefix)/doc`)
|
|
|
|
|
|
|
|
Where the documentation is installed.
|
|
(default: Unix: `$(prefix)/share/doc/ghc`, Windows: `$(prefix)/doc`)
|
|
</td></tr></table>
|
|
Where the documentation is installed.
|
|
|
|
|
|
|
|
|
|
On Unix systems you can change `libdir` and `bindir` using the `--libdir` and `--bindir` options respectively, and the location of the documentation can be changed using `--datadir`. On Windows all you can do is change `$(prefix)`, because GHC finds the rest of its files by knowing their location relative to the `ghc.exe` binary, so the layout of the install tree is fixed (see [How GHC finds its files](building/installing#how-ghc-finds-its-files), below).
|
|
On Unix systems you can change `libdir` and `bindir` using the `--libdir` and `--bindir` options respectively, and the location of the documentation can be changed using `--datadir`. On Windows all you can do is change `$(prefix)`, because GHC finds the rest of its files by knowing their location relative to the `ghc.exe` binary, so the layout of the install tree is fixed (see [How GHC finds its files](building/installing#how-ghc-finds-its-files), below).
|
... | | ... | |