This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: LEX & YACC support
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Alexandros Karypidis <karypid at inf dot uth dot gr>
- Cc: automake at gnu dot org
- Date: Thu, 14 Nov 2002 13:47:23 +0100
- Subject: Re: LEX & YACC support
- References: <200211091339.17614.karypid@inf.uth.gr>
>>> "Alexandros" == Alexandros Karypidis <karypid@inf.uth.gr> writes:
Alexandros> Hi all,
Alexandros> I am unsatisfied with the "Makefile.am" I have
Alexandros> built, due to the fact that whenever I change my
Alexandros> bison file to add a %token, I have to run make
Alexandros> TWICE to get a correct build. This is because the
Alexandros> header file with token declarations which is
Alexandros> generated when yacc is run, also affects the
Alexandros> lexical scanner -- therfore it needs to be rebuilt
Alexandros> as well. However, this is only detected after the
Alexandros> fist "make" command.
Generated headers are almost always an issue for dependency
tracking.
Try adding the following and see if that helps.
BUILT_SOURCES = parser.h
[...]
--
Alexandre Duret-Lutz