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/' >$@
24 pspdftool 'nup(2, paper=a4)' $< $@
27 pspdftool 'book nup(2, paper=a4)' $< $@
30 rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.toc
38 scp -C $P-booklet.pdf jabberwock:www/vyuka/ga/