import src
-# Define all possible option for the makeinstall command : sat makeinstall <options>
+# Define all possible option for the makeinstall command : sat makeinstall <options>
parser = src.options.Options()
parser.add_option('p', 'products', 'list2', 'products',
- _('products to configure. This option can be'
- ' passed several time to configure several products.'))
+ _('Optional: products to install. This option can be'
+ ' passed several time to install several products.'))
def get_products_list(options, cfg, logger):
'''method that gives the product list with their informations from
# Logging
logger.write("\n", 4, False)
logger.write("################ ", 4)
- header = _("Make of %s") % src.printcolors.printcLabel(p_name)
+ header = _("Make install of %s") % src.printcolors.printcLabel(p_name)
header += " %s " % ("." * (20 - len(p_name)))
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)
:rtype: str
'''
return _("The makeinstall command executes the \"make install\" command in"
- " the build directory")
+ " the build directory.\nIn case of product that is constructed "
+ "using a script (build_source : \"script\"), then the "
+ "makeinstall command do nothing.\n\nexample:\nsat makeinstall "
+ "SALOME-master --products KERNEL,GUI")
def run(args, runner, logger):
'''method that is called when salomeTools is called with makeinstall parameter.