Branch: Tag:

2002-05-04

2002-05-04 14:16:50 by Martin Stjernholm <mast@lysator.liu.se>

Make $(YACC) put the absolute path to language.yacc in the generated
#line directives. This will work badly in source dists. Otoh, using no
path will only work if language.yacc is in cwd, which is even worse.

Rev: src/Makefile.in:1.308

1:   # - # $Id: Makefile.in,v 1.307 2002/05/01 18:45:30 mast Exp $ + # $Id: Makefile.in,v 1.308 2002/05/04 14:16:50 mast Exp $   #      # This line is needed on some machines.
745:   $(SRCDIR)/language.h_src: $(SRCDIR)/language.yacc    @echo "Expect 1 shift/reduce conflict."    ( cd $(SRCDIR) &&\ -  $(YACC) $(YFLAGS) language.yacc &&\ +  $(YACC) $(YFLAGS) $(SRCDIR)/language.yacc &&\    sed -e 's/YY_COUNT_TYPE/@YY_COUNT_TYPE@/' <y.tab.c >language.c &&\    mv y.tab.h language.h_src && rm y.tab.c)