#!/bin/sh
# Clean out a single directory.  This is a subroutine for the CleanSubDirs
# scripts, due to the difficulty in making 'find' invoke code like this
# directly.
#
if [ $# -ne 1 ];then echo Usage: $0 directory;fi
echo Clean $1
cd $1
if	test -f Makefile -o -f makefile \
&&	grep -s "\<clean\> *:" [Mm]akefile # >/dev/null 2>&1
then	make clean # >/dev/null 2>&1
fi
