This repository was archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.66 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
latexfile = manual_CZ
TEX = pdflatex
BIB = bibtex
d=`date -I`-$(latexfile)
dtmp=/tmp/`date -I`-$(latexfile)
all: $(latexfile).pdf
$(latexfile).pdf: clean
$(TEX) $(latexfile)
$(BIB) $(latexfile)
$(TEX) $(latexfile)
$(TEX) $(latexfile)
view :
okular $(latexfile).pdf &
clean:
rm -f *.dvi *.bbl *.blg *.aux *.log *.spl *.out *.toc
tar:
tar -hczf $d.tgz *.tex Makefile 1_tex bib config graph img tab *.kilepr
zip:
zip $d.zip *.tex obr/* tex/*.tex *.bib *.pdf
cleanhtml:
rm -f html/*.png html/*.html html/*.css
tikzdopng:
$(TEX) -output-directory=img-prep/ img-prep/lichobeznik.tex
convert -density 600 -limit memory 64MB -limit map 128MB -colorspace RGB img-prep/lichobeznik.pdf img/lichobeznik.png
$(TEX) -output-directory=img-prep/ img-prep/parabola.tex
convert -density 600 -limit memory 64MB -limit map 128MB -colorspace RGB img-prep/parabola.pdf img/parabola.png
$(TEX) -output-directory=img-prep/ img-prep/trojuhelnik.tex
convert -density 600 -limit memory 64MB -limit map 128MB -colorspace RGB img-prep/trojuhelnik.pdf img/trojuhelnik.png
$(TEX) -output-directory=img-prep/ img-prep/CZflowch.tex
convert -density 600 -limit memory 64MB -limit map 128MB -colorspace RGB img-prep/CZflowch.pdf img/CZflowch.png
$(TEX) -output-directory=img-prep/ img-prep/dirtreenapng.tex
convert -density 600 -limit memory 64MB -limit map 128MB -colorspace RGB img-prep/dirtreenapng.pdf img/dirtreenapng.png
html: cleanhtml
htlatex $(latexfile) "" "" -dhtml/
preklop:
./bash/preklopitreference.sh
htmlup:
rsync -ave ssh --delete html/manual* sshsmoderp:/home/smoderp/public_html/html/
pdfup:
rsync -ave ssh --delete manual_CZ.pdf sshsmoderp:/home/smoderp/public_html/pdf/