This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] automake rules fail to make y.tab.h if y.tab.c exists


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]