[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glr.c: Token definitions
From: |
Joel E. Denny |
Subject: |
Re: glr.c: Token definitions |
Date: |
Mon, 19 Dec 2005 15:46:14 -0500 (EST) |
On Mon, 19 Dec 2005, Akim Demaille wrote:
>
> > Bison itself could then use the spec's filename to help select a skeleton.
> > This scheme would scale nicely to support other output languages (Java,
> > C#, etc) if bison were to include such skeletons one day.
>
> I agree with idea, but it doesn't fit well with Make. AFAIK you
> can't define suffix-stripping rules, just suffix-changing rules.
In this case, the suffix-stripping rule is a suffix changing rule:
all: test.cc
.SUFFIXES: .cc.bison .cc
.cc.bison.cc:
bison -o$@ $<
If you don't like the dots, you could always use "test.cc-bison" or some
variation.
Joel