bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

flex -P barfs


From: Andrew Suffield
Subject: flex -P barfs
Date: Wed, 17 Dec 2003 05:50:05 +0000
User-agent: Mutt/1.5.4i

automake utterly fails to comprehend the -P option to flex:

flex  -Pfoo `test -f foo.l || echo './'`foo.l
sed '/^#/ s|lex.yy\.c|foo-foo.c|' lex.yy.c >foo-foo.c
sed: can't read lex.yy.c: No such file or directory
make: *** [foo-foo.c] Error 2

-Pfoo gives you lex.foo.c, not lex.yy.c, so that won't work at
all. Manually stuffing a -olex.yy.c in there works. That's probably a
job for ylwrap.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]