mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: wmake: 'wmake dep' to build dependencies and softlinks
This commit is contained in:
12
wmake/wmake
12
wmake/wmake
@ -56,6 +56,7 @@ or a special target:
|
||||
libo build statically linked lib (.o)
|
||||
libso build dynamically linked lib (.so)
|
||||
jar build Java jar
|
||||
dep build lnInclude and dependencies only
|
||||
|
||||
USAGE
|
||||
exit 1
|
||||
@ -244,7 +245,7 @@ OBJECTS_DIR=$MakeDir/$WM_OPTIONS
|
||||
touch $OBJECTS_DIR/dontIncludeDeps
|
||||
|
||||
case "$makeType" in
|
||||
lib | libo | libso )
|
||||
lib | libo | libso | dep )
|
||||
$make -s -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/dontIncludeDeps lnInclude/uptodate
|
||||
;;
|
||||
esac
|
||||
@ -258,8 +259,11 @@ rc=$?
|
||||
# make the object files and link
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cmd="$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps $makeType"
|
||||
# echo "cmd=$cmd"
|
||||
exec $cmd
|
||||
if [ "$makeType" != dep ]
|
||||
then
|
||||
cmd="$make -f $WM_DIR/Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps $makeType"
|
||||
# echo "cmd=$cmd"
|
||||
exec $cmd
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user