diff --git a/wmake/wclean b/wmake/wclean index 6595352a9828b2075fc8ce0ef5fee5f4ad269456..84459694bc266f2ec55c05431f55796ceb8c93c8 100755 --- a/wmake/wclean +++ b/wmake/wclean @@ -113,13 +113,12 @@ then exit $? elif [ ! -d $MakeDir ] then - for dir in `find . \( -type d -a -name Make \) -printf "%h "` + for dir in `find . \( -type d -a -name Make \)` do - $0 $dir + $0 ${dir%/Make} # parent directory - trim /Make from the end done exit 0 fi - fi # makeOption is not needed beyond this point