-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (46 loc) · 1.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
default: fast
.PHONY: fast
fast:
cslatex main
main.dvi: */*.tex *.tex Makefile img/*
cslatex main
bibtex main
cslatex main
cslatex main
main.ps: main.dvi
dvips main.dvi
quietps: *.tex Makefile img/*
cslatex -interaction=batchmode main
cslatex -interaction=batchmode main
cslatex -interaction=batchmode main
dvips main.dvi
dvi: main.dvi
ps: main.ps
main.pdf: main.ps
ps2pdf main.ps
# this is commented due to problem with pdfcslatex on windows
#rm -f *.toc
#pdfcslatex main
## bibtex main
#pdfcslatex main
#pdfcslatex main
pdf: main.pdf
html: dvi
for i in * ; do if [ ! -d "$i"] ; then cp "$i" html ; fi ; done
cd html ; latex2html -html_version 4.0 -no_navigation -no_subdir -info 0 main.tex ; cd ..
clean:
-rm -f *.{log,aux}
dist-clean:
-rm -f *.{log,aux,dvi,ps,pdf,toc,bbl,blg,slo,srs,out,bak,lot,lof}
-(cd img; make dist-clean)
backup:
tar --create --force-local -zf zaloha/knizka-`date +%Y-%m-%d-%H\:%M`.tar.gz `ls -p| egrep -v /$ ` images/* code/*
all: ps pdf
booklet: main.ps
cat main.ps | psbook | psnup -2 >main-booklet.ps
.PHONY: img
img:
(cd img; make all)
.PHONY: prepare_upload
prepare_upload: dist-clean img main.pdf
cp main.pdf `date '+krypto_%y-%m-%d.pdf'`