From b995adc2cca235a1bd19e6773b3bdc9945b5c1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ent=C3=A9ocline?= Date: Thu, 7 Sep 2017 13:34:18 +0200 Subject: [PATCH] =?UTF-8?q?Makefile=20am=C3=A9lior=C3=A9=20=E2=80=94=20per?= =?UTF-8?q?met=20de=20nettoyer=20les=20fichiers=20g=C3=A9n=C3=A9r=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 72ae76b..a677443 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,29 @@ +########################## MAKEFILE LaTeX GUIDE ############################# +# Constantes SOURCE=latex-guide.tex AUX=latex-guide.aux EXEM=ex.aux +TIKZ=tikz/ -all: +# Règles +all: check-tikz compile + +compile: pdflatex --enable-write18 ${SOURCE} bibtex ${AUX} bibtex ${EXEM} pdflatex ${SOURCE} pdflatex ${SOURCE} + +check-tikz: + @test -d ${TIKZ} || mkdir ${TIKZ} + +clean: + @echo "Nettoyage des fichiers de compilation..." + @rm -f *.aux *.log *.bbl *.blg *.toc *.out *.auxlock *.tmp + @cd parts/ ; rm -f *.aux + +mrproper: clean + @echo "Nettoyage des fichiers générés..." + @cd ${TIKZ} ; rm -f * + @rm -f *.pdf -- GitLab