
# $Id: make,v 1.4 1994/11/02 10:44:39 surkau Exp $

# $Log: make,v $
 
: Run this script through /bin/sh

if [ "$MAKE" = "" ]
then
	MAKE=`cat ../../config/MAKE.save`
	cmd=`echo $MAKE | (read w1 w2;echo $w1)`
	if [ ! -x $cmd ]
	then
		echo "Can't find your system's make utility !!"
		echo "Set it's pathname in environment variable MAKE."
		exit 1
	fi
fi

if [ ${1-"def"} = "clean" ]
then
	rm -f *.bak *% arithtest trace.* create_trace.o create_trace
	exit 0

elif [ ${1-"def"} = "-DARITHMETIC_TEST" ]
then
	cp arithtest.std.sh arithtest
	chmod u+x arithtest


elif [ ${1-"def"} = "-DARITHMETIC_TEST -DARITHMETIC_TEST_NOT_STD" ]
then
	cp arithtest.sh arithtest
	chmod u+x arithtest

else
	exit 0
fi

exec $MAKE MODULE=arithtest -f ../../config/CONFIG.make -f arithtest.make -f  ../../config/Makefile 
