Re: C++, lex and automake

2009-01-14 Thread Ralf Corsepius
Andre Heine wrote: Hi Am Dienstag, 13. Januar 2009 18:27 schrieb Юрий Пухальский: I'm sure that it will work, but to me it looks as hacky as the %option approach. Shouldn't automake hide these nasty details from me? IMHO, automake should recognize the suffix, i.e. "*.lpp" for flex c++ and

Re: C++, lex and automake

2009-01-14 Thread Юрий Пухальский
Andre, i think it can be done, as from what i've picked ylwrap operates in temporary directory anyway, so that should be no problem picking whatever lex has dropped, be it .c or .cc. As for recognizing the suffix - it might be troublesome for a file with .l extension having option c++ inside. The r

Re: C++, lex and automake

2009-01-14 Thread Andre Heine
Hi Am Dienstag, 13. Januar 2009 18:27 schrieb Юрий Пухальский: > I'm sure that it will work, but to me it looks as hacky as the %option > approach. Shouldn't automake hide these nasty details from me? IMHO, automake should recognize the suffix, i.e. "*.lpp" for flex c++ and "*.l" for cc versio