diff options
author | P. J. McDermott <pjm@nac.net> | 2012-11-16 01:06:38 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-11-16 01:06:38 (EST) |
commit | bf055e80a6a28f6477fb8ce304a39d46af8c1a5f (patch) | |
tree | 7dbce38f087ad28609d51f6f6e6f484a8254cbfd | |
parent | 94fddb7a25e799c4bd09f87b71ff557435b5d4c1 (diff) |
Also set install_root and INSTALL_ROOT with make.
-rw-r--r-- | lib/buildsystem/make.sh | 16 |
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() |