summaryrefslogtreecommitdiffstats
path: root/clean_all.sh
blob: d6966111d6e18d3f634b75e6bce6ac40cfdd9289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[ "$#" -gt "1" ] && echo "Too many args." && exit 1
[ "$#" -lt "1" ] && set -- "$@" "lite"

case "`echo $1 | tr A-Z a-z`" in
  lite|light)
    make clean
    ;;
  gnu)
    make clean
    rm -f compile config.guess config.sub depcomp install-sh ltmain.sh missing
    rm -f config.status config.h config.h.in* config.log configure
    rm -f libtool Makefile.in Makefile stamp-h1
    rm -rf autom4te.cache/ *.m4
    ;;
  *)
    echo "Unknown build type: $1"
    exit 1
    ;;
esac
OpenPOWER on IntegriCloud