gbuild: Package: check for duplicate definitions

Change-Id: I3c2a6b1128f7d827031e4c5a47a415112ce09c5c
This commit is contained in:
Michael Stahl 2013-10-30 21:20:44 +01:00
parent fa424af27e
commit 7c40986592

View file

@ -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))