4 $(PYTHON) $(MIDI2LY) --quiet -o $(outdir) $<
6 $(outdir)/%.midi: %.ly $(LILYPOND_BINARY)
7 touch $(foreach f, $(HEADER_FIELDS), $(outdir)/$*.$f)
8 $(buildscript-dir)/run-and-check "$(LILYPOND_BINARY) $(HEADER_FIELDS:%=-H %) -o $(outdir) $<" "$*.log"
11 $(outdir)/%-midi.ly: $(outdir)/%.midi $(MIDI2LY)
12 (echo '\header {'; for f in $(HEADER_FIELDS); do printf $$f'="'; cat $(outdir)/$*.$$f; echo '"'; done; echo '}') > $(outdir)/$*.header
13 $(PYTHON) $(MIDI2LY) $(shell cat $(outdir)/$*.options) --quiet --include-header=$(outdir)/$*.header -o $(outdir) $<
15 $(outdir)/%.diff: %.ly $(outdir)/%-midi.ly
16 $(DIFF) -puN $(MIDI2LY_IGNORE_RES) $^ > $@ || cat $@
18 $(outdir)/midi.diff: $(OUT_DIFF_FILES)
19 cat $(OUT_DIFF_FILES) > $@