diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-05-02 12:19:28 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-05-02 12:19:28 +0200 |
commit | bb83ca58e3788967943569c484be2da1dfdcb09b (patch) | |
tree | 3d80799fdfc1d091db80a0fa1d439ccb4fc635a5 /core/mk/pkg-macros/install.mk | |
parent | a214d88cc2941f0b12a1160a61051efb18fc1457 (diff) | |
download | embtoolkit-bb83ca58e3788967943569c484be2da1dfdcb09b.tar.gz embtoolkit-bb83ca58e3788967943569c484be2da1dfdcb09b.tar.bz2 embtoolkit-bb83ca58e3788967943569c484be2da1dfdcb09b.tar.xz |
Build system: tweak install macros to not use recursive make
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.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/mk/pkg-macros/install.mk b/core/mk/pkg-macros/install.mk index b80caca..d741b34 100644 --- a/core/mk/pkg-macros/install.mk +++ b/core/mk/pkg-macros/install.mk @@ -157,9 +157,13 @@ __embtk_single_make_hostinstall = $(__embtk_pkg_makeenv) \ $(if $(__embtk_pkg_destdir),DESTDIR=$(__embtk_pkg_destdir)) \ $(__embtk_pkg_makeopts) install +define __embtk_install_pkgdeps + $(foreach dep,$(__embtk_pkg_depspkgv),$(call embtk_install_xpkg,$(dep))) +endef + __embtk_autotoolspkg-y=$(2) define __embtk_install_pkg_make - $(foreach dep,$(__embtk_pkg_depspkgv),$(call embtk_install_xpkg,$(dep))) + $(call __embtk_install_pkgdeps,$(1)) $(call embtk_pinfo,"Compile/Install $(__embtk_pkg_name)-$(__embtk_pkg_version) in your root filesystem...") $(call embtk_download_pkg,$(1)) $(call embtk_decompress_pkg,$(1)) @@ -179,7 +183,7 @@ define __embtk_install_pkg_make $(eval __embtk_$(pkgv)_installed = y) endef define __embtk_install_hostpkg_make - $(Q)$(if $(__embtk_pkg_deps),$(MAKE) $(__embtk_pkg_deps)) + $(call __embtk_install_pkgdeps,$(1)) $(call embtk_pinfo,"Compile/Install $(__embtk_pkg_name)-$(__embtk_pkg_version) for host...") $(call embtk_download_pkg,$(1)) $(call embtk_decompress_pkg,$(1)) |