diff --git a/wmake/wclean b/wmake/wclean index c4f3808ba566fd406480f7752973d6719a828504..3e2c5f2b0b0d272bb8c4ec302c074c62ac346479 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