Skip to content

Commit

Permalink
Document Makefile variables in hacking.md (#9620)
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Dec 16, 2023
1 parent 419a64f commit 7f5ed33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/manual/src/contributing/hacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ $ nix build

You can also build Nix for one of the [supported platforms](#platforms).

## Makefile variables

- `ENABLE_BUILD=yes` to enable building the C++ code.
- `ENABLE_TESTS=yes` to enable building the tests.
- `OPTIMIZE=1` to enable optimizations.
- `doc_generate=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.

## Building Nix

To build all dependencies and start a shell in which all environment variables are set up so that those dependencies can be found:
Expand Down

0 comments on commit 7f5ed33

Please sign in to comment.