#! /bin/sh

include(/usr/`include'/carl/config.m4)dnl

if test -r Makefile.m4
then
	if test ! -r Makefile
	then
		touch Makefile
	fi
	rm -f Makefile
	m4 Makefile.m4 > Makefile
	chmod a-w Makefile
else
	echo "installing Makefile template..."
	cp m4LIBDIR/Makefile-template Makefile.m4
	echo "now edit \"Makefile.m4\" and change \"prog\" to the name of the program being made,"
	echo "then run mm again"
	exit 0
fi

exit 0
