Salome HOME
sat launcher: Put a relative link instead of an absolute link in the
[tools/sat.git] / commands / make.py
index 6cd7bac762b4efe924898d5af37e7b63da799a63..45b3155faa48e4185497a402e85b19e55f499114 100644 (file)
@@ -141,20 +141,14 @@ def make_product(p_name_info, make_option, config, logger):
     # Execute buildconfigure, configure if the product is autotools
     # Execute cmake if the product is cmake
     len_end_line = 20
-    res = 0
-    if not src.product.product_has_script(p_info):
-        nb_proc, make_opt_without_j = get_nb_proc(p_info, config, make_option)
-        log_step(logger, header, "MAKE -j" + str(nb_proc))
-        res_m = builder.make(nb_proc, make_opt_without_j)
-        log_res_step(logger, res_m)
-        res += res_m
+
+    nb_proc, make_opt_without_j = get_nb_proc(p_info, config, make_option)
+    log_step(logger, header, "MAKE -j" + str(nb_proc))
+    if src.architecture.is_windows():
+        res = builder.wmake(nb_proc, make_opt_without_j)
     else:
-        scrit_path_display = src.printcolors.printcLabel(p_info.compil_script)
-        log_step(logger, header, "SCRIPT " + scrit_path_display)
-        len_end_line += len(scrit_path_display)
-        res_s = builder.do_script_build(p_info.compil_script)
-        log_res_step(logger, res_s)
-        res += res_s
+        res = builder.make(nb_proc, make_opt_without_j)
+    log_res_step(logger, res)
     
     # Log the result
     if res > 0:
@@ -208,9 +202,7 @@ def description():
     :rtype: str
     '''
     return _("The make command executes the \"make\" command in"
-             " 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 "
+             " the build directory.\nexample:\nsat make SALOME-master "
              "--products Python,KERNEL,GUI")
   
 def run(args, runner, logger):