[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: Alexandre Duret-Lutz
Subject: Re: [PATCH] automake rules fail to make if exists
Date: Wed, 05 Jun 2002 18:41:50 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

[Reviving an unanswered email from mid April]

>>> "Bernd" == Bernd Jendrissek <address@hidden> writes:


 Bernd> Whether it's considered a feature, bug, or limitation, I
 Bernd> don't know, but having yacc-generated headers in a
 Bernd> project is a little fragile.

 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); \

(Automake does something similar in the handling of config.h

What do you think?  Would this be enough for you?


Alexandre Duret-Lutz

reply via email to

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