#! /bin/sh

(cd lib/Xlt && make maintainer-clean 2>/dev/null || autoheader && automake -i && autoconf) && \
(cd test && make maintainer-clean 2>/dev/null || autoheader && automake -i && autoconf) && \
(cd . && make maintainer-clean 2>/dev/null || autoheader && automake -i && autoconf) && \
rm -rf BUILD ; \
mkdir -p BUILD && \
(cd BUILD && ../configure --prefix=/tmp/lesstif-build --disable-maintainer-mode) && \
(cd BUILD && make) && \
(cd BUILD/lib/Xlt && make) && \
(cd BUILD/test && make)
