diff --git a/Makefile b/Makefile
index da449e2..bad186d 100644
--- a/Makefile
+++ b/Makefile
@@ -12,16 +12,12 @@ all: pdf
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}
-.tex.pdf:
- mkdir -p "${.IMPSRC:%.tex=%}"
- cd "${.IMPSRC:%.tex=%}" && pdflatex ../${.IMPSRC} && pdflatex ../${.IMPSRC}
- mv "${.IMPSRC:%.tex=%}/${.IMPSRC:%.tex=%.pdf}" .
-
PDF = \
${MD:%.md=%.pdf} \
${TEX:%.tex=%.pdf}
@@ -29,3 +25,8 @@ 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}" .