blob: d5b6ea444bdf2ed545387118c48fb02d2ebdeb23 [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
Patrick Williamse7c68402021-04-13 14:41:37 -050016 find . -name "$file" -print0 | xargs -0 -r rm -rf
Andrew Jeffery2c07f6f2018-08-10 16:24:32 +093017 done
18 exit 0
19 ;;
20esac
21
Patrick Venturec000f2d2018-10-29 19:05:44 -070022autoreconf -vfi
Patrick Williamse7c68402021-04-13 14:41:37 -050023# shellcheck disable=SC2016
Andrew Jeffery2c07f6f2018-08-10 16:24:32 +093024echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'