Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support make DESTDIR=... install for easier packaging
Packaging scripts often use the DESTDIR=/some/directory variable to make the build system install the binaries in a specific directory which will be compressed to create the package. This commit adds support for this variable, by introducing a new INSTALL_DIR variable in the Makefile and replacing PREFIX by INSTALL_DIR everywhere it makes sense. Note that by default, INSTALL_DIR=$(PREFIX) so there should not be any compatibility problem with this commit.
- Loading branch information
Showing
2 changed files
with
44 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters