From 885cbe9e1c3efc802c58a8d4cce84a9f4dd27899 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 23 Sep 2018 22:33:00 +0200 Subject: improved auto(re)conf handling Signed-off-by: Toni Uhlig --- autogen.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'autogen.sh') 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 -- cgit v1.2.3