On Thu, Jun 21, 2012 at 7:20 AM, Timothy Madden <terminato...@gmail.com> wrote: > 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 > >
Things in built_sources are simply made to be prereqs of the all: target. You still have to make rules for them. If you want yacc support from automake, try reading this: http://www.gnu.org/software/automake/manual/html_node/Yacc-and-Lex.html