summaryrefslogtreecommitdiff
path: root/core/mk/pkg-macros/install.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-07-07 21:06:41 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-07-10 20:44:53 +0200
commitfc69c860396b58ec30110262aa0c904eaba9b1cb (patch)
tree9709050acdb07a85a5374499bd4c98904e19961d /core/mk/pkg-macros/install.mk
parent875cca2b6322046f65cf33992d9c11719bb246e6 (diff)
downloadembtoolkit-fc69c860396b58ec30110262aa0c904eaba9b1cb.tar.gz
embtoolkit-fc69c860396b58ec30110262aa0c904eaba9b1cb.tar.bz2
embtoolkit-fc69c860396b58ec30110262aa0c904eaba9b1cb.tar.xz
Build system internal macros: commonize use of __embtk_{pre,post}install_pkg in various install macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/mk/pkg-macros/install.mk')
-rw-r--r--core/mk/pkg-macros/install.mk28
1 files changed, 14 insertions, 14 deletions
diff --git a/core/mk/pkg-macros/install.mk b/core/mk/pkg-macros/install.mk
index 2ec8361..22ffc05 100644
--- a/core/mk/pkg-macros/install.mk
+++ b/core/mk/pkg-macros/install.mk
@@ -187,7 +187,6 @@ endef
__embtk_autotoolspkg-y=$(2)
define __embtk_install_pkg_make
- $(call __embtk_preinstall_pkg,$(1))
$(if $(__embtk_autotoolspkg-y),$(call embtk_configure_pkg,$(1)))
$(if $(__embtk_pkg_makedirs), \
$(__embtk_multi_make), \
@@ -198,10 +197,8 @@ define __embtk_install_pkg_make
$(if $(__embtk_autotoolspkg-y)$(__embtk_pkg_pkgconfigs),
$(call __embtk_fix_libtool_files)
$(call __embtk_fix_pkgconfig_files))
- $(call __embtk_postinstall_pkg,$(1))
endef
define __embtk_install_hostpkg_make
- $(call __embtk_preinstall_hostpkg,$(1))
$(if $(__embtk_autotoolspkg-y),$(call embtk_configure_hostpkg,$(1)))
$(if $(__embtk_pkg_makedirs), \
$(__embtk_multi_make), \
@@ -209,7 +206,6 @@ define __embtk_install_hostpkg_make
$(if $(__embtk_pkg_makedirs), \
$(__embtk_multi_make_hostinstall), \
$(__embtk_single_make_hostinstall))
- $(call __embtk_postinstall_pkg,$(1))
endef
__embtk_waf_build = cd $(__embtk_pkg_srcdir); ./waf build $(J) --progress
@@ -222,22 +218,18 @@ __embtk_waf_hostinstall = cd $(__embtk_pkg_srcdir); ./waf install --progress \
$(if $(__embtk_pkg_destdir),--destdir=$(__embtk_pkg_destdir))
define __embtk_install_pkg_waf
- $(call __embtk_preinstall_pkg,$(1))
$(call embtk_wafconfigure_pkg,$(1))
$(call __embtk_waf_build,$(1))
$(call __embtk_waf_install,$(1))
$(if $(__embtk_pkg_pkgconfigs),
$(call __embtk_fix_libtool_files)
$(call __embtk_fix_pkgconfig_files))
- $(call __embtk_postinstall_pkg,$(1))
endef
define __embtk_install_hostpkg_waf
- $(call __embtk_preinstall_pkg,$(1))
$(call embtk_wafconfigure_hostpkg,$(1))
$(call __embtk_waf_build,$(1))
$(call __embtk_waf_hostinstall,$(1))
- $(call __embtk_postinstall_pkg,$(1))
endef
#
@@ -298,9 +290,11 @@ define embtk_install_pkg
endef
define __embtk_install_pkg
$(if $(__embtk_pkg_runrecipe-y),
+ $(call __embtk_preinstall_pkg,$(1))
$(if $(__embtk_pkg_usewaf-y),
- $(Q)$(call __embtk_install_pkg_waf,$(1)),
- $(Q)$(call __embtk_install_pkg_make,$(1),autotools)))
+ $(call __embtk_install_pkg_waf,$(1)),
+ $(call __embtk_install_pkg_make,$(1),autotools))
+ $(call __embtk_postinstall_pkg,$(1)))
$(embtk_postinstall_$(pkgv))
endef
@@ -313,7 +307,9 @@ endef
define embtk_makeinstall_pkg
$(if $(__embtk_xinstall_xpkg_allvarset-y),
$(if $(__embtk_pkg_runrecipe-y),
- $(Q)$(call __embtk_install_pkg_make,$(1)))
+ $(call __embtk_preinstall_pkg,$(1))
+ $(call __embtk_install_pkg_make,$(1))
+ $(call __embtk_postinstall_pkg,$(1)))
$(embtk_postinstall_$(pkgv)),
$(call __embtk_install_paramsfailure,$(1)))
endef
@@ -331,9 +327,11 @@ define embtk_install_hostpkg
endef
define __embtk_install_hostpkg
$(if $(__embtk_pkg_runrecipe-y),
+ $(call __embtk_preinstall_hostpkg,$(1))
$(if $(__embtk_pkg_usewaf-y),
- $(Q)$(call __embtk_install_hostpkg_waf,$(1)),
- $(Q)$(call __embtk_install_hostpkg_make,$(1),autotools)))
+ $(call __embtk_install_hostpkg_waf,$(1)),
+ $(call __embtk_install_hostpkg_make,$(1),autotools))
+ $(call __embtk_postinstall_pkg,$(1)))
$(embtk_postinstall_$(pkgv))
endef
@@ -346,7 +344,9 @@ endef
define embtk_makeinstall_hostpkg
$(if $(__embtk_xinstall_xpkg_allvarset-y),
$(if $(__embtk_pkg_runrecipe-y),
- $(Q)$(call __embtk_install_hostpkg_make,$(1)))
+ $(call __embtk_preinstall_hostpkg,$(1))
+ $(call __embtk_install_hostpkg_make,$(1))
+ $(call __embtk_postinstall_pkg,$(1)))
$(embtk_postinstall_$(pkgv)),
$(call __embtk_install_paramsfailure,$(1)))
endef