]> mj.ucw.cz Git - diplomky.git/blobdiff - Makefile
Gitignore: Update for biblatex
[diplomky.git] / Makefile
index 5c38e1be08be9f9892c2b70edb363a3e7ba0ead7..471ff2429a5e619580eaddcbb0a631ddf767ef2b 100644 (file)
--- 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 je potreba spustit nekolikrat, aby spravne spocital odkazy
-thesis.pdf: thesis.tex $(wildcard *.tex) literatura.bib
-       pdflatex $<
-       bibtex thesis
-       pdflatex $<
-       pdflatex $<
-
-abstract.pdf: abstract.tex abstract.xmpdata
-       pdflatex $<
+%.pdf: force
+       latexmk $*.tex
 
 clean:
-       rm -f *.log *.dvi *.aux *.toc *.lof *.lot *.out *.bbl *.blg *.xmpi *.xmpdata
-       rm -f thesis.pdf abstract.pdf
+       rm -rf aux
+       rm -f thesis.pdf abstract.pdf abstract-cs.pdf abstract-en.pdf
+
+.PHONY: force