diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-06 12:46:30 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-06 12:46:30 +0200 |
commit | 62e62350c79f4d13a0d015670a6876f76bc15753 (patch) | |
tree | 739f751168a8e78e2ee30a5f9e11c9e315d56e2e /solenv | |
parent | f1d1986a97aa9812dd045f6864a61964b7b9301a (diff) |
gbuild: add a check for duplicate component files
Change-Id: I9549d9e4e083744b4bb39eac622c59586c1efbe3
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/Library.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/solenv/gbuild/Library.mk b/solenv/gbuild/Library.mk index 157be8c4992f..b9ea45e0c9da 100644 --- a/solenv/gbuild/Library.mk +++ b/solenv/gbuild/Library.mk @@ -108,6 +108,9 @@ endef # But the component target also must be delivered, so a new phony target # gb_Library__get_final_target has been invented for that purpose... define gb_Library_set_componentfile +$(call gb_Library_get_target,$(gb_Library__get_name)) : \ + COMPONENT := $$(if $$(COMPONENT),\ + $$(call gb_Output_error,$(1) already has a component file $$(COMPONENT)))$(2) $(call gb_ComponentTarget_ComponentTarget,$(2),\ $(call gb_Library__get_componentprefix,$(gb_Library__get_name)),\ $(call gb_Library_get_runtime_filename,$(gb_Library__get_name))) |