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: LEX & YACC support


>>> "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




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