diff options
author | David Tardon <dtardon@redhat.com> | 2012-02-18 19:03:25 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-06 10:23:26 +0100 |
commit | 4abc59f0631160215b628acb4aacb39fb0419a1f (patch) | |
tree | 7a4346121aa0b308f71a0b2b42f5adb39f620af9 /solenv/gbuild/Extension.mk | |
parent | cb83035cd248348c0301a765dfe80c8d95859b4a (diff) |
support adding more than 1 file at once
Diffstat (limited to 'solenv/gbuild/Extension.mk')
-rw-r--r-- | solenv/gbuild/Extension.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk index 0d3044b696dd..d3ac634d848a 100644 --- a/solenv/gbuild/Extension.mk +++ b/solenv/gbuild/Extension.mk @@ -133,6 +133,16 @@ $(call gb_Extension_get_workdir,$(1))/$(2) : $(3) endef +# Add several files at once +# +# This function avoids the need to specify each file's name twice. The +# files are added directly under specified path in the extension, +# without any subpath. +define gb_Extension_add_files +$(foreach file,$(3),$(call gb_Extension_add_file,$(1),$(2)/$(notdir $(file)),$(file))) + +endef + # localize .properties file # source file is copied to $(WORKDIR) define gb_Extension_localize_properties |