diff --git a/.latexmkrc b/.latexmkrc deleted file mode 100644 index 9ff632bb72afe691726517a1f5ccf1dda09d1196..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..0a3dc446a7edcd40030dd1cb39dcf0afaadbe65b --- /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 33c51a8aa7e4aefc588d7e8c6bfcf1aa26e8fd35..8327f4b25f31f35e52673013fe1c109a9954d6d7 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