blob: ef3ea854c8fdfabd64f14008cacc1b935d124803 [file] [log] [blame]
Matthew Barth5e60ba52016-09-26 13:40:01 -05001#!/bin/sh
2
3AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
4 config.guess config.h.in config.sub configure depcomp install-sh \
5 ltmain.sh missing *libtool test-driver"
6
7case $1 in
8 clean)
9 test -f Makefile && make maintainer-clean
10 for file in ${AUTOCONF_FILES}; do
Manojkiran Eda2ea71fa2020-10-10 08:23:54 +053011 find . -name "$file" | xargs -0 -r rm -rf
Matthew Barth5e60ba52016-09-26 13:40:01 -050012 done
13 exit 0
14 ;;
15esac
16
17autoreconf -i
Manojkiran Eda2ea71fa2020-10-10 08:23:54 +053018# shellcheck disable=SC2016
Matthew Barth5e60ba52016-09-26 13:40:01 -050019echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'