mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Document more Makefile
variables
This commit is contained in:
parent
5d5b25f2e3
commit
6f4930382b
1 changed files with 13 additions and 2 deletions
|
@ -66,13 +66,24 @@ You can also build Nix for one of the [supported platforms](#platforms).
|
||||||
|
|
||||||
## Makefile variables
|
## Makefile variables
|
||||||
|
|
||||||
|
You may need `profiledir=$out/etc/profile.d` and `sysconfdir=$out/etc` to run
|
||||||
|
`make install`.
|
||||||
|
|
||||||
|
You may want to set `MAKEFLAGS="-e -j $NIX_BUILD_CORES"` to allow environment
|
||||||
|
variables to override `Makefile` variables.
|
||||||
|
|
||||||
- `ENABLE_BUILD=yes` to enable building the C++ code.
|
- `ENABLE_BUILD=yes` to enable building the C++ code.
|
||||||
- `ENABLE_DOC_GEN=yes` to enable building the documentation (manual, man pages, etc.).
|
- `ENABLE_DOC_GEN=yes` to enable building the documentation (manual, man pages, etc.).
|
||||||
|
|
||||||
|
The docs can take a while to build, so you may want to disable this for local development.
|
||||||
- `ENABLE_FUNCTIONAL_TESTS=yes` to enable building the functional tests.
|
- `ENABLE_FUNCTIONAL_TESTS=yes` to enable building the functional tests.
|
||||||
- `ENABLE_UNIT_TESTS=yes` to enable building the unit tests.
|
- `ENABLE_UNIT_TESTS=yes` to enable building the unit tests.
|
||||||
- `OPTIMIZE=1` to enable optimizations.
|
- `OPTIMIZE=1` to enable optimizations.
|
||||||
|
- `libraries=libutil programs=` to only build a specific library (this will
|
||||||
The docs can take a while to build, so you may want to disable this for local development.
|
fail in the linking phase if you don't have the other libraries built, but is
|
||||||
|
useful for checking types).
|
||||||
|
- `libraries= programs=nix` to only build a specific program (this will not, in
|
||||||
|
general, work, because the programs need the libraries).
|
||||||
|
|
||||||
## Building Nix
|
## Building Nix
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue