Skip to content

Commit

Permalink
feat configure: improve installation scripts
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Mar 12, 2024
1 parent 97198cb commit 5ff7d02
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/manual/en_US/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,30 @@ The configure command supports the following parameters:

enable dynamic monitoring of reference count (enabled by default).

Example of parameters usage (all of this needs to be typed in one line):
## Example of parameters usage

Install to system root (all of this needs to be typed in one line):

```shell
cmake -Bbuild
-DBFDEV_EXAMPLES=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
```

Install to user's local:

```shell
cmake -Bbuild
-DBFDEV_DEVEL=ON
-DBFDEV_DBGLIST=OFF
-DBFDEV_EXAMPLES=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${HOME}/.local
```

After configuration, bfdev is compiled and installed using make:

```shell
cd build
make $(nproc)
make -j$(nproc)
make install
```

0 comments on commit 5ff7d02

Please sign in to comment.