[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generated lex/yacc sources?
From: |
Jan Engelhardt |
Subject: |
Re: generated lex/yacc sources? |
Date: |
Tue, 21 Sep 2021 19:35:26 +0200 (CEST) |
User-agent: |
Alpine 2.25 (LSU 592 2021-09-18) |
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?