X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=commands%2Fmake.py;h=6cd7bac762b4efe924898d5af37e7b63da799a63;hb=8907858912a4ceb6358a1f6659e8b9dbd6ef4ef4;hp=745a81ee5a88979c4fb59efef662e69a331883af;hpb=f28f3b84dbdc6e4c9d5d35d8538e19670ce13b4c;p=tools%2Fsat.git diff --git a/commands/make.py b/commands/make.py index 745a81e..6cd7bac 100644 --- a/commands/make.py +++ b/commands/make.py @@ -24,10 +24,10 @@ import src # Define all possible option for the make command : sat make parser = src.options.Options() parser.add_option('p', 'products', 'list2', 'products', - _('products to configure. This option can be' + _('Optional: products to configure. This option can be' ' passed several time to configure several products.')) parser.add_option('o', 'option', 'string', 'option', - _('Option to add to the make command.'), "") + _('Optional: Option to add to the make command.'), "") def get_products_list(options, cfg, logger): '''method that gives the product list with their informations from @@ -121,7 +121,14 @@ def make_product(p_name_info, make_option, config, logger): logger.write(header, 3) logger.write("\n", 4, False) logger.flush() - + + # Do nothing if he product is not compilable + if ("properties" in p_info and "compilation" in p_info.properties and + p_info.properties.compilation == "no"): + log_step(logger, header, "ignored") + logger.write("\n", 3, False) + return 0 + # Instantiate the class that manages all the construction commands # like cmake, make, make install, make test, environment management, etc... builder = src.compilation.Builder(config, logger, p_info) @@ -201,7 +208,10 @@ def description(): :rtype: str ''' return _("The make command executes the \"make\" command in" - " the build directory") + " the build directory.\nIn case of a product that is constructed " + "using a script (build_source : \"script\"), then the make " + "command executes the script.\n\nexample:\nsat make SALOME-master " + "--products Python,KERNEL,GUI") def run(args, runner, logger): '''method that is called when salomeTools is called with make parameter.