blob: 1bca169734eea490ad9cd3eb172d8af945e20856 [file] [log] [blame]
Patrick Venturec000f2d2018-10-29 19:05:44 -07001#!/bin/sh
Andrew Jeffery2c07f6f2018-08-10 16:24:32 +09302# SPDX-License-Identifier: Apache-2.0
3# Copyright (C) 2018 IBM Corp.
4
Patrick Venturec000f2d2018-10-29 19:05:44 -07005set -e
6set -x
Andrew Jeffery2c07f6f2018-08-10 16:24:32 +09307
8AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
9 config.guess config.h.in config.sub configure depcomp install-sh \
10 ltmain.sh missing *libtool test-driver"
11
12case $1 in
13 clean)
14 test -f Makefile && make maintainer-clean
15 for file in ${AUTOCONF_FILES}; do
16 find -name "$file" | xargs -r rm -rf
17 done
18 exit 0
19 ;;
20esac
21
Patrick Venturec000f2d2018-10-29 19:05:44 -070022autoreconf -vfi
Andrew Jeffery2c07f6f2018-08-10 16:24:32 +093023echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'