: Check whether makefile is properly edited

case $1 in
abc.msg)
	echo "First redefine MESSAGES=abc.mse in the Makefile." >&2
	echo "Otherwise 'make all' would still use the distributed abc.msg." >&2
	exit 1;;
abc.mse)
	echo "Collecting error messages from source files to abc.mse." >&2
	echo "After completion use 'make all' to incorporate them into abc." >&2
	exit 0;;
*)
	if test -s "$1"
	then
		echo "Use 'make all' to incorporate your own messages file $1 into abc." >&2
	else
		echo "I see no messages file '$1' here." >&2
		echo "You must create it yourself." >&2
	fi
	echo " " >&2
	echo "Or redefine MESSAGES=abc.mse in the makefile" >&2
	echo "if you want a new messages file from the source." >&2
	exit 1;;
esac
