Andrew Jeffery | 2c07f6f | 2018-08-10 16:24:32 +0930 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # Copyright (C) 2018 IBM Corp. |
| 3 | |
| 4 | #!/bin/sh |
| 5 | |
| 6 | AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \ |
| 7 | config.guess config.h.in config.sub configure depcomp install-sh \ |
| 8 | ltmain.sh missing *libtool test-driver" |
| 9 | |
| 10 | case $1 in |
| 11 | clean) |
| 12 | test -f Makefile && make maintainer-clean |
| 13 | for file in ${AUTOCONF_FILES}; do |
| 14 | find -name "$file" | xargs -r rm -rf |
| 15 | done |
| 16 | exit 0 |
| 17 | ;; |
| 18 | esac |
| 19 | |
| 20 | autoreconf -i |
| 21 | echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' |