5 %.dvi: %.tex ../sgr.tex ../ga.bib
6 csplain $< && if grep -q citation $*.aux ; then bibtex $* && csplain $< && csplain $< ; fi
8 %.pdf: %.tex ../sgr.tex ../ga.bib
12 dvips -D600 -o $@ -O-15.4mm,-15.4mm -t a5 $<
15 psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
18 pstops '2:0L(210mm,0mm)+1L(210mm,148mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
21 rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.toc
29 scp -C $P-booklet.ps jabberwock:www/vyuka/ga/$P-booklet.ps