automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rewrite of m4/depout.m4


From: Stepan Kasal
Subject: Re: rewrite of m4/depout.m4
Date: Thu, 26 Apr 2007 17:42:58 +0200
User-agent: Mutt/1.4.2.1i

Hello,

On Tue, Apr 17, 2007 at 07:02:13PM +0200, Ralf Wildenhues wrote:
> The motivation to do this was to work towards allowing non-static
> content in *_SOURCES variables, so that it works even with
> subdir-objects.  IOW, one stepping stone to eventually allow
>   bin_PROGRAMS = foo
>   mydir = foo/bar
>   foo_SOURCES = $(mydir)/a1.c
> 
> The patch is missing documentation stating that, for a makefile named
> $Makefile, a temporary file named t$Makefile will be created and removed
> during the `depfiles' stage.
> 
> No, I don't really want this applied.
> 
> I think the killer argument against this change is the point that a
> buggy Makefile has worse consequences, starting from spurious errors
> at config.status time, and not ending in an infinite configure recheck
> loop.

well, this is a pity: running make from config.status would be cool.  :-(

But we could apply a more minimalistic approach: we might try to grep
only the variables which are needed to evaluate the directory names
and then run make with that specially crafted makefile.
We are using awk already, so we can use it for this task, too.

But since we have got _that_ far, we might also use awk to perform
the recursive evaluation of the directory name, and output the list
of the directories to be created.

What do you think?

Have a nice day,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]