diff --git a/wmake/wclean b/wmake/wclean index c4f3808ba5..3e2c5f2b0b 100755 --- a/wmake/wclean +++ b/wmake/wclean @@ -157,8 +157,15 @@ then # For all the sub-directories containing a 'Make' directory for dir in `find . \( -type d -a -name Make \)` do + dir=${dir%/Make} # Parent directory - trim /Make from the end echo $dir - $0 ${dir%/Make} # Parent directory - trim /Make from the end + # If Allwclean exists execute otherwise wclean + if [ -e "$dir/Allwclean" ] + then + $dir/Allwclean + else + $0 $dir + fi done fi fi