[Top][All Lists]

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

Re: How to use BUILT_SOURCES ?

From: NightStrike
Subject: Re: How to use BUILT_SOURCES ?
Date: Thu, 19 Jul 2012 01:55:20 -1000

On Thu, Jun 21, 2012 at 7:20 AM, Timothy Madden <address@hidden> wrote:
> Hello
> I have automake 1.11.1 (on CentOS 6.2 x86_64), and a like this:
> 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\
> 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
> 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:

reply via email to

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