Commit 85274d22eeab6f21adefd3fb4cc285aff7caf371

Thomas de Grivel 2020-03-11T11:15:37

clean more

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}" .