tex/Makefile.sample
author Shingo W. Kagami
Sun, 19 Sep 2010 05:55:48 +0900
changeset 5 105778ace30a
parent 4 8b90d57759c9
permissions -rw-r--r--
Have ppt_printout_ps.vbs take the printer name as an argument.
Misc. changes in Makefile.sample.
     1 TARGET = main
     2 SRCTEX = $(TARGET).tex file1.tex file2.tex
     3 SRCFIG = fig/fig_file1.ppt fig/fig_file2.ppt
     4 SRCMISC = 
     5 SRCFIG_DIGEST = $(SRCFIG:.ppt=.md5)
     6 
     7 PRN2EPS = c:/cygwin/home/swk/lib/tex/prn2eps.pl
     8 PPTPRINT = c:/cygwin/home/swk/lib/tex/ppt_printout_ps.vbs
     9 PRINTER = "Generic PostScript Writer"
    10 
    11 dvi: $(TARGET).dvi
    12 pdf: $(TARGET).pdf
    13 
    14 #$(TARGET).pdf: $(TARGET).dvi
    15 #	dvipsk -Pdl $(TARGET).dvi
    16 #	-pdfclose --file $(TARGET).pdf
    17 #	cygstart $(TARGET).ps
    18 #	@while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done
    19 #	rm $(TARGET).ps
    20 #	pdfopen --file $(TARGET).pdf --back
    21 
    22 $(TARGET).pdf: $(TARGET).dvi
    23 	-pdfclose --file $(TARGET).pdf
    24 	dvipdfmx $(TARGET)
    25 	pdfopen --file $(TARGET).pdf --back
    26 
    27 $(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST)
    28 	platex $(TARGET)
    29 #	jbibtex $(TARGET)
    30 #	platex $(TARGET)
    31 	platex $(TARGET)
    32 	-grep Warning $(TARGET).log
    33 
    34 %.md5: %.prn
    35 	$(PRN2EPS) $<
    36 
    37 %.prn: %.ppt
    38 	wscript $(PPTPRINT) $(PRINTER) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt