summaryrefslogtreecommitdiff
path: root/include/package.mk
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2008-09-11 16:13:14 +0000
committerLars-Peter Clausen <lars@metafoo.de>2008-09-11 16:13:14 +0000
commit013d074603901040c286339554b530bec2775cc2 (patch)
tree3780ad994d7a9671d651ef2cd0a3a83b43c03d6e /include/package.mk
parent5a4e88710bb3d3a00756a3d4ac7921ee829bb8b6 (diff)
downloadmtk-20170518-013d074603901040c286339554b530bec2775cc2.zip
mtk-20170518-013d074603901040c286339554b530bec2775cc2.tar.gz
mtk-20170518-013d074603901040c286339554b530bec2775cc2.tar.bz2
Add InstallDev/(Pre|Post) hooks.
SVN-Revision: 12569
Diffstat (limited to 'include/package.mk')
-rw-r--r--include/package.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/package.mk b/include/package.mk
index 9c65037..d375130 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -1,9 +1,10 @@
-#
-# Copyright (C) 2006-2007 OpenWrt.org
+#
+# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
+# $Id$
all: $(if $(DUMP),dumpinfo,compile)
@@ -89,7 +90,14 @@ define Build/DefaultTargets
$(SUBMAKE) -j1 clean-staging
rm -rf $(TMP_DIR)/stage-$(PKG_NAME)
mkdir -p $(TMP_DIR)/stage-$(PKG_NAME)/host $(STAGING_DIR)/packages $(STAGING_DIR_HOST)/packages
+ $(foreach hook,$(Hooks/InstallDev/Pre),\
+ $(call $(hook),$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)$(sep)\
+ )
$(call Build/InstallDev,$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)
+ $(foreach hook,$(Hooks/InstallDev/Post),\
+ $(call $(hook),$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host
+)$(sep)\
+ )
if [ -d $(TMP_DIR)/stage-$(PKG_NAME) ]; then \
(cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(STAGING_DIR)/packages/$(PKG_NAME).list); \
$(CP) $(TMP_DIR)/stage-$(PKG_NAME)/* $(STAGING_DIR)/; \