]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/c++-rules.make
Keep bison-generated files in sync.
[lilypond.git] / stepmake / stepmake / c++-rules.make
index 061f6305d8fd92d6a69bf029a94f1db67be10d31..8de00bce07a8c80c06d4362b47a101f60d7db6e8 100644 (file)
@@ -12,20 +12,11 @@ $(outdir)/%.lo: %.cc
 $(outdir)/%.lo: $(outdir)/%.cc
        $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
 
-$(outdir)/%.cc: %.yy
-       $(BISON) -o $@ $<
-       -mv -f $(*F).yy.tab.c $@ # bison < 1.30
-
-$(outdir)/%.hh: %.yy
-       $(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 
+$(outdir)/%.cc $(outdir)/%.hh: %.yy
+       $(BISON) -d -o $(outdir)/$*.cc $<
 
 $(outdir)/%.cc: %.ll
-       $(FLEX) -Cfe -p -p -o$@ $< 
+       $(FLEX) -Cfe -p -p -o$@ $<
 
 $(outdir)/%-rc.o: $(outdir)/%.rc
        $(WINDRES) $(WINDRES_FLAGS) -o$@ $<