summaryrefslogtreecommitdiff
path: root/mk/macros.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-08-27 18:46:51 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-08-27 18:53:54 +0200
commit27284d5bbfec47a2db87acb8ea32cde3cc8d60ca (patch)
tree5a8d70d153f5c0a8e0094beb92206a1b69f31513 /mk/macros.mk
parentf03be92c85ca82a78055f6ba24bc5a0fd8dbd210 (diff)
downloadembtoolkit-27284d5bbfec47a2db87acb8ea32cde3cc8d60ca.tar.gz
embtoolkit-27284d5bbfec47a2db87acb8ea32cde3cc8d60ca.tar.bz2
embtoolkit-27284d5bbfec47a2db87acb8ea32cde3cc8d60ca.tar.xz
Build system: generic macros: give ability for a packages to define post install hook recipe
Packages now may define a post install hook, after call of various embtk_{make}install_{host}pkg like this: define embtk_postinstall_{pkgname} ... ... endef '{pkgname}' being the lower case package name. Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/macros.mk')
-rw-r--r--mk/macros.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/mk/macros.mk b/mk/macros.mk
index 8a0574b..75ef983 100644
--- a/mk/macros.mk
+++ b/mk/macros.mk
@@ -455,8 +455,9 @@ endef
# $(call embtk_install_pkg,package)
#
define embtk_install_pkg
- $(Q)$(if $(__embtk_pkg_installed-y), \
+ $(if $(__embtk_pkg_installed-y), \
true,$(call __embtk_install_pkg_make,$(1),autotools))
+ $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv)))
endef
#
@@ -466,8 +467,9 @@ endef
# $(call embtk_makeinstall_pkg,package)
#
define embtk_makeinstall_pkg
- $(Q)$(if $(__embtk_pkg_installed-y), \
+ $(if $(__embtk_pkg_installed-y), \
true,$(call __embtk_install_pkg_make,$(1)))
+ $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv)))
endef
#
@@ -477,8 +479,9 @@ endef
# $(call embtk_install_hostpkg,package)
#
define embtk_install_hostpkg
- $(Q)$(if $(__embtk_pkg_installed-y),true, \
+ $(if $(__embtk_pkg_installed-y),true, \
$(call __embtk_install_hostpkg_make,$(1),autotools))
+ $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv)))
endef
#
@@ -488,8 +491,9 @@ endef
# $(call embtk_makeinstall_hostpkg,package)
#
define embtk_makeinstall_hostpkg
- $(Q)$(if $(__embtk_pkg_installed-y),true, \
+ $(if $(__embtk_pkg_installed-y),true, \
$(call __embtk_install_hostpkg_make,$(1)))
+ $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv)))
endef
#