xref: /openbmc/btbridge/bootstrap.sh (revision 68bcce03)
1#!/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"'
21