TOPDIR := $(shell cd ../../..; pwd)
# ----------------------------------------------------------------------------
all:
	touch install-sh missing
	if [ ! -e Makefile ]; then \
	  TOPDIR=${TOPDIR} ./configure --prefix=${TOPDIR}/uC-src ${MMHOST}; \
	fi
	${MAKE} ${MFLAGS}
# ----------------------------------------------------------------------------
install:
	${MAKE} ${MFLAGS} install
# ----------------------------------------------------------------------------
clean:
	if [ -e Makefile ]; then ${MAKE} distclean; fi
	rm -f AUTHORS COPYING INSTALL ChangeLog NEWS README
	rm -rf autom4te.cache .deps
	rm -f aclocal.m4 install-sh missing
	rm -f config.log config.status
#	rm -f Makefile.in configure
# ----------------------------------------------------------------------------
reconf:
# This should work, but not in this case.
#	autoreconf -f -v
# -------------
# Do it this way instead
	aclocal				|| true
	autoconf -f			|| true
# We don't have these files, make automake happy.
	touch NEWS README AUTHORS ChangeLog
	automake -c -v --add-missing	|| true
# ----------------------------------------------------------------------------
