BASE=score .PHONY: all ps pdf ly clean ps: ps_$(BASE).pdf all: ps pdf ly pdf: $(BASE).pdf ly: $(BASE).ly clean: rm -f ps_$(BASE).ps ps_$(BASE).pdf $(BASE).pdf $(BASE).ly $(BASE).midi ps_%.pdf: %.abc @rm -f ps_$(basename $<).ps abcm2ps -O ps_$(basename $<).ps $< ps2pdf ps_$(basename $<).ps %.pdf: %.ly lilypond $< #%.ly: %.abc #sed '/^w:/ {:lyricline; s/-/ -- /g; n; /^+:\|^[ \t]*%/ b lyricline}' "$<" | \ #abc2ly --output="$@" /dev/stdin #sed -i '/^[a-zA-Z+]:/! { s/\\bar "|"/| &/g; s/trill/tenuto/g }' "$@"