aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index f2b5774..385d17e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,10 +1,13 @@
#!/bin/bash
-test -f ./Makefile && make distclean
+set -x
+set -e
-aclocal
-autoheader
-automake --force-missing --add-missing
-autoconf
+if ! autoreconf -i; then
+ aclocal
+ autoheader
+ automake --force-missing --add-missing
+ autoconf
+fi
-./configure $@ && make -j${BUILDJOBS:-4} all
+./configure $@ && make clean && make -j${BUILDJOBS:-4} all