This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: [PATCH] automake rules fail to make y.tab.h if y.tab.c exists
- From: Bernd Jendrissek <berndj at prism dot co dot za>
- To: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- Cc: automake at gnu dot org
- Date: Thu, 6 Jun 2002 16:12:19 +0200
- Subject: Re: [PATCH] automake rules fail to make y.tab.h if y.tab.c exists
- References: <20020415160117.A15316@prism.co.za> <2002-06-05-18-41-55+27509+duret_g@epita.fr> <20020605202121.P2270@prism.co.za>
On Wed, Jun 05, 2002 at 08:21:21PM +0200, Bernd Jendrissek wrote:
> On Wed, Jun 05, 2002 at 06:41:50PM +0200, Alexandre Duret-Lutz wrote:
[snip]
> > I have a pending patch for this at
> > http://mail.gnu.org/pipermail/automake-patches/2002-May/000823.html
> >
> > Basically, it just replaces the `y.tab.h: y.tab.c' dependency by
> >
> > y.tab.h: y.tab.c
> > if test ! -f $@; then \
> > rm -f y.tab.c; \
> > $(MAKE) y.tab.c; \
> > fi
[snip]
> 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.
Yep, seems to work. (I have an unstable tree ATM that doesn't link, but
it's unrelated to any automake/yacc issues.)
bernd