[makefile] compilation avec la commande latex et génération de la bibliographie avec bibtex8, génération des figures au format postscript avec imagemagick
This commit is contained in:
parent
1dae196b62
commit
f94c778031
24
Makefile
24
Makefile
|
@ -1,5 +1,23 @@
|
||||||
target:
|
IMAGEDIR := images
|
||||||
pdflatex thesis.tex
|
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:
|
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
|
||||||
|
|
Loading…
Reference in New Issue