blob: 7747fb6563d7c4fd245350cb6bdf247e23080fc1 [file] [log] [blame]
Haiyue Wanga1c50752018-04-03 15:16:09 +08001#!/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/ipmi_bmc.h && rm -rf linux/ipmi_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"'