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
This commit is contained in:
Felix Fietkau
2008-09-03 13:19:50 +00:00
parent 79e18c1ce0
commit ca793aef55
2 changed files with 15 additions and 11 deletions

View File

@@ -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