8321873c19eda654dfbf71357e57606a9a7c3144
[bsc-thesis1415.git] / thesis2 / Makefile
1 SHELL:=/bin/bash
2 VERSION:=0.91
3
4 all: thesis
5
6 thesis:
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 latex -shell-escape thesis.tex > log.txt
14 bibtex thesis.aux >> log.txt
15 latex -shell-escape thesis.tex >> log.txt
16 latex -shell-escape thesis.tex >> log.txt
17 dvipdfm thesis.dvi >> log.txt 2>&1
18 mv -v {thesis,mart_thesis_$(VERSION)}.pdf
19
20 pack: clean
21 rm -fv version/mart_thesis_$(VERSION).tar{,.gz}
22 tar -cvf version/mart_thesis_$(VERSION).tar *.{tex,xml,png,bib,xsd}
23 gzip -9 version/mart_thesis_$(VERSION).tar
24
25
26 clean:
27 rm -vf *.{aux,bbl,blg,dvi,log,out,toc,ps,pyg} log.txt scheme[12].xsd
28
29 clobber: clean
30 rm -vf *.pdf