]> 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 a368f4f6669b6e2d223604bce7507c824c4e8f79..8de00bce07a8c80c06d4362b47a101f60d7db6e8 100644 (file)
@@ -12,13 +12,8 @@ $(outdir)/%.lo: %.cc
 $(outdir)/%.lo: $(outdir)/%.cc
        $(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
 
-$(outdir)/%.cc: %.yy
-       $(BISON) -o $@  $<
-
-$(outdir)/%.hh: %.yy
-       $(BISON) -o $(subst .hh,-tmp.cc,$@) -d  $<
-       rm $(subst .hh,-tmp.cc,$@)
-       mv $(subst .hh,-tmp.hh,$@) $@
+$(outdir)/%.cc $(outdir)/%.hh: %.yy
+       $(BISON) -d -o $(outdir)/$*.cc $<
 
 $(outdir)/%.cc: %.ll
        $(FLEX) -Cfe -p -p -o$@ $<