On Mon, Jan 21, 2002 at 04:42:10PM +1100, Jamie Wilkinson wrote:
> >Do you have a different man page to me?
> 
> Possibly, mine says:
>     If the parser output file is named name.c then this
>     file is named name.h.
> which suggests to me it isn't coping with the .yxx extension.

Which is certainly the case.  (my "couldn't reproduce" assertion was based
on a "-o output" command line)  The behaviour is not really well defined in
the man page for non-.c output files, and the code basically assumes a .c
extension in the parameter.  The -b flag is maybe better suited for you.

> Perhaps make a rule like this:
> 
> rscyacc.yxx rscyacc.yxx.h: rscyacc.y
>     bison -d -o rscyacc.yxx $<
>     mv yy.tab.h rscyacc.yxx.h

It would probably be better to change the bison line to:

rscyacc.tab.c rscyacc.tab.h: rscyacc.y
        bison -d $<

and change references to the rscyacc.yxx files to rscyacc.tab.[ch] to make
sure that the (imho currently undefined) behaviour is not going to change
with future versions.

hth,
Pete
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to