]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/c-rules.make
Imported Upstream version 2.18.0
[lilypond.git] / stepmake / stepmake / c-rules.make
index 620275baa177e67313535571393c21d85e90e205..954e7a33a0c306bea99fc77c041e2bd994895bb2 100644 (file)
@@ -12,14 +12,8 @@ $(outdir)/%.lo: %.c
 $(outdir)/%.lo: %.c
        $(DO_LO_DEP) $(CC) -c $(ALL_CFLAGS) $(PIC_FLAGS) -o $@ $<
 
-$(outdir)/%.c: %.y
-       $(BISON) $<
-       mv $(*F).tab.c $@
-
-$(outdir)/%.h: %.y
-       $(BISON) -d $<
-       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 $(outdir)/%.h: %.y
+       $(BISON) -d -o $(outdir)/$*.c $<
 
 $(outdir)/%.c: %.l
        $(FLEX) -Cfe -p -p -o$@ $<