From: John Crispin Date: Sun, 7 Oct 2007 01:55:03 +0000 (+0000) Subject: added a function, that packages can call to make installing files/folders much cleane... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=33ecac1f24723ad46d1d5e72dbcc6768f7e00642;p=openwrt%2Fstaging%2Fjow.git added a function, that packages can call to make installing files/folders much cleaner and easier SVN-Revision: 9171 --- 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