summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buildsystem')
-rw-r--r--lib/buildsystem/make.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh
index 2010bed..66cd20b 100644
--- a/lib/buildsystem/make.sh
+++ b/lib/buildsystem/make.sh
@@ -63,8 +63,22 @@ _oh_make_can_install()
_oh_make_install()
{
+ # About the destination directory macros:
+ # * As recommended by the GNU Coding Standards (since 1998-10-15),
+ # makefiles generated by GNU Automake use DESTDIR (since 1998-03-20 and
+ # released in Automake 1.3).
+ # * The makefile of glibc (and therefore EGLIBC) uses install_root (since
+ # 1997-01-18). (Since 2011-07-05, install_root is set to the value of
+ # DESTDIR by default.) Postfix is another package that uses
+ # install_root.
+ # * The makefiles of some other packages use INSTALL_ROOT. PHP 5 is one
+ # such package. Makefiles generated by qmake and CMake also use
+ # INSTALL_ROOT.
_oh_make_update_first_defined_target 'install' \
- "${@}" "DESTDIR=${_OH_BUILDSYSTEM_DESTDIR}"
+ "DESTDIR=${_OH_BUILDSYSTEM_DESTDIR}" \
+ "install_root=${_OH_BUILDSYSTEM_DESTDIR}" \
+ "INSTALL_ROOT=${_OH_BUILDSYSTEM_DESTDIR}" \
+ "${@}"
}
_oh_make_update_first_defined_target()