1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
ALLSAMPLES = $(basename $(wildcard *-sample.md))
ALLPDF = $(addsuffix .pdf,$(ALLSAMPLES))
PYTHON=/usr/bin/python2
all: ${ALLPDF}
lilypond-sample.pdf: lilypond-sample.md
pandoc --latex-engine lualatex --filter ./$(subst -sample.md,.py,$<) $< -o $@ || touch $@
gabc-sample.pdf: gabc-sample.md
pandoc --latex-engine lualatex --filter ./$(subst -sample.md,.py,$<) $< -o $@ || touch $@
%.pdf: %.md
echo $(subst -sample.md,.py,$<)
pandoc --filter ./$(subst -sample.md,.py,$<) $< -o $@ || touch $@
clean:
$(RM) -f ${ALLPDF} *.pyc
$(RM) -rf *-images tmp_ly
|