From 0bc828684580c9b0805dff8c9de85e71b188dca9 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Tue, 5 Jul 2016 07:54:45 +0100
Subject: [PATCH] wmake: execute wmakeLnIncludeAll once with options 'queue'
 and 'update'

---
 wmake/wmake | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/wmake/wmake b/wmake/wmake
index 9ac7a102a3..a047b12c2c 100755
--- a/wmake/wmake
+++ b/wmake/wmake
@@ -281,11 +281,14 @@ if [ -n "$update" ]
 then
     wrmdep -update
     wrmdep -old
-    if [ -n "$WM_NCOMPPROCS" ]
+    if [ "$all" != "queue" ]
     then
-        wmakeLnIncludeAll -j$WM_NCOMPPROCS
-    else
-        wmakeLnIncludeAll
+        if [ -n "$WM_NCOMPPROCS" ]
+        then
+            wmakeLnIncludeAll -j$WM_NCOMPPROCS
+        else
+            wmakeLnIncludeAll
+        fi
     fi
     wclean empty
     export WM_UPDATE_DEPENDENCIES=yes
-- 
GitLab