diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-02-13 12:49:01 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-13 12:49:26 +0100 |
commit | 3fc36ba1479b19cfe07984e87a2e25803c470d5c (patch) | |
tree | 9ad0510a4471ea72c61b4013fb7467cd680f6b40 /solenv/gbuild/Helper.mk | |
parent | e40f9e6f08357ab744d2b5301db1886b3f0a7b70 (diff) |
gbuild: add some error checking for gb_Helper_*_for_install
Change-Id: Idb82c3d1d723f9214ca1424299cb1c93597fca40
Diffstat (limited to 'solenv/gbuild/Helper.mk')
-rw-r--r-- | solenv/gbuild/Helper.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk index f640812c8ebf..0c0c3b2d613d 100644 --- a/solenv/gbuild/Helper.mk +++ b/solenv/gbuild/Helper.mk @@ -133,6 +133,7 @@ gb_Executable_$(1) += $(2) endef define gb_Helper_register_executables_for_install +$(if $(3),,$(call gb_Output_error,gb_Helper_register_executables_for_install: no executables - need 3 parameters)) $(call gb_Helper_register_executables,$(1),$(3)) gb_Executable_MODULE_$(2) += $(3) @@ -157,6 +158,7 @@ endef # the first argument is the group, which sets rpaths etc. # the second argument is the install module, which describes in which distro package/msi a lib should show up define gb_Helper_register_libraries_for_install +$(if $(3),,$(call gb_Output_error,gb_Helper_register_libraries_for_install: no libraries - need 3 parameters)) $(call gb_Helper_register_libraries,$(1),$(3)) gb_Library_MODULE_$(2) += $(filter-out $(gb_MERGEDLIBS) $(gb_URELIBS),$(3)) @@ -180,6 +182,7 @@ endef # $(call gb_Helper_register_jars_for_install,layer,installmodule,jars) define gb_Helper_register_jars_for_install +$(if $(3),,$(call gb_Output_error,gb_Helper_register_jars_for_install: no jars - need 3 parameters)) $(call gb_Helper_register_jars,$(1),$(3)) gb_Jar_MODULE_$(2) += $(3) @@ -188,6 +191,7 @@ endef # $(call gb_Helper_register_packages_for_install,installmodule,packages) define gb_Helper_register_packages_for_install +$(if $(2),,$(call gb_Output_error,gb_Helper_register_packages_for_install: no packages - need 2 parameters)) gb_Package_MODULE_$(1) += $(2) |