: 'Check if make all went allright.'

msg="$1"
hlp="$2"
destroot="$3"

errors="no"

echo " "

for f in abc abckeys
do
	if test ! -s $f
	then
		echo "*** Failed to make $f"
		errors="yes"
	fi
done

case $msg in
abc.mse)
	if test ! -s abc.mse
	then
		echo "*** Failed to make messages file abc.mse"
		errors="yes"
	fi;;
esac

case $hlp in
abc.hlp)
	if test ! -s abc.hlp
	then
		echo "*** Failed to make help file abc.hlp"
		errors="yes"
	fi;;
esac

case $errors in
yes)
	exit 1
	;;
no)
	case $destroot in
	'')	echo "The 'abc' command should now work."
		echo "You can test the ABC interpreter with 'make examples'."
		;;
	*)	echo "That 'make all' went well."
		echo "Say 'make install' to install the ABC system in $destroot."
		;;
	esac
	exit 0
	;;
esac
