blob: 0beaf29bef635de44d74dfa388cb0c5f2fbf3a65 [file] [log] [blame]
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +05301#!/bin/sh
2
3AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile config.* \
Patrick Williams9d407bf2021-04-13 15:02:02 -05004 configure depcomp install-sh ltmain.sh missing *libtool test-driver"
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +05305
6case $1 in
7 clean)
8 test -f Makefile && make maintainer-clean
Patrick Williams9d407bf2021-04-13 15:02:02 -05009 for file in ${AUTOCONF_FILES}; do
10 find . -name "$file" -print0 | xargs -0 -r rm -rf
11 done
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +053012 exit 0
13 ;;
14esac
15
16autoreconf -i
Patrick Williams9d407bf2021-04-13 15:02:02 -050017# shellcheck disable=SC2016
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +053018echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'