|
4 | 4 | > **Before running the `make install` or `cmake --install` command, be aware |
5 | 5 | > that files will be copied outside of your current build directory.** |
6 | 6 |
|
7 | | -Installation of built files is a simple copy to a predefined directory structure |
8 | | -on a given system. In this phase the executable binary files, dynamic library |
9 | | -objects, header files, \*nix man documentation pages, and similar files are |
10 | | -copied to system directories. |
| 7 | +Installation of built files is usually a simple copy to a predefined directory |
| 8 | +structure on a given system. In this phase the executable binary files, dynamic |
| 9 | +library objects, header files, \*nix man documentation pages, and similar files |
| 10 | +are copied to system directories. |
11 | 11 |
|
12 | 12 | Please note that PHP installation on \*nix systems is typically handled by |
13 | 13 | system package managers through automated scripts. Additionally, it is common |
@@ -36,25 +36,22 @@ make TEST_PHP_ARGS=-j$(nproc) test |
36 | 36 | make INSTALL_ROOT="/stage" install |
37 | 37 | ``` |
38 | 38 |
|
39 | | -Above, the optional `--prefix` configure option, sets the location where the |
40 | | -built files layout is put. The optional `INSTALL_ROOT` environment variable can |
41 | | -set the parent location where the prefixed built files layout will be put. By |
42 | | -default the `--prefix` is set to `/usr/local` and `INSTALL_ROOT` is empty. The |
43 | | -`INSTALL_ROOT` is usually used to set the stage directory on some systems to |
44 | | -perform additional tasks on the built files before being packaged or |
45 | | -distributed. |
| 39 | +The optional `--prefix` configure option sets the location where the built files |
| 40 | +layout is put. By default it is set to `/usr/local`. The optional `INSTALL_ROOT` |
| 41 | +environment variable can set the parent location where the prefixed built files |
| 42 | +layout will be put. By default it is empty and it is usually used to set the |
| 43 | +stage directory to perform additional tasks on the built files before being |
| 44 | +packaged or distributed. |
46 | 45 |
|
47 | 46 | > [!NOTE] |
48 | | -> The `INSTALL_ROOT` variable name is used in PHP and software from the early |
49 | | -> Autotools days. Automake and other build systems use a more common variable |
50 | | -> name [`DESTDIR`](https://www.gnu.org/software/automake/manual/html_node/DESTDIR.html), |
51 | | -> however, for historical reasons and since PHP doesn't use Automake, the |
52 | | -> `INSTALL_ROOT` variable name is still used in PHP instead. |
| 47 | +> The `INSTALL_ROOT` variable name is used in PHP from the early Autotools days. |
| 48 | +> GNU standards and other build systems use a more common name |
| 49 | +> [`DESTDIR`](https://www.gnu.org/prep/standards/html_node/DESTDIR.html). |
53 | 50 |
|
54 | | -The files are then copied to a predefined directory structure (GNU or PHP |
55 | | -layout). The optional PHP Autotools configuration option |
56 | | -`--with-layout=[GNU|PHP]` defines the installation directory structure. By |
57 | | -default it is set to a PHP style directory structure: |
| 51 | +The files are then copied to a predefined directory structure. PHP Autotools has |
| 52 | +another optional configure option `--with-layout=[GNU|PHP]` (GNU or PHP layout). |
| 53 | +It defines the installation directory structure. By default it is set to a PHP |
| 54 | +style directory structure: |
58 | 55 |
|
59 | 56 | ```sh |
60 | 57 | /INSTALL_ROOT |
@@ -91,8 +88,8 @@ default it is set to a PHP style directory structure: |
91 | 88 | This is how the GNU layout directory structure looks like (`--with-layout=GNU`): |
92 | 89 |
|
93 | 90 | ```sh |
94 | | -/INSTALL_ROOT |
95 | | - └─ /usr/ |
| 91 | +/INSTALL_ROOT/ |
| 92 | + └─ usr/ |
96 | 93 | └─ local/ |
97 | 94 | ├─ bin/ |
98 | 95 | └─ etc/ |
@@ -245,7 +242,7 @@ root directory: |
245 | 242 | "PHP_BUILD_COMPILER": "GCC", |
246 | 243 | "PHP_BUILD_ARCH": "x86", |
247 | 244 | "PHP_VERSION_LABEL": "-acme", |
248 | | - "PHP_EXTENSION_DIR": "/install/prefix/lib/php83/extensions" |
| 245 | + "PHP_EXTENSION_DIR": "lib/php83/extensions" |
249 | 246 | } |
250 | 247 | } |
251 | 248 | ], |
|
0 commit comments