automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use BUILT_SOURCES ?


From: Timothy Madden
Subject: How to use BUILT_SOURCES ?
Date: Thu, 21 Jun 2012 20:20:05 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120607 Thunderbird/10.0.5

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:

address@hidden 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]