From: Tobias Oetiker Date: Thu, 1 May 2008 06:56:32 +0000 (+0000) Subject: Make the MakeMakefile script a bit more robust X-Git-Tag: 1.3rc2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6337425798182be0cc35d4e5c7a7056eccd92136;p=thirdparty%2Frrdtool-1.x.git Make the MakeMakefile script a bit more robust git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1333 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/MakeMakefile b/MakeMakefile index 057c6296..aca14ccf 100755 --- a/MakeMakefile +++ b/MakeMakefile @@ -60,12 +60,21 @@ then exit 1 fi -# cleanup -if [ -e Makefile ] -then - make clean >/dev/null -fi +# remove the bits we are going to recreate +echo Removing old Makefiles +touch Makefile +find . -name "Makefile" -or -name "Makefile.in" -print0 | xargs -0 rm +echo Cleaning out other leftovers +for x in configure install-sh intltool-merge.in rrd_config.h.in \ + missing intltool-update po/Makefile.in.in config.sub \ + intltool-extract intltool-extract.in config.guess \ + depcomp intltool-update.in autom4te.cache \ + intltool-merge compile; do + [ ! -L $x -a -d $x ] && rm -r "$x" + [ ! -L $x -a -f $x ] && rm "$x" +done +set -x intltoolize --automake -c -f $aclocal libtoolize --copy --force