]> mj.ucw.cz Git - ga.git/blobdiff - Makerules
Cesty: Dinicuv algoritmus, potencialy, par odkazu na literaturu
[ga.git] / Makerules
index 94309e82ff00e112f8baa7f97ee7e5cc92bb9b8b..4c57ce5a83e6472cf6b7d829877f724f9576d2ba 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1,28 +1,41 @@
+export TEXINPUTS=.:..:
+
 all: $P.ps
 
 %.dvi: %.tex ../sgr.tex ../ga.bib
        csplain $< && if grep -q citation $*.aux ; then bibtex $* && csplain $< && csplain $< ; fi
 
-%.pdf: %.tex ../sgr.tex ../ga.bib
-       pdfcsplain $<
+#%.pdf: %.tex ../sgr.tex ../ga.bib
+#      pdfcsplain $<
 
 %.ps: %.dvi
        dvips -D600 -o $@ -O-15.4mm,-15.4mm -t a5 $<
 
-%-booklet.ps: %.ps
-       psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+#%-booklet.ps: %.ps
+#      psbook <$< | pstops '2:0L(210mm,0)+1L(210mm,148mm)' | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+
+#%-2in1.ps: %.ps
+#      pstops '2:0L(210mm,0mm)+1L(210mm,148mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+
+%.pdf: %.ps
+       ps2pdf $< $@
+
+%-2in1.pdf: %.pdf
+       pspdftool 'nup(2, paper=a4)' $< $@
 
-%-2in1.ps: %.ps
-       pstops '2:0L(210mm,0mm)+1L(210mm,148mm)' <$< | sed 's/^%%BoundingBox: .*/%%BoundingBox: 0 0 595 842/;s/^%%DocumentPaperSizes:.*/%%DocumentPaperSizes: a4\n%%Orientation: Landscape/' >$@
+%-booklet.pdf: %.pdf
+       pspdftool 'book nup(2, paper=a4)' $< $@
 
 mostlyclean:
-       rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg
+       rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg *.toc
 
 clean:: mostlyclean
        rm -f *.ps *.pdf
 
+ifndef CUSTOM_UPLOAD
 upload::
-       make $P.ps
-       scp -C $P.ps jabberwock:www/vyuka/ga/$P.ps
+       make $P-booklet.pdf
+       scp -C $P-booklet.pdf jabberwock:www/vyuka/ga/
+endif
 
 .SECONDARY: