From f94c778031a305f71d32042944775dcd7c333058 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Thu, 31 Aug 2023 08:10:35 +0900 Subject: [PATCH] =?UTF-8?q?[makefile]=C2=A0compilation=20avec=20la=20comma?= =?UTF-8?q?nde=20latex=20et=20g=C3=A9n=C3=A9ration=20de=20la=20bibliograph?= =?UTF-8?q?ie=20avec=20bibtex8,=20g=C3=A9n=C3=A9ration=20des=20figures=20a?= =?UTF-8?q?u=20format=20postscript=20avec=20imagemagick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0049924..d817e8d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,23 @@ -target: - pdflatex thesis.tex +IMAGEDIR := images +IMAGES := $(foreach image,$(filter %.jpeg %.jpg %.png, $(wildcard $(IMAGEDIR)/*)),$(addsuffix .ps, $(basename $(image)))) + +target: thesis.pdf + +thesis.pdf: thesis.tex bibliography.bib $(images) + latex -file-line-error -draftmode thesis.tex + bibtex8 thesis + latex -file-line-error -output-format pdf thesis + +$(IMAGEDIR)/%.ps : $(IMAGEDIR)/%.jpeg + convert $< $@ +$(IMAGEDIR)/%.ps : $(IMAGEDIR)/%.jpg + convert $< $@ +$(IMAGEDIR)/%.ps : $(IMAGEDIR)/%.png + convert $< $@ + +.SECONDARY: %.ps + +images: $(IMAGES) clean: - rm -f *.aux *.lof *.log *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.ist *.dvi *.xdv *.run.xml *.bcf *.blg *.acr *.glg *.bbl *.glsdefs *.acn *.glo *.lot *.alg + rm -f *.aux *.lof *.log *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.ist *.dvi *.xdv *.run.xml *.bcf *.blg *.acr *.glg *.bbl *.glsdefs *.acn *.glo *.lot *.alg *.pdf