diff options
author | John Crispin <john@openwrt.org> | 2007-10-07 01:55:03 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2007-10-07 01:55:03 +0000 |
commit | 33ecac1f24723ad46d1d5e72dbcc6768f7e00642 (patch) | |
tree | 8d6860cb3f8fac37e74b76d472d5bf7b092d2dff /include | |
parent | cfd0fecd47ca970b7deff63c81ad1034b80e5328 (diff) | |
download | mtk-20170518-33ecac1f24723ad46d1d5e72dbcc6768f7e00642.zip mtk-20170518-33ecac1f24723ad46d1d5e72dbcc6768f7e00642.tar.gz mtk-20170518-33ecac1f24723ad46d1d5e72dbcc6768f7e00642.tar.bz2 |
added a function, that packages can call to make installing files/folders much cleaner and easier
SVN-Revision: 9171
Diffstat (limited to 'include')
-rw-r--r-- | include/package.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk index d61eb8c..6307a1f 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 |