]> mj.ucw.cz Git - diplomky.git/blobdiff - Makefile
Gitignore: Update for biblatex
[diplomky.git] / Makefile
index 7cfdf1ff77e72a7bb30b42fb5fcd9300774d88c0..471ff2429a5e619580eaddcbb0a631ddf767ef2b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,12 @@
-export TEXINPUTS=tex//:
+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 thesis.xmpdata
-       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
-       rm -f thesis.pdf abstract.pdf
+       rm -rf aux
+       rm -f thesis.pdf abstract.pdf abstract-cs.pdf abstract-en.pdf
+
+.PHONY: force