]> git.eshelyaron.com Git - emacs.git/commitdiff
* Makefile.in (config.status): Don't erase in case of error.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 Apr 2011 17:23:30 +0000 (14:23 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 Apr 2011 17:23:30 +0000 (14:23 -0300)
In case it disappeared, rebuild it with `configure'.

ChangeLog
Makefile.in

index 6a3b1701726b8639f27e20d60ad278555dd8919a..7fcdef4272b24edde59f4dbe4f42e51f3dc50330 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * Makefile.in (config.status): Don't erase in case of error.
+       In case it disappeared, rebuild it with `configure'.
+
 2011-04-20  Ken Brown  <kbrown@cornell.edu>
 
        * configure.in (use_mmap_for_buffers): Set to yes on Cygwin.
index 1ac77ed66aceb3b4b1df8c49f00add9683dd6cd6..d828649e7aa6329e0e310904da002d43b0ba44db 100644 (file)
@@ -402,8 +402,15 @@ Makefile: config.status $(srcdir)/src/config.in \
           $(srcdir)/test/automated/Makefile.in
        ./config.status
 
+# Don't erase config.status if make is interrupted while refreshing it.
+.PRECIOUS: config.status
+
 config.status: ${srcdir}/configure ${srcdir}/lisp/version.el
-       ./config.status --recheck
+       if [ -x ./config.status ]; then \
+           ./config.status --recheck;  \
+       else                            \
+           ./configure;                \
+       fi
 
 AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/aclocal.m4