Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 1 | #!/bin/sh -xe |
| 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 | for file in ${AUTOCONF_FILES}; do |
Patrick Williams | b41b1e4 | 2021-04-13 14:41:37 -0500 | [diff] [blame] | 11 | find . -name "$file" -print0 | xargs -0 -r rm -rf |
Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 12 | done |
| 13 | exit 0 |
| 14 | ;; |
| 15 | esac |
| 16 | |
| 17 | autoreconf -i |
Patrick Williams | b41b1e4 | 2021-04-13 14:41:37 -0500 | [diff] [blame] | 18 | # shellcheck disable=SC2016 |
Deepak Kodihalli | 5de0957 | 2017-05-16 23:53:40 -0500 | [diff] [blame] | 19 | echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' |