Ver Fonte

added a function, that packages can call to make installing files/folders much cleaner and easier

SVN-Revision: 9171
John Crispin há 18 anos atrás
pai
commit
33ecac1f24
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      include/package.mk

+ 4 - 0
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