-$(outdir)/%.cc: %.yy
- $(BISON) $<
- @-mv -f $(*F).yy.tab.c $(*F).tab.cc # bison < 1.30
- mv $(*F).tab.cc $@
-
-$(outdir)/%.hh: %.yy
- $(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
+$(outdir)/%.cc $(outdir)/%.hh: %.yy
+ $(BISON) -d -o $(subst .hh,.cc,$@) $<