#!/bin/sh

topdir=`pwd`
ls |
while read subdir
do
    if [ -d $subdir ]
    then 
      echo "cleaning $subdir"
      cd $subdir 
      if [ -f "Makefile" ] 
	then
	    echo make clean in $subdir
	    make clean
	    else if [ -x Clean ]
	    then
		echo executing Clean in $subdir
		./Clean
	    fi
      fi
      cd $topdir
    fi
done
