Commit 261e5eb4 authored by Daniel Gröber (dxld)'s avatar Daniel Gröber (dxld)

Improve exe `scope` related docs

parent dfa3b8c8
......@@ -1248,10 +1248,9 @@ build information fields (see the section on `build information`_).
.. pkg-field:: scope: token
Whether the executable is public (default) or private, i.e. meant
to be run by other programs rather than user (for example, a
`ghc-mod` helper). Private executables are installed into
`$libexecsubdir`.
Whether the executable is ``public`` (default) or ``private``, i.e. meant to
be run by other programs rather than the user. Private executables are
installed into `$libexecdir/$libexecsubdir`.
Running executables
"""""""""""""""""""
......
......@@ -658,7 +658,11 @@ path options:
.. option:: --libexecsubdir=dir
A subdirectory of *libexecdir* in which private executables are installed.
A subdirectory of *libexecdir* in which private executables are
installed. For example, in the simple build system on Unix, the default
*libexecdir* is ``/usr/local/libexec``, and *libsubdir* is
``x86_64-linux-ghc-8.0.2/mypkg-0.1.0``, so private executables would be
installed in ``/usr/local/libexec/x86_64-linux-ghc-8.0.2/mypkg-0.1.0/``
*dir* may contain the following path variables: ``$pkgid``,
``$pkg``, ``$version``, ``$compiler``, ``$os``, ``$arch``, ``$abi``,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment