On Tuesday 2021-09-21 19:02, Karl Berry wrote:

>Suppose I want to generate a lex or yacc input file from another file,
>e.g., a CWEB literate program. Is there a way to tell Automake about
>this so that the ultimately-generated parser/lexer [.ch] files are saved
>in srcdir, as happens when [.ly] are direct sources, listed in *_SOURCES?
>
>I should know the answer to this, but sadly, I don't. I couldn't find
>any hints in the manual or sources or online, although that probably
>only indicates insufficient searching.

Will

BUILT_SOURCES = foo.y
foo.y: foo.cweb
        somecommands

do the trick for you?

Reply via email to