From caa74eee6f4fc2a5319c2e6daa909466a88759ad Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Mon, 13 May 2013 15:23:16 +0100
Subject: [PATCH] wmake: Change default behaviour to check the Make/files file
 for a LIB entry and compile libso if appropriate

---
 wmake/wmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wmake/wmake b/wmake/wmake
index ced70188cca..ebcd38cb6e0 100755
--- a/wmake/wmake
+++ b/wmake/wmake
@@ -3,7 +3,7 @@
 # =========                 |
 # \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
 #  \\    /   O peration     |
-#   \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
+#   \\  /    A nd           | Copyright (C) 2011-2013 OpenFOAM Foundation
 #    \\/     M anipulation  |
 #-------------------------------------------------------------------------------
 # License
@@ -202,9 +202,9 @@ fi
     exit 1
 }
 
-# transform "all" option to "libso" if that looks appropriate or remove it
+# transform "all" or no option to "libso" if that looks appropriate or remove it
 # so that the call to make builds the application
-if [ "$makeType" = all ]
+if [ "$makeType" = all -o "$makeType" = "" ]
 then
     unset makeType
     if grep -e '^ *LIB *=' "$MakeDir/files" >/dev/null 2>&1
-- 
GitLab