configure: don't be so eager to overwrite an existing Makefile
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 8 Jul 2015 20:50:35 +0000 (13:50 -0700)
committerJeremy Fitzhardinge <jeremy@goop.org>
Wed, 8 Jul 2015 20:50:35 +0000 (13:50 -0700)
configure

index 6bafd73586ce1069720df35fb4fc6fa89260de9b..6807679e1f0d89c21d811eec2443b6d5527fe58b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1718,7 +1718,7 @@ echo "CC=$cc" >> $config_host_mak
 echo "BUILD_CFLAGS=$BUILD_CFLAGS $CFLAGS" >> $config_host_mak
 echo "INSTALL_PREFIX=$prefix" >> $config_host_mak
 
-if [ `dirname $0` != "." ]; then
+if [ `dirname $0` != "." -a ! -e Makefile ]; then
     cat > Makefile <<EOF
 SRCDIR:=`dirname $0`
 include \$(SRCDIR)/Makefile