GNU bug report logs - #75655
configure doesn't update Makefile

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> protonmail.com>

Date: Sat, 18 Jan 2025 19:37:02 UTC

Severity: minor

Full log


Message #14 received at 75655 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pip Cet <pipcet <at> protonmail.com>
Cc: 75655 <at> debbugs.gnu.org
Subject: Re: bug#75655: configure doesn't update Makefile
Date: Sun, 19 Jan 2025 07:19:53 +0200
> Date: Sat, 18 Jan 2025 20:40:36 +0000
> From: Pip Cet <pipcet <at> protonmail.com>
> Cc: 75655 <at> debbugs.gnu.org
> 
> "Eli Zaretskii" <eliz <at> gnu.org> writes:
> 
> >> Date: Sat, 18 Jan 2025 19:35:54 +0000
> >> From:  Pip Cet via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >>
> >> I'm confused by this recipe in Makefile.in:
> >>
> >> config.status: ${srcdir}/configure
> >> 	if [ -x ./config.status ]; then		\
> >> 	    $(CFG) ./config.status --recheck;	\
> >> 	else					\
> >> 	    $(CFG) $(srcdir)/configure $(CONFIGURE_FLAGS); \
> >> 	fi
> >>
> >> If config.status exists, it is rerun, and regenerates the Makefile; but
> >> if it doesn't, configure is run but config.status isn't.
> >
> > config.status is run, after creating it, by the 'Makefile' rule:
> >
> >   configure: creating ./config.status
> >   configure: WARNING: This configuration installs a 'movemail' program
> >   that retrieves POP3 email via only insecure channels.
> >   To omit insecure POP3, you can use './configure --without-pop'.
> >   MAKE='make' ./config.status
> >   config.status: creating src/verbose.mk
> >   config.status: creating nt/emacs.rc
> >   config.status: creating nt/emacsclient.rc
> 
> As far as I can tell, the 'Makefile' rule calls a recursive make with
> the 'config.status' target (but it also lists config.status as a
> dependency); 'config.status' is a file target, not a phony target, so
> if config.status is more recent than configure (which is usually the
> case), nothing happens.
> 
> If config.status has been deleted, we run configure but not
> config.status.  This means the Makefile won't be modified.

How come config.status is deleted in the first place?




This bug report was last modified 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.