[Top][All Lists]

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

Re: [PATCH] automake rules fail to make if exists

From: Bernd Jendrissek
Subject: Re: [PATCH] automake rules fail to make if exists
Date: Wed, 5 Jun 2002 20:21:21 +0200

On Wed, Jun 05, 2002 at 06:41:50PM +0200, Alexandre Duret-Lutz wrote:
> [Reviving an unanswered email from mid April]
> >>> "Bernd" == Bernd Jendrissek <address@hidden> writes:
>  Bernd> Stock automake spots the use of "AM_YFLAGS = -d" in
>  Bernd>, and emits a rule that (placeholder
>  Bernd> name) depends on; this is not formally correct.
>  Bernd> When is missing but is present (or
>  Bernd> is touched for some reason), make thinks it can
>  Bernd> rebuild from - a false assumption since
>  Bernd> there is no rule.
> I have a pending patch for this at
> Basically, it just replaces the `' dependency by
>         if test ! -f $@; then \
>           rm -f; \
>           $(MAKE); \
>         fi
> (Automake does something similar in the handling of config.h
> already.)
> What do you think?  Would this be enough for you?

I seem to be happy with this.  It's a much simpler patch, for one.  While
the rule does "accidentally" rebuild also, I think that's just fine.

The abovementioned patch (msg 000823) does FAIL against my patches to the
yacc tests, but only because I'm paranoid and flunk automake if is
made by "make"

I'll play around with this patch against my (real) flex/bison parser and
shout loudly in the list if I have problems.  But consider me happy.


reply via email to

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