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