Skip to content

Commit 5ff7d02

Browse files
committed
feat configure: improve installation scripts
Signed-off-by: John Sanpe <[email protected]>
1 parent 97198cb commit 5ff7d02

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

docs/manual/en_US/configure.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,30 @@ The configure command supports the following parameters:
5656

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

59-
Example of parameters usage (all of this needs to be typed in one line):
59+
## Example of parameters usage
60+
61+
Install to system root (all of this needs to be typed in one line):
62+
63+
```shell
64+
cmake -Bbuild
65+
-DBFDEV_EXAMPLES=ON
66+
-DCMAKE_BUILD_TYPE=Release
67+
-DCMAKE_INSTALL_PREFIX=/usr
68+
```
69+
70+
Install to user's local:
6071

6172
```shell
6273
cmake -Bbuild
63-
-DBFDEV_DEVEL=ON
64-
-DBFDEV_DBGLIST=OFF
74+
-DBFDEV_EXAMPLES=ON
75+
-DCMAKE_BUILD_TYPE=Release
76+
-DCMAKE_INSTALL_PREFIX=${HOME}/.local
6577
```
6678

6779
After configuration, bfdev is compiled and installed using make:
6880

6981
```shell
7082
cd build
71-
make $(nproc)
83+
make -j$(nproc)
7284
make install
7385
```

0 commit comments

Comments
 (0)