summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-10-07 01:55:03 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-10-07 01:55:03 +0000
commit04b4c17bf2c3dfca5b8a2aa6656f61af5456831e (patch)
tree1276302454a1723c75bcd95f53dc42afd4dad0d9 /include
parenta5d58567566ccbd2b3161e25f1066e60a452b6c2 (diff)
added a function, that packages can call to make installing files/folders much cleaner and easier
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9171 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk
index d61eb8cf7a..6307a1f47c 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -121,6 +121,10 @@ define libtool_fixup_libdir
$(SED) "s,^libdir='/usr/lib',libdir='$(strip $(1))/usr/lib',g"
endef
+define pkg_install_files
+ $(foreach install_file,$(2),$(INSTALL_DIR) $(1)/`dirname $(install_file)`; $(CP) $(PKG_INSTALL_DIR)/$(install_file) $(1)/`dirname $(install_file)`;)
+endef
+
define Build/Prepare
$(call Build/Prepare/Default,)
endef