liederboek/goodall_lacrymosa/makefile

23 lines
522 B
Makefile
Raw Normal View History

2022-05-26 21:26:00 +02:00
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 }' "$@"