GNU bug report logs - #7374
Automake bug when moving files to different directory

Previous Next

Package: automake;

Reported by: Török Edwin <edwin <at> clamav.net>

Date: Thu, 11 Nov 2010 12:58:02 UTC

Severity: normal

Done: Török Edwin <edwin <at> clamav.net>

Bug is archived. No further changes may be made.

Full log


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

From: Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
To: Török Edwin <edwin <at> clamav.net>
Cc: 7374 <at> debbugs.gnu.org
Subject: Re: bug#7374: Automake bug when moving files to different directory
Date: Thu, 11 Nov 2010 21:38:01 +0100
* Török Edwin wrote on Thu, Nov 11, 2010 at 09:10:56PM CET:
> On Thu, 11 Nov 2010 20:42:05 +0100 Ralf Wildenhues wrote:
> > * Török Edwin wrote on Thu, Nov 11, 2010 at 01:11:44PM CET:
> > > I think that:
> > >  - make clean should remove the dependency files if they're out of
> > >    date/wrong
> > 
> > That is unfortunately not possible, because make will barf if files
> > included from the Makefile are missing.  GNU make has '-include' for
> > this, but there is no equivalent of that for portable make.
> > 
> > This is the reason that config.status produces stub .Po files when
> > they are not present.
> 
> OK, then how about:
>  - make clean deletes .Po/.Plo files, and invokes config.status with
>    proper flags to produce the stub .Po files?
> 
> Having the old .Po files around after a make clean isn't going to help
> speed up the build anyway since all the obj files are gone.

True, but the above sounds quite ugly as well.

Here's a better suggestion: use the subdir-objects automake option (you
can add it to the options passed to AM_INIT_AUTOMAKE) and configure with
--enable-maintainer-mode.  That way the old .Po file will just not be
read any more, and the maintainer mode will trigger the automake rerun
that then causes the rules in Makefile to be successfully updated.

Hope that is good enough for you.

Cheers,
Ralf




This bug report was last modified 14 years and 200 days ago.

Previous Next


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