src/Pstream: Added Allwclean consistent with the Allwmake
Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2218
This commit is contained in:
parent
bf9c6b6d17
commit
74e1352cc2
30
src/Pstream/Allwclean
Executable file
30
src/Pstream/Allwclean
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Define how an mpi-versioned library is created
|
||||
# clean the qualified directory
|
||||
wcleanMpiLib()
|
||||
{
|
||||
set +x
|
||||
for libName
|
||||
do
|
||||
(
|
||||
WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"
|
||||
wclean $libName
|
||||
)
|
||||
done
|
||||
set -x
|
||||
}
|
||||
|
||||
set -x
|
||||
wclean dummy
|
||||
|
||||
case "$WM_MPLIB" in
|
||||
*MPI*)
|
||||
set +x
|
||||
wcleanMpiLib mpi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
@ -5,11 +5,9 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
||||
|
||||
|
||||
#
|
||||
# define how to create an mpi-versioned library of $targetType
|
||||
# Define how to create an mpi-versioned library of $targetType
|
||||
# compile into qualified directory
|
||||
# use sentinel file to handle version changes
|
||||
#
|
||||
wmakeMpiLib()
|
||||
{
|
||||
set +x
|
||||
|
@ -100,7 +100,7 @@ include $(GENERAL_RULES)/general
|
||||
#------------------------------------------------------------------------------
|
||||
# Include PROJECT directory tree file and
|
||||
# source, object and dependency list files.
|
||||
# These are constructed by MakefileFiles
|
||||
# These are constructed by makefiles/files
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
include $(OBJECTS_DIR)/options
|
||||
|
Loading…
Reference in New Issue
Block a user