X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=MakeMakefile;h=aca14ccfbbbdb9c1e3c99eda2fb73c4c6e4cd0c1;hp=057c6296a8a9490ab044400cac32bd5cd954800b;hb=a9f9c7a945caf1df7b8291755a5586313c018e41;hpb=1b2b47d5fd5474e35ae15678f6eefe6f4ee45795 diff --git a/MakeMakefile b/MakeMakefile index 057c629..aca14cc 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