| 1 | #!/bin/sh -e |
| 2 | |
| 3 | echo -n cleaning up . |
| 4 | |
| 5 | # Clean up the generated crud |
| 6 | ( |
| 7 | for FILE in compile config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs; do |
| 8 | if test -f $FILE; then |
| 9 | rm -f $FILE |
| 10 | fi |
| 11 | echo -n . |
| 12 | done |
| 13 | ) |
| 14 | |
| 15 | for FILE in aclocal.m4 configure config.h.in; do |
| 16 | if test -f $FILE; then |
| 17 | rm -f $FILE |
| 18 | fi |
| 19 | echo -n . |
| 20 | done |
| 21 | |
| 22 | for DIR in autom4te.cache; do |
| 23 | if test -d $DIR; then |
| 24 | rm -rf $DIR |
| 25 | fi |
| 26 | echo -n . |
| 27 | done |
| 28 | |
| 29 | find . -type f -name 'Makefile.in' -print0 | xargs -r0 rm -f -- |
| 30 | find . -type f -name 'Makefile' -print0 | xargs -r0 rm -f -- |
| 31 | |
| 32 | echo ' done' |
| 33 | |
| 34 | if test x"${1}" = x"clean"; then |
| 35 | exit |
| 36 | fi |
| 37 | |
| 38 | aclocal |
| 39 | libtoolize --force --copy |
| 40 | autoheader |
| 41 | automake --add-missing --copy --gnu # -Wall |
| 42 | autoconf # -Wall |