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