diff --git a/Cabal/doc/developing-packages.markdown b/Cabal/doc/developing-packages.markdown index af923ea2c1352f83774d116b79818869763e70c7..a02f796031e55b909ea67718e8ebc0623de9fb3e 100644 --- a/Cabal/doc/developing-packages.markdown +++ b/Cabal/doc/developing-packages.markdown @@ -1553,12 +1553,11 @@ a few options: `unregister`, `clean`, `dist` and `docs`. Some options to commands are passed through as follows: - * The `--with-hc-pkg`, `--prefix`, `--bindir`, `--libdir`, - `--datadir` and `--libexecdir` options to the `configure` - command are passed on to the `configure` script. In addition the - value of the `--with-compiler` option is passed in a `--with-hc` - option and all options specified with `--configure-option=` are - passed on. + * The `--with-hc-pkg`, `--prefix`, `--bindir`, `--libdir`, `--datadir`, + `--libexecdir` and `--sysconfdir` options to the `configure` command are + passed on to the `configure` script. In addition the value of the + `--with-compiler` option is passed in a `--with-hc` option and all + options specified with `--configure-option=` are passed on. * The `--destdir` option to the `copy` command becomes a setting of a `destdir` variable on the invocation of `make copy`. The @@ -1571,7 +1570,8 @@ a few options: bindir=$(destdir)/$(bindir) \ libdir=$(destdir)/$(libdir) \ datadir=$(destdir)/$(datadir) \ - libexecdir=$(destdir)/$(libexecdir) + libexecdir=$(destdir)/$(libexecdir) \ + sysconfdir=$(destdir)/$(sysconfdir) \ ~~~~~~~~~~~~~~~~ * You can write your own setup script conforming to the interface diff --git a/Cabal/doc/installing-packages.markdown b/Cabal/doc/installing-packages.markdown index 2f1defbd5e48c6970bee2e56baaa46f8cc52888e..909644ba6cce2a85268cbaeff73d13d32e3323f5 100644 --- a/Cabal/doc/installing-packages.markdown +++ b/Cabal/doc/installing-packages.markdown @@ -221,8 +221,8 @@ private file read by later stages. If a user-supplied `configure` script is run (see the section on [system-dependent parameters](#system-dependent-parameters) or on [complex packages](#complex-packages)), it is passed the -`--with-hc-pkg`, `--prefix`, `--bindir`, `--libdir`, `--datadir` and -`--libexecdir` options. In addition the value of the `--with-compiler` +`--with-hc-pkg`, `--prefix`, `--bindir`, `--libdir`, `--datadir`, `--libexecdir` +and `--sysconfdir` options. In addition the value of the `--with-compiler` option is passed in a `--with-hc` option and all options specified with `--configure-option=` are passed on. @@ -327,6 +327,13 @@ package: variables: `$prefix`, `$bindir`, `$libdir`, `$libsubdir`, `$pkgid`, `$pkg`, `$version`, `$compiler`, `$os`, `$arch` +`--sysconfdir=`_dir_ +: Installation directory for the configuration files. + + In the simple build system, _dir_ may contain the following path variables: + `$prefix`, `$bindir`, `$libdir`, `$libsubdir`, `$pkgid`, `$pkg`, `$version`, + `$compiler`, `$os`, `$arch` + In addition the simple build system supports the following installation path options: `--libsubdir=`_dir_ @@ -446,6 +453,7 @@ Option Windows Default `--datadir` (library) `C:\Program Files\Haskell` `$prefix/share` `--datasubdir` `$pkgid` `$pkgid` `--docdir` `$prefix\doc\$pkgid` `$datadir/doc/$pkgid` +`--sysconfdir` `$prefix\etc` `$prefix/etc` `--htmldir` `$docdir\html` `$docdir/html` `--program-prefix` (empty) (empty) `--program-suffix` (empty) (empty)