Hello
I have automake 1.11.1 (on CentOS 6.2 x86_64), and a Makefile.am like this:
AM_YFLAGS=-d
BUILT_SOURCES=position.hh location.hh code-formatter-parser.hh stack.hh
bin_PROGRAMS=code-formatter
code_formatter_SOURCES=code-formatter-parser.yy code-formatter-lexer.ll\
code-formatter.cc
I can use autoreconf, automake and ./configure sucessfully, but when
trying to make I get:
[adrian@adrian code-formatter]$ make
make: *** No rule to make target `position.hh', needed by `all'. Stop.
The file in question is meant to be generated by yacc from
code-formatter-parser.cc. I thought automake should know that files
listed in BUILT_SOURCES are meant to be generated, so it should not
expect to find them there already before the build. Is there something I
need to do to fix this ?
Thank you,
Timothy Madden