]> mj.ucw.cz Git - diplomky.git/blobdiff - Makefile
Gitignore: Update for biblatex
[diplomky.git] / Makefile
index 3570b96686ce390f30bf8da0753146427d7e17ad..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 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