Re: Fwd: Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Kip Warner
On Wed, 2017-07-12 at 11:55 -0400, Diab Jerius wrote: > Take a look at section 18.2 of the automake manual "Handling new file > extensions" > > Essentially you want to tell automake to tell make that you have a > rule to create a .cpp file from a .lpp file. Intuitively this seems to make sense.

Re: Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Kip Warner
On Wed, 2017-07-12 at 10:59 -0400, Will Estes wrote: > You might also have a look at the flex test suite to see various ways > in which automake is abused to build odd things for flex itself. > There's a lot of edge cases there and you might get ideas. Great idea. Thanks Will. -- Kip Warner |

Re: Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Kip Warner
On Wed, 2017-07-12 at 10:23 -0400, Nick Bowler wrote: > Hello, Hey Nick. > There aren't really any "elegant" solutions.  Make handles this kind > of tool quite badly.  It is possible to get things to work but it is > always a tradeoff between flexibility of your build system and > simplicity of

Fwd: Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Diab Jerius
-- Forwarded message -- From: Diab Jerius <djer...@cfa.harvard.edu> Date: Wed, Jul 12, 2017 at 10:44 AM Subject: Re: Integrating flexc++(1) and bisonc++(1) into Makefile.am To: Kip Warner <k...@thevertigo.com> On Wed, Jul 12, 2017 at 12:13 AM, Kip Warner <k...

Re: Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Will Estes
You might also have a look at the flex test suite to see various ways in which automake is abused to build odd things for flex itself. There's a lot of edge cases there and you might get ideas. On Wednesday, 12 July 2017, 10:23 am -0400, Nick Bowler wrote: > Hello, > >

Re: Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Nick Bowler
Hello, On 7/12/17, Kip Warner wrote: > My challenge is replicating their functionality for flexc++(1) and > bisonc++(1) in the absense of macros to make their usage easier in > Automake [...] > In trying to integrate the two tools into my build environment, I've > attempted

Integrating flexc++(1) and bisonc++(1) into Makefile.am

2017-07-12 Thread Kip Warner
Hey list, I'm aware autoconf has M4 macros for traditional GNU flex(1) and bison(1) implementations of POSIX lex(1) and yacc(1) respectively. I'm also aware the manual contains information for integrating the two into a typical autotool'd build environment. My challenge is replicating their