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