GNU bug report logs - #8844
Flex header files

Previous Next

Package: automake;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Mon, 13 Jun 2011 07:33:01 UTC

Severity: wishlist

Merged with 9933

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: bug-automake <at> gnu.org
Cc: Pippijn van Steenhoven <pip88nl <at> gmail.com>
Subject: Re: flex header file
Date: Mon, 13 Jun 2011 09:32:19 +0200
[adding bug-automake, so that we won't forgot about this report]

On Monday 13 June 2011, Pippijn van Steenhoven wrote:
> Hi,
> 
> in some of my projects, I use (reentrant) flex with the header-file
> option. This causes flex to generate a .h file in addition to the usual
> lex.yy.c file. However, ylwrap doesn't know about this. What would be the
> correct way to use flex with header files?
>
I see two ways out, not mutually exclusive:

 1. Introduce a new automake option `no-ylwrap', instructing automake not
    to use ylwrap to process Yacc and Lex files; this should assume that
    bison and flex can be used, so that we know no problem with concurrent
    make will arise (we can use the `--output' option for both tools).
    Then you can manually add some rules about the header on your
    Makefile.am, without ylwrap getting in your way.

 2. Improve ylwrap and automake Lex support to recognize the `--header'
    Lex option, similarly to what is done for the `-d' Yacc option, and
    emit code handling the header creation, dependencies, etc.

Regards,
  Stefano




This bug report was last modified 12 years and 271 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.