File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,13 @@ Other standard targets include:
138138The ` Makefile ` follows the [ GNU Standard Makefile conventions] ( https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html ) ,
139139allowing staged install, standard compilation flags, directory variables and command variables.
140140
141+ Common install variables include:
142+ - ` PREFIX ` : sets the final installation prefix recorded in installed metadata, such as ` libzstd.pc ` .
143+ For example, ` make install PREFIX=/usr ` installs under ` /usr ` instead of ` /usr/local ` .
144+ - ` DESTDIR ` : prepends a staging directory to the install path without changing installed metadata.
145+ For example, ` make install PREFIX=/usr DESTDIR="$PWD/staging" ` installs files under
146+ ` staging/usr ` , while ` libzstd.pc ` still records ` prefix=/usr ` .
147+
141148For advanced use cases, specialized flags which control binary generation and installation paths are documented
142149in [ ` lib/README.md ` ] ( lib/README.md#modular-build ) for the ` libzstd ` library
143150and in [ ` programs/README.md ` ] ( programs/README.md#compilation-variables ) for the ` zstd ` CLI.
You can’t perform that action at this time.
0 commit comments