]> mj.ucw.cz Git - ads1.git/blobdiff - Makerules
Kostry: Korektury od Paliho
[ads1.git] / Makerules
index 9b249255c08f00eeff537c41f72f022593a4edba..b521d4c301a152f006158be087c050182821ec7b 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1,22 +1,15 @@
-all: $P.ps
+export TEXINPUTS=.:..:../ucw:
 
-%.dvi: %.tex ../lecnotes.tex ../mjmac.tex
-       csplain $<
+all: $P.ps $P.pdf
 
-#%.pdf: %.tex ../lecnotes.tex ../mjmac.tex
-#      pdfcsplain $<
+%.dvi: %.tex ../lecnotes.tex
+       csplain $<
 
 %.ps: %.dvi
-       dvips -D600 -o $@ -O-15.4mm,-15.4mm -t a5 $<
-
-%.pdf: %.dvi
-       dvipdfm -o $@ -x 9mm -y 9mm -p a5 -r 600 -z 9 $<
+       dvips -D600 -o $@ -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/' >$@
-
-%-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 $< $@
 
 mostlyclean:
        rm -f *.dvi *.log *~ core *.o *.aux *.bbl *.blg
@@ -24,10 +17,13 @@ mostlyclean:
 clean:: mostlyclean
        rm -f *.ps *.pdf
 
+UPDIR=vyuka/1011/ads1
+
 ifndef CUSTOM_UPLOAD
 upload::
-       make $P-booklet.ps
-       scp -C $P-booklet.ps jabberwock:www/vyuka/0607/ads1/$P-booklet.ps
+       make $P.pdf
+       rsync $P.pdf jabberwock:www/$(UPDIR)/$P.pdf
+       ssh jabberwock 'cd www && date "+%Y-%m-%d" >$(UPDIR)/$(P).stamp && make'
 endif
 
 .SECONDARY: