Description: Build parallelly
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2016-09-28

Index: openfoam/wmake/scripts/AllwmakeParseArguments
===================================================================
--- openfoam.orig/wmake/scripts/AllwmakeParseArguments
+++ openfoam/wmake/scripts/AllwmakeParseArguments
@@ -80,13 +80,6 @@ USAGE_LIB
 
 setWM_NCOMPPROCS()
 {
-    if [ -r /proc/cpuinfo ]
-    then
-        WM_NCOMPPROCS=$(egrep "^processor" /proc/cpuinfo | wc -l)
-    else
-        WM_NCOMPPROCS=1
-    fi
-
     export WM_NCOMPPROCS
 }
 
Index: openfoam/wmake/wmake
===================================================================
--- openfoam.orig/wmake/wmake
+++ openfoam/wmake/wmake
@@ -162,19 +162,7 @@ fi
 
 if [ "$WM_NCOMPPROCS" ]
 then
-    if [ "$WM_NCOMPPROCS" -gt 1 -a ! "$MAKEFLAGS" ]
-    then
-        lockDir=$HOME/.$WM_PROJECT/.wmake
-
-        if [ -d $lockDir ]
-        then
-            rm -f $lockDir/*
-        else
-            mkdir -p $lockDir
-        fi
-
-        make="$make --no-print-directory -j "$WM_NCOMPPROCS
-    fi
+    make="$make --no-print-directory -j "$WM_NCOMPPROCS
 fi
 
 
