blob: ee24b530cbd312a87239d8b60ff795053df05f36 [file] [log] [blame]
Andrew Jeffery2c07f6f2018-08-10 16:24:32 +09301# SPDX-License-Identifier: Apache-2.0
2# Copyright (C) 2018 IBM Corp.
3
4#!/bin/sh
5
6AUTOCONF_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
10case $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 ;;
18esac
19
20autoreconf -i
21echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'