aboutsummaryrefslogtreecommitdiffstats
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
commitca793aef55d9c728f2c3a38d822d4e3083b04eab (patch)
tree5c8b267e550640297f8fc473648d3f46a1a8972b /include/package-defaults.mk
parent79e18c1ce0303a16bc83631b30a8365c332fb514 (diff)
downloadupstream-ca793aef55d9c728f2c3a38d822d4e3083b04eab.tar.gz
upstream-ca793aef55d9c728f2c3a38d822d4e3083b04eab.tar.bz2
upstream-ca793aef55d9c728f2c3a38d822d4e3083b04eab.zip
add default Build/Install template, which is activated by setting PKG_INSTALL=1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12512 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 fd50cb4d81..c086cc21cc 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