- $(BISON) -d $<
- @-mv -f $(*F).yy.tab.h $(*F).tab.hh # bison < 1.30
- mv $(*F).tab.hh $@
- rm -f $(*F).tab.c $(*F).tab.cc # if this happens in the wrong order it triggers recompile of the .cc file
+ $(BISON) -o$(outdir)/$(*F).cc -d $<
+ -mv -f $(*F).yy.tab.h $@ # bison < 1.30 ???
+ -mv -f $(outdir)/$(*F).cc.h $@ # bison < 1.30
+ -mv $(*F).tab.hh $@
+ rm -f $(*F).tab.c $(*F).tab.cc # bison < 1.30
+ rm -f $(outdir)/$(*F).cc # avoid recompiling the .cc file