]> mj.ucw.cz Git - ads1.git/blob - Makerules
Sebrane spisy uz funguji.
[ads1.git] / Makerules
1 all: $P.ps
2
3 %.dvi: %.tex ../lecnotes.tex ../mjmac.tex
4         csplain $<
5
6 #%.pdf: %.tex ../lecnotes.tex ../mjmac.tex
7 #       pdfcsplain $<
8
9 %.ps: %.dvi
10         dvips -D600 -o $@ -O-15.4mm,-15.4mm -t a5 $<
11
12 %.pdf: %.dvi
13         dvipdfm -o $@ -x 9mm -y 9mm -p a5 -r 600 -z 9 $<
14
15 %-booklet.ps: %.ps
16         psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
17
18 %-2in1.ps: %.ps
19         pstops '2:0L(210mm,0mm)+1L(210mm,148mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
20
21 mostlyclean:
22         rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg
23
24 clean:: mostlyclean
25         rm -f *.ps *.pdf
26
27 ifndef CUSTOM_UPLOAD
28 upload::
29         make $P-booklet.ps
30         scp -C $P-booklet.ps jabberwock:www/vyuka/0607/ads1/$P-booklet.ps
31 endif
32
33 .SECONDARY: