2001-12-27 Jan Nieuwenhuizen <janneke@gnu.org>
* stepmake/stepmake/c++-rules.make:
* stepmake/stepmake/c-rules.make: Fixes for bison-1.28.
+2001-12-27 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * stepmake/stepmake/c++-rules.make:
+ * stepmake/stepmake/c-rules.make: Fixes for bison-1.28.
+
2001-12-25 Jan Nieuwenhuizen <janneke@gnu.org>
* make/lilypond-vars.make:
MAJOR_VERSION=1
MINOR_VERSION=5
PATCH_LEVEL=27
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
$(outdir)/%.cc: %.yy
$(BISON) $<
- @-mv -f parser.tab.c parser.tab.cc # bison < 1.30
- mv parser.tab.cc $@
+ @-mv -f $(*F).yy.tab.c $(*F).tab.cc # bison < 1.30
+ mv $(*F).tab.cc $@
$(outdir)/%.hh: %.yy
$(BISON) -d $<
- @-mv -f parser.tab.h parser.tab.hh # bison < 1.30
- mv parser.tab.hh $@
- rm -f parser.tab.c parser.tab.cc # if this happens in the wrong order it triggers recompile of the .cc file
+ @-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: %.ll
$(FLEX) -Cfe -p -p -t $< > $@
$(outdir)/%.c: %.y
$(BISON) $<
- mv parser.tab.c $@
+ mv $(*F).tab.c $@
$(outdir)/%.h: %.y
$(BISON) -d $<
- mv parser.tab.h $@
- mv parser.tab.c $(basename $@).c
+ mv $(*F).tab.h $@
+ rm -f $(*F).tab.c # if this happens in the wrong order it triggers recompile of the .cc file
$(outdir)/%.c: %.l
$(FLEX) -Cfe -p -p -t $< > $@