From bfab7d852d64bcfe68073e03e787eb2200391d9d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 20 Apr 2011 14:23:30 -0300 Subject: [PATCH] * Makefile.in (config.status): Don't erase in case of error. In case it disappeared, rebuild it with `configure'. --- ChangeLog | 5 +++++ Makefile.in | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6a3b1701726..7fcdef4272b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-20 Stefan Monnier + + * Makefile.in (config.status): Don't erase in case of error. + In case it disappeared, rebuild it with `configure'. + 2011-04-20 Ken Brown * configure.in (use_mmap_for_buffers): Set to yes on Cygwin. diff --git a/Makefile.in b/Makefile.in index 1ac77ed66ac..d828649e7aa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 -- 2.39.2