diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-04-07 23:22:08 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-04-08 01:05:52 +0200 |
commit | c923f7d2c210dc7846767fc0ac6ece2a0d7812a8 (patch) | |
tree | 4895fcbbf423daf410da5a8ef8e09ef8064c5c67 /solenv/gbuild/Extension.mk | |
parent | Fix Prefer prefix ++/-- operators (diff) | |
download | core-c923f7d2c210dc7846767fc0ac6ece2a0d7812a8.tar.gz core-c923f7d2c210dc7846767fc0ac6ece2a0d7812a8.zip |
gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
(i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
(i.e. it is registered at the Module, has it's own makefile, may be
in a different module than the target)
Diffstat (limited to 'solenv/gbuild/Extension.mk')
-rw-r--r-- | solenv/gbuild/Extension.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk index 80112272f752..202521e4e74f 100644 --- a/solenv/gbuild/Extension.mk +++ b/solenv/gbuild/Extension.mk @@ -194,12 +194,22 @@ $(call gb_Extension_get_rootdir,$(1))/$(2) : $(3) endef define gb_Extension_add_package_dependency +$$(call gb_Output_error,\ + gb_Extension_add_package_dependency: use gb_Extension_use_package instead.) +endef + +define gb_Extension_use_package $(call gb_Extension_get_target,$(1)) : $(call gb_Package_get_target,$(2)) endef define gb_Extension_add_package_dependencies -$(foreach package,$(2),$(call gb_Extension_add_package_dependency,$(1),$(package))) +$$(call gb_Output_error,\ + gb_Extension_add_package_dependencies: use gb_Extension_use_packages instead.) +endef + +define gb_Extension_use_packages +$(foreach package,$(2),$(call gb_Extension_use_package,$(1),$(package))) endef |