all: $P.ps %.dvi: %.tex ../sgr.tex csplain $< %.pdf: %.tex ../sgr.tex pdfcsplain $< %-700.tex: %.tex ( echo '\magnification=700' ; cat $< ) >$@ %.ps: %.dvi dvips -D600 -o $@ -O-0.5in,-0.5in -t a4 $< %-a5.ps: %-700.dvi dvips -D600 -o $@ -O-1in,-1in -T148mm,210mm $< %-booklet.ps: %-a5.ps psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/' >$@ %-2in1.ps: %-a5.ps pstops '2:0L(212mm,0mm)+1L(212mm,150mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/' >$@ mostlyclean: rm -f *.dvi *.log *~ core *.o *-700.tex *-a5.ps clean:: mostlyclean rm -f *.ps *.pdf upload:: make $P.ps scp -C $P.ps jabberwock:www/vyuka/ga/$P.ps .SECONDARY: