blob: 52ec8f1c6cb360a66a8b0925aef5e9c291740999 [file] [log] [blame]
Matthew Barthae0e96c2017-01-20 13:54:59 -06001#!/bin/sh
2
3AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
4 config.guess config.h.in config.h.in~ config.sub configure depcomp \
Matthew Barth8f1ce5a2020-08-04 12:23:14 -05005 install-sh ltmain.sh missing *libtool test-driver"
Matthew Barthae0e96c2017-01-20 13:54:59 -06006
7case $1 in
8 clean)
9 test -f Makefile && make maintainer-clean
10 for file in ${AUTOCONF_FILES}; do
Matthew Barthe81309d2020-08-05 13:15:15 -050011 find . -name "$file" -exec rm -rf {} +
Matthew Barthae0e96c2017-01-20 13:54:59 -060012 done
13 exit 0
14 ;;
15esac
16
17autoreconf -if
Matthew Barthe81309d2020-08-05 13:15:15 -050018echo "Run \"./configure \${CONFIGURE_FLAGS} && make\""