blob: bb06e73266c81ddc25e144f0c6a0079adc83c0f0 [file] [log] [blame]
Matthew Barth68bcce02016-10-17 15:02:05 -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 test -f linux/bt-bmc.h && rm -rf linux/bt-bmc.h
11 test -d linux && find linux -type d -empty | xargs -r rm -rf
12 for file in ${AUTOCONF_FILES}; do
13 find -name "$file" | xargs -r rm -rf
14 done
15 exit 0
16 ;;
17esac
18
19autoreconf -i
20echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'