summaryrefslogtreecommitdiff
path: root/include/package-defaults.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-03 13:19:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-03 13:19:50 +0000
commit3b937f85e807ef0d5936f87e9f18c8aef61a4176 (patch)
tree6ca514e4ef5265a2ea4a89f5025587c240d6f66e /include/package-defaults.mk
parente08253b1c225acb88456c3596c8467f3948b3875 (diff)
downloadmtk-20170518-3b937f85e807ef0d5936f87e9f18c8aef61a4176.zip
mtk-20170518-3b937f85e807ef0d5936f87e9f18c8aef61a4176.tar.gz
mtk-20170518-3b937f85e807ef0d5936f87e9f18c8aef61a4176.tar.bz2
add default Build/Install template, which is activated by setting PKG_INSTALL=1
SVN-Revision: 12512
Diffstat (limited to 'include/package-defaults.mk')
-rw-r--r--include/package-defaults.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index fd50cb4..c086cc2 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -102,6 +102,10 @@ MAKE_FLAGS = \
CROSS="$(TARGET_CROSS)" \
ARCH="$(ARCH)"
+MAKE_INSTALL_FLAGS = \
+ $(MAKE_FLAGS) \
+ DESTDIR="$(PKG_INSTALL_DIR)"
+
MAKE_PATH = .
define Build/Compile/Default
@@ -110,3 +114,10 @@ define Build/Compile/Default
$(MAKE_FLAGS) \
$(1);
endef
+
+define Build/Install/Default
+ $(MAKE_VARS) \
+ $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
+ $(MAKE_INSTALL_FLAGS) \
+ $(1) install;
+endef