Hash :
b53b4b84
Author :
Thomas de Grivel
Date :
2020-03-11T11:36:55
THEME = Warsaw
MD = \
bsd.md \
test.md
TEX = \
railsonlisp.tex
all: pdf
.SUFFIXES: .md .pdf .tex
clean:
rm -f ${PDF}
find . -name '*.aux' -or -name '*.log' -or -name '*.nav' -or -name '*.out' -or -name '*.snm' -or -name '*.toc' -or -name '*.vrb' -print0 | xargs -0 rm -f
.md.pdf:
mkdir -p "${.IMPSRC:%.md=%}"
cd "${.IMPSRC:%.md=%}" && pandoc -st beamer -V theme:${THEME} -o ../$@ -f gfm ../${.IMPSRC}
PDF = \
${MD:%.md=%.pdf} \
${TEX:%.tex=%.pdf}
pdf: ${PDF}
.PHONY: all clean pdf
.tex.pdf:
mkdir -p "${.IMPSRC:%.tex=%}"
cd "${.IMPSRC:%.tex=%}" && pdflatex ../${.IMPSRC} && pdflatex ../${.IMPSRC}
mv "${.IMPSRC:%.tex=%}/${.IMPSRC:%.tex=%.pdf}" .