7c7fbef68a30bbc8d0b70b4e3b6e485f34ec623e
[bsc-thesis1415.git] / thesis2 / Makefile
1 SHELL:=/bin/bash
2 VERSION:=0.91
3
4 all: thesis
5
6 pre:
7 head -50 scheme.xsd > scheme1.xsd
8 tail -n +49 scheme.xsd > scheme2.xsd
9 dot -Teps appoverview.dot > appoverview.eps
10 dot -Teps backend.dot > backend.eps
11 dot -Teps nodelistexample.dot > nodelistexample.eps
12 dot -Teps nddawg.dot > nddawg.eps
13
14 thesis: pre
15 latex -shell-escape thesis.tex > log.txt
16 bibtex thesis.aux >> log.txt
17 latex -shell-escape thesis.tex >> log.txt
18 latex -shell-escape thesis.tex >> log.txt
19 dvipdfm thesis.dvi >> log.txt 2>&1
20 mv -v {thesis,mart_thesis_$(VERSION)}.pdf
21
22 pack: clean
23 rm -fv version/mart_thesis_$(VERSION).tar{,.gz}
24 tar -cvf version/mart_thesis_$(VERSION).tar *.{tex,xml,png,bib,xsd}
25 gzip -9 version/mart_thesis_$(VERSION).tar
26
27
28 clean:
29 rm -vf *.{aux,bbl,blg,dvi,log,out,toc,ps,pyg} log.txt scheme[12].xsd
30
31 clobber: clean
32 rm -vf *.pdf