Kaydet (Commit) 1591194a authored tarafından David Tardon's avatar David Tardon

gb_Package_add_files _can_ take empty list of files

Change-Id: I5cc555de3f9b329b7bea6ea31b1689c2033a0904
üst 6fb3c387
...@@ -128,7 +128,7 @@ endef ...@@ -128,7 +128,7 @@ endef
# $(eval $(call gb_Package_add_files,foo_inc,inc/foo,foo/bar/foo.hxx)) # $(eval $(call gb_Package_add_files,foo_inc,inc/foo,foo/bar/foo.hxx))
# # -> inc/foo/foo.hxx # # -> inc/foo/foo.hxx
define gb_Package_add_files define gb_Package_add_files
$(if $(strip $(3)),,$(call gb_Output_error,gb_Package_add_files requires 3 arguments)) $(if $(strip $(3)),,$(if $(filter 1,$(words $(2))),,$(call gb_Output_error,gb_Package_add_files: it looks like either pkg name or dest. dir is missing)))
$(foreach file,$(3),$(call gb_Package_add_file,$(1),$(2)/$(notdir $(file)),$(file))) $(foreach file,$(3),$(call gb_Package_add_file,$(1),$(2)/$(notdir $(file)),$(file)))
endef endef
...@@ -142,7 +142,7 @@ endef ...@@ -142,7 +142,7 @@ endef
# $(eval $(call gb_Package_add_files,foo_inc,inc,foo/bar/foo.hxx)) # $(eval $(call gb_Package_add_files,foo_inc,inc,foo/bar/foo.hxx))
# # -> inc/foo/bar/foo.hxx # # -> inc/foo/bar/foo.hxx
define gb_Package_add_files_with_dir define gb_Package_add_files_with_dir
$(if $(strip $(3)),,$(call gb_Output_error,gb_Package_add_files_with_dir requires 3 arguments)) $(if $(strip $(3)),,$(if $(filter 1,$(words $(2))),,$(call gb_Output_error,gb_Package_add_files: it looks like either pkg name or dest. dir is missing)))
$(foreach file,$(3),$(call gb_Package_add_file,$(1),$(2)/$(file),$(file))) $(foreach file,$(3),$(call gb_Package_add_file,$(1),$(2)/$(file),$(file)))
endef endef
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment