update
[bsc-thesis1415.git] / thesis2 / Makefile
index b01de17..cd58e30 100644 (file)
@@ -1,14 +1,16 @@
 SHELL:=/bin/bash
+VERSION:=0.2
 
 all: thesis
 
 thesis:
-       latex thesis.tex
-       bibtex thesis.aux
-       latex -shell-escape thesis.tex
-       latex thesis.tex
-       dvipdfm thesis.dvi
+       latex thesis.tex > log.txt
+       bibtex thesis.aux >> log.txt
+       latex -shell-escape thesis.tex >> log.txt
+       latex thesis.tex >> log.txt
+       dvipdfm thesis.dvi >> log.txt 2>&1
+       mv -v {thesis,mart_thesis_$(VERSION)}.pdf
 
 clean:
-       rm -vf *.{aux,bbl,blg,dvi,log,out,pdf,toc,dot,ps}
+       rm -vf *.{aux,bbl,blg,dvi,log,out,pdf,toc,dot,ps} log.txt