4 $(PYTHON) $(MIDI2LY) -o $(outdir) $<
6 $(outdir)/%.midi: %.ly $(LILYPOND_BINARY)
7 touch $(foreach f, $(HEADER_FIELDS), $(outdir)/$*.$f)
8 $(LILYPOND_BINARY) $(HEADER_FIELDS:%=-H %) -o $(outdir) $<
10 $(outdir)/%-midi.ly: $(outdir)/%.midi $(MIDI2LY)
11 (echo '\header {'; for f in $(HEADER_FIELDS); do echo -n $$f'="'; cat $(outdir)/$*.$$f; echo '"'; done; echo '}') > $(outdir)/$*.header
12 $(PYTHON) $(MIDI2LY) $(shell cat $(outdir)/$*.options) --include-header=$(outdir)/$*.header -o $(outdir) $<
14 $(outdir)/%.diff: %.ly $(outdir)/%-midi.ly
15 $(DIFF) -puN $(MIDI2LY_IGNORE_RES) $^ > $@ || cat $@
17 $(outdir)/midi.diff: $(OUT_DIFF_FILES)
18 cat $(OUT_DIFF_FILES) > $@