summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-10-30 21:20:44 +0100
committerMichael Stahl <mstahl@redhat.com>2013-10-31 10:42:24 +0100
commit7c4098659238b9a78da4ee734a7b51fc0fab5e92 (patch)
tree5378617d0bc1adc45cdd8426e64243a5ea4ef130 /solenv
parentfa424af27e8fd00528aea6ae4377184557a3a160 (diff)
gbuild: Package: check for duplicate definitions
Change-Id: I3c2a6b1128f7d827031e4c5a47a415112ce09c5c
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/Package.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/gbuild/Package.mk b/solenv/gbuild/Package.mk
index 37b3e079c1de..5b9586bd4dbc 100644
--- a/solenv/gbuild/Package.mk
+++ b/solenv/gbuild/Package.mk
@@ -95,6 +95,7 @@ $(call gb_Package_get_target,$(1)) :| $(dir $(call gb_Package_get_target,$(1))).
endef
define gb_Package_Package
+$$(if $$(gb_Package_SOURCEDIR_$(1)),$$(call gb_Output_error,gb_Package__check: Package $(1) has already been defined))
$(if $(filter postprocess% instsetoo_native%,$(1)),,\
$(call gb_Postprocess_register_target,AllPackages,Package,$(1)))
$(call gb_Package_Package_internal,$(1),$(2))