From 0b5fb14f8816b53df61a4527764735c28c890f21 Mon Sep 17 00:00:00 2001 From: Florent Chehab Date: Wed, 20 Jun 2018 23:23:41 +0200 Subject: [PATCH] Move to Makefile --- .latexmkrc | 2 -- Makefile | 37 +++++++++++++++++++++++++++++++++++++ main.tex | 4 ++-- 3 files changed, 39 insertions(+), 4 deletions(-) delete mode 100644 .latexmkrc create mode 100644 Makefile diff --git a/.latexmkrc b/.latexmkrc deleted file mode 100644 index 9ff632b..0000000 --- a/.latexmkrc +++ /dev/null @@ -1,2 +0,0 @@ -$latex = 'latex -shell-escape'; -$pdflatex = 'pdflatex -shell-escape'; diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0a3dc44 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +TARGET=\ + main.pdf + +GENERATED_TEX= \ + src/titlePage.tex \ + src/content.tex \ + +GENERATED= $(GENERATED_TEX) + +PDFLATEX=pdflatex -shell-escape -halt-on-error + +main.pdf: main.tex $(GENERATED) + $(PDFLATEX) main.tex + bibtex main.aux + $(PDFLATEX) main.tex + $(PDFLATEX) main.tex + +.SECONDARY: $(GENERATED) + +.PHONY: clean mrproper + +clean: + rm -f \ + $(TARGET:%.pdf=%.aux) \ + $(TARGET:%.pdf=%.out) \ + $(TARGET:%.pdf=%.tdo) \ + $(TARGET:%.pdf=%.toc) \ + $(TARGET:%.pdf=%.log) \ + $(TARGET:%.pdf=%.bbl) \ + $(TARGET:%.pdf=%.blg) \ + $(TARGET:%.pdf=%.fls) \ + $(TARGET:%.pdf=%.run.xml) \ + $(TARGET:%.pdf=%-blx.bib) \ + +mrproper: clean + rm -f \ + $(TARGET) \ diff --git a/main.tex b/main.tex index 33c51a8..8327f4b 100644 --- a/main.tex +++ b/main.tex @@ -41,12 +41,12 @@ \begin{document} -\subfile{src/titlePage} +\input{src/titlePage} \tableofcontents %Commenter/supprimer pour enlever la table des matières \clearpage -\subfile{src/content} +\input{src/content} \[ \star \quad \star \quad \star \] \clearpage -- GitLab