浏览代码

tutorials/cmake/commands: reformat table for larger command/description column

Daniel-Constantin Mierla 9 月之前
父节点
当前提交
0588a1f78c
共有 1 个文件被更改,包括 31 次插入12 次删除
  1. 31 12
      docs/tutorials/cmake/commands.md

+ 31 - 12
docs/tutorials/cmake/commands.md

@@ -20,15 +20,34 @@ mkdir build
 cd build
 ```
 
-| Old-Makefiles  | CMake         | Description |
-| :------------- | :------------ | :---------- |
-| `make cfg`  | `cmake ..`  | Generate config files for the build system |
-| `make PREFIX=/tmp/kamailio-dev cfg ` | `cmake -DCMAKE_INSTALL_PREFIX=/tmp/kamailio-dev ..` | Specify installation path prefix |
-| `make include_modules="app_lua db_mysql" cfg` | `cmake -DINCLUDE_MODULES="app_lua db_mysql" ..` | Specify additional modules to be included in compilation |
-| `make exclude_modules="app_lua db_mysql" cfg` | `cmake -DEXCLUDE_MODULES="app_lua db_mysql" ..` | Specify modules to be excluded from compilation |
-| `make`      | `make kamailio` | Compile `kamailio` binary (the core) |
-| `make all`  | `make` | Compile everything (core and modules) |
-| `make modules modules=src/modules/acc` | `make acc` | Compile `acc` modules (substitute with any other module name) |
-| `make Q=0` | `make VERBOSE=on` | Compile with verbose output (quiet off) |
-
-
+Legend for the table:
+
+  - `OM` - Old-Makefiles
+  - `CM` - CMake
+
+| Type   | Description / Command |
+| :---   | :--- |
+| `---`  | Generate config files for the build system |
+| `OM`   | `make cfg` |
+| `CM`   | `cmake ..` |
+| `---`  | Specify installation path prefix |
+| `OM`   | `make PREFIX=/tmp/kamailio-dev cfg` |
+| `CM`   | `cmake -DCMAKE_INSTALL_PREFIX=/tmp/kamailio-dev ..` |
+| `---`  | Specify additional modules to be included in compilation |
+| `OM`   | `make include_modules="app_lua db_mysql" cfg` |
+| `CM`   | `cmake -DINCLUDE_MODULES="app_lua db_mysql" ..` |
+| `---`  | Specify modules to be excluded from compilation |
+| `OM`   | `make exclude_modules="app_lua db_mysql" cfg` |
+| `CM`   | `cmake -DEXCLUDE_MODULES="app_lua db_mysql" ..` |
+| `---`  | Compile `kamailio` binary (the core) |
+| `OM`   | `make` |
+| `CM`   | `make kamailio` |
+| `---`  | Compile everything (core and modules) |
+| `OM`   | `make all` |
+| `CM`   | `make` |
+| `---`  | Compile `acc` modules (substitute with any other module name) |
+| `OM`   | `make modules modules=src/modules/acc` |
+| `CM`   | `make acc` |
+| `---`  | Compile with verbose output (quiet off) |
+| `OM`   | `make Q=0` |
+| `CM`   | `make VERBOSE=on` |