diff --git a/wmake/wclean b/wmake/wclean index d71f9d87ac0a1c33d2410f8940885f36a3e58696..9f18e9ca4b914483c31d1e57ce08f5c983cb9adc 100755 --- a/wmake/wclean +++ b/wmake/wclean @@ -224,8 +224,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