public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: multilib and Makefile regeneration
       [not found] ` <4A9C464D.3020500@gnu.org>
@ 2009-09-18 19:03   ` Ralf Wildenhues
  0 siblings, 0 replies; only message in thread
From: Ralf Wildenhues @ 2009-09-18 19:03 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: gcc, autoconf

<http://thread.gmane.org/gmane.comp.gcc.devel/108469>

* Paolo Bonzini wrote on Mon, Aug 31, 2009 at 11:53:17PM CEST:
> On 08/31/2009 11:11 PM, Ralf Wildenhues wrote:
> >The easiest for now would be (3), the coolest, most difficult and
> >probably most dangerous one would be (2).  Something like
> >   AC_CONFIG_FILES_COMMANDS(some/Makefile, more-user-commands,
> >                            [more-init-cmds])
> >
> >but then the order of issuing this and the respective
> >   AC_CONFIG_FILES(some/Makefile)
> >
> >would be significant.  I don't see any way to avoid this.
> 
> You could specify that AC_CONFIG_FILES comes first, and *_COMMANDS
> occurrences come later in the order that appears in the source (and
> do nothing unless the corresponding AC_CONFIG_FILES exists).

Yes; but this would not solve the issue that, when interrupted, we could
end up with the wrong, intermediate Makefile.  I don't want to add a new
API that has known deficiencies.

Maybe going via an explicit intermediate file is better, a la
  AC_CONFIG_FILES([some/Makefile.ml:some/Makefile.in])
  AM_MULTILIB_FILES([some/Makefile:some/Makefile.ml])

but that requires that config.status is passed files in the right order
and rebuild dependencies in the Makefile are right.  Currently, however,
automake doesn't cope with something like the above at all ...

Cheers,
Ralf

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-18 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20090831211118.GE21485@gmx.de>
     [not found] ` <4A9C464D.3020500@gnu.org>
2009-09-18 19:03   ` multilib and Makefile regeneration Ralf Wildenhues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).