X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=471ff2429a5e619580eaddcbb0a631ddf767ef2b;hb=40627ade185e238f1f9c5bdd5c82ddbde79464e5;hp=3570b96686ce390f30bf8da0753146427d7e17ad;hpb=b48ae09a15c4dee323af34ca24d0128aedb03ed3;p=diplomky.git diff --git a/Makefile b/Makefile index 3570b96..471ff24 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,12 @@ export TEXINPUTS=../tex//: -all: thesis.pdf abstract.pdf +all: thesis.pdf abstract-cs.pdf abstract-en.pdf -# LaTeX must be run multiple times to get references right -thesis.pdf: thesis.tex $(wildcard *.tex) bibliography.bib - pdflatex $< - bibtex thesis - pdflatex $< - pdflatex $< - -abstract.pdf: abstract.tex - pdflatex $< +%.pdf: force + latexmk $*.tex clean: - rm -f *.aux *.bbl *.blg *.lof *.log *.lot *.out *.toc *.xmpdata *.xmpi - rm -f thesis.pdf abstract.pdf + rm -rf aux + rm -f thesis.pdf abstract.pdf abstract-cs.pdf abstract-en.pdf + +.PHONY: force