
# 
#  Copyright 1990, 1991 by the Massachusetts Institute of Technology and
#  UniSoft Group Limited.
#  
#  Permission to use, copy, modify, distribute, and sell this software and
#  its documentation for any purpose is hereby granted without fee,
#  provided that the above copyright notice appear in all copies and that
#  both that copyright notice and this permission notice appear in
#  supporting documentation, and that the names of MIT and UniSoft not be
#  used in advertising or publicity pertaining to distribution of the
#  software without specific, written prior permission.  MIT and UniSoft
#  make no representations about the suitability of this software for any
#  purpose.  It is provided "as is" without express or implied warranty.
# 
# $XConsortium: pclean,v 1.2 92/06/11 18:01:40 rws Exp $
#


# If there is no Makefile then make it first
if [ ! -f Makefile ]; then
	mmkf -o Makefile *.m
	if [ ! -f Makefile ]; then
		echo Could not make Makefile
		exit 1
	fi
fi

TMP=/tmp/xm$$
trap 'rm -f $TMP; exit ${EXIT_STATUS}' 0 1 2 3 15

CCONFIG=${TET_CLEANCONFIG-${TET_ROOT}/xtest/tetclean.cfg}

cat $CCONFIG Makefile > $TMP

make -f $TMP clean
EXIT_STATUS=$?
