Haiyue Wang | a1c5075 | 2018-04-03 15:16:09 +0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | AUTOCONF_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 | |
| 7 | case $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 | ;; |
| 17 | esac |
| 18 | |
| 19 | autoreconf -i |
| 20 | echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' |