From bf055e80a6a28f6477fb8ce304a39d46af8c1a5f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 16 Nov 2012 01:06:38 -0500 Subject: Also set install_root and INSTALL_ROOT with make. --- 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() -- cgit v0.9.1